Implement function calls

This commit is contained in:
Jeff 2023-10-07 12:38:07 -04:00
parent 3df0f5b37c
commit d7ff4e57c5
4 changed files with 4365 additions and 4246 deletions

View File

@ -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),
'}',
),

View File

@ -309,7 +309,7 @@
"type": "REPEAT1",
"content": {
"type": "SYMBOL",
"name": "statement"
"name": "item"
}
},
{

View File

@ -76,7 +76,7 @@
"named": true
},
{
"type": "statement",
"type": "item",
"named": true
}
]

File diff suppressed because it is too large Load Diff