Skip to content

Commit

Permalink
fix: remove redundant seq call (#253)
Browse files Browse the repository at this point in the history
This doesn't change the grammar at all, just cleans it up a bit per the
error message given when running `tree-sitter g` on the current build
(with HEAD CLI version).
  • Loading branch information
ribru17 committed Jul 28, 2024
1 parent 444c127 commit be53b08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ module.exports = grammar({
seq(decimal_integer_literal, '.', optional(decimal_digits), optional(exponent_part)),
seq('.', decimal_digits, optional(exponent_part)),
seq(decimal_integer_literal, exponent_part),
seq(decimal_digits),
decimal_digits,
)
)

Expand Down
9 changes: 2 additions & 7 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -7621,13 +7621,8 @@
]
},
{
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "\\d(_?\\d)*"
}
]
"type": "PATTERN",
"value": "\\d(_?\\d)*"
}
]
}
Expand Down

0 comments on commit be53b08

Please sign in to comment.