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 Nov 17, 2023
1 parent bea82d3 commit c9082ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 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 c9082ed

Please sign in to comment.