Skip to content

Commit

Permalink
no comma dangle
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jan 6, 2020
1 parent e8d6cb7 commit 4bdd7b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"constructor-super": 2,
"dot-notation": 2,
"eqeqeq": 2,
Expand Down
2 changes: 1 addition & 1 deletion packages/moon-compiler/src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const grammar = {
// parsing before consuming the closing bracket. Parentheticals, arrays,
// and objects, however, parse expressions before their closing
// delimiter, depending on the expression parser to stop before it.
parser.many1(parser.not(["/", "#", "\"", "'", "`", "(", ")", "[", "]", "{", "}", "<"])),
parser.many1(parser.not(["/", "#", "\"", "'", "`", "(", ")", "[", "]", "{", "}", "<"]))
]))(input, index),
main: (input, index) => parser.and(grammar.expression, parser.EOF)(input, index)
};
Expand Down

0 comments on commit 4bdd7b1

Please sign in to comment.