Skip to content

Commit

Permalink
closses #43
Browse files Browse the repository at this point in the history
  • Loading branch information
EmranMR committed Feb 24, 2024
1 parent 06de613 commit 7578974
Show file tree
Hide file tree
Showing 4 changed files with 126,478 additions and 124,256 deletions.
5 changes: 3 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ module.exports = grammar({
alias('@use', $.directive),
alias('(', $.bracket_start),
optional(alias($._section_parameter, $.parameter)),
',',
optional(alias($._section_parameter, $.parameter)),
optional(
seq(',', alias($._section_parameter, $.parameter))
),
alias(')', $.bracket_end)
),
// !nested directives
Expand Down
27 changes: 16 additions & 11 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,21 +353,26 @@
}
]
},
{
"type": "STRING",
"value": ","
},
{
"type": "CHOICE",
"members": [
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "_section_parameter"
},
"named": true,
"value": "parameter"
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "_section_parameter"
},
"named": true,
"value": "parameter"
}
]
},
{
"type": "BLANK"
Expand Down
Loading

0 comments on commit 7578974

Please sign in to comment.