Add Rust macro call support in expressions
This commit is contained in:
parent
c457cfd878
commit
6c4e8d3d5e
|
|
@ -228,6 +228,7 @@ module.exports = grammar({
|
||||||
expression_path: ($) =>
|
expression_path: ($) =>
|
||||||
seq(
|
seq(
|
||||||
$.identifier,
|
$.identifier,
|
||||||
|
optional("!"), // Rust macro call
|
||||||
repeat(
|
repeat(
|
||||||
choice(
|
choice(
|
||||||
seq(".", $.identifier),
|
seq(".", $.identifier),
|
||||||
|
|
|
||||||
|
|
@ -1046,6 +1046,18 @@
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "identifier"
|
"name": "identifier"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "BLANK"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "REPEAT",
|
"type": "REPEAT",
|
||||||
"content": {
|
"content": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue