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: ($) =>
|
||||
seq(
|
||||
$.identifier,
|
||||
optional("!"), // Rust macro call
|
||||
repeat(
|
||||
choice(
|
||||
seq(".", $.identifier),
|
||||
|
|
|
|||
|
|
@ -1046,6 +1046,18 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "identifier"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "!"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue