Implement function calls
This commit is contained in:
parent
3df0f5b37c
commit
d7ff4e57c5
@ -11,7 +11,8 @@ module.exports = grammar({
|
|||||||
$.statement,
|
$.statement,
|
||||||
),
|
),
|
||||||
|
|
||||||
comment: $ => seq('#', /.*/),
|
comment: $ => seq('#', /.*/), // TODO: New comment that can be used anyhere.
|
||||||
|
// Keep this comment type for later use.
|
||||||
|
|
||||||
statement: $ => choice(
|
statement: $ => choice(
|
||||||
$.assignment,
|
$.assignment,
|
||||||
@ -75,7 +76,7 @@ module.exports = grammar({
|
|||||||
'function',
|
'function',
|
||||||
optional(seq('<', repeat(seq($.identifier, optional(','))), '>')),
|
optional(seq('<', repeat(seq($.identifier, optional(','))), '>')),
|
||||||
'{',
|
'{',
|
||||||
repeat1($.statement),
|
repeat1($.item),
|
||||||
'}',
|
'}',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@
|
|||||||
"type": "REPEAT1",
|
"type": "REPEAT1",
|
||||||
"content": {
|
"content": {
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "statement"
|
"name": "item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
"named": true
|
"named": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "statement",
|
"type": "item",
|
||||||
"named": true
|
"named": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
8602
src/parser.c
8602
src/parser.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user