Skip to content

Commit

Permalink
Update dependencies and regenerate parser
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and theHamsta committed Feb 15, 2024
1 parent faed311 commit 130b2f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions src/tree_sitter/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct TSLanguage {
* Parse Table Macros
*/

#define SMALL_STATE(id) ((id) - LARGE_STATE_COUNT)
#define SMALL_STATE(id) id - LARGE_STATE_COUNT

#define STATE(id) id

Expand All @@ -176,15 +176,15 @@ struct TSLanguage {
{{ \
.shift = { \
.type = TSParseActionTypeShift, \
.state = (state_value) \
.state = state_value \
} \
}}

#define SHIFT_REPEAT(state_value) \
{{ \
.shift = { \
.type = TSParseActionTypeShift, \
.state = (state_value), \
.state = state_value, \
.repetition = true \
} \
}}
Expand Down

0 comments on commit 130b2f5

Please sign in to comment.