Skip to content

Commit be53b08

Browse files
authored
fix: remove redundant seq call (#253)
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).
1 parent 444c127 commit be53b08

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Diff for: grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ module.exports = grammar({
13641364
seq(decimal_integer_literal, '.', optional(decimal_digits), optional(exponent_part)),
13651365
seq('.', decimal_digits, optional(exponent_part)),
13661366
seq(decimal_integer_literal, exponent_part),
1367-
seq(decimal_digits),
1367+
decimal_digits,
13681368
)
13691369
)
13701370

Diff for: src/grammar.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -7621,13 +7621,8 @@
76217621
]
76227622
},
76237623
{
7624-
"type": "SEQ",
7625-
"members": [
7626-
{
7627-
"type": "PATTERN",
7628-
"value": "\\d(_?\\d)*"
7629-
}
7630-
]
7624+
"type": "PATTERN",
7625+
"value": "\\d(_?\\d)*"
76317626
}
76327627
]
76337628
}

0 commit comments

Comments
 (0)