Skip to content

Commit

Permalink
fix: trailing comma error in keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Jan 8, 2024
1 parent 714723b commit 43100f8
Show file tree
Hide file tree
Showing 3 changed files with 965 additions and 910 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ module.exports = grammar({

string: () => token(prec(-1, /[^\n,#]+|.*##.*/)),

params: ($) => prec(-1, seq($._value, repeat(seq(",", $._value)))),
params: ($) =>
prec(-1, seq($._value, repeat(seq(",", optional($._value))))),

name: () => /[a-zA-Z][a-zA-Z0-9_\.\-]*/,

Expand Down
12 changes: 10 additions & 2 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 43100f8

Please sign in to comment.