feat: add namespaced identifiers
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
This commit is contained in:
@@ -143,6 +143,10 @@
|
|||||||
{
|
{
|
||||||
"type": "STRING",
|
"type": "STRING",
|
||||||
"value": "-"
|
"value": "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "::"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,7 @@ module.exports = function make_grammar(dialect) {
|
|||||||
token(
|
token(
|
||||||
seq(
|
seq(
|
||||||
choice(/\p{ID_Start}/, "_"),
|
choice(/\p{ID_Start}/, "_"),
|
||||||
repeat(choice(/\p{ID_Continue}/, "-")),
|
repeat(choice(/\p{ID_Continue}/, "-", "::")),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -143,6 +143,10 @@
|
|||||||
{
|
{
|
||||||
"type": "STRING",
|
"type": "STRING",
|
||||||
"value": "-"
|
"value": "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "::"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
954
src/parser.c
954
src/parser.c
File diff suppressed because it is too large
Load Diff
@@ -96,3 +96,26 @@ foo = bar(
|
|||||||
(quoted_template_start)
|
(quoted_template_start)
|
||||||
(template_literal)
|
(template_literal)
|
||||||
(quoted_template_end))))))))))
|
(quoted_template_end))))))))))
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
namespaced function call
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
foo = provider::time::rfc3339_parse("2023-07-25T23:43:16Z")
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(config_file
|
||||||
|
(body
|
||||||
|
(attribute
|
||||||
|
(identifier)
|
||||||
|
(expression
|
||||||
|
(function_call
|
||||||
|
(identifier)
|
||||||
|
(function_arguments
|
||||||
|
(expression
|
||||||
|
(literal_value
|
||||||
|
(string_lit
|
||||||
|
(quoted_template_start)
|
||||||
|
(template_literal)
|
||||||
|
(quoted_template_end))))))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user