Implement function calls
This commit is contained in:
parent
3df0f5b37c
commit
d7ff4e57c5
@ -11,7 +11,8 @@ module.exports = grammar({
|
||||
$.statement,
|
||||
),
|
||||
|
||||
comment: $ => seq('#', /.*/),
|
||||
comment: $ => seq('#', /.*/), // TODO: New comment that can be used anyhere.
|
||||
// Keep this comment type for later use.
|
||||
|
||||
statement: $ => choice(
|
||||
$.assignment,
|
||||
@ -75,7 +76,7 @@ module.exports = grammar({
|
||||
'function',
|
||||
optional(seq('<', repeat(seq($.identifier, optional(','))), '>')),
|
||||
'{',
|
||||
repeat1($.statement),
|
||||
repeat1($.item),
|
||||
'}',
|
||||
),
|
||||
|
||||
|
@ -309,7 +309,7 @@
|
||||
"type": "REPEAT1",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "statement"
|
||||
"name": "item"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -76,7 +76,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "statement",
|
||||
"type": "item",
|
||||
"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