Skip to content

Commit

Permalink
remove w from size field since it clashes with %w in golang
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 3, 2024
1 parent 60d50a2 commit e10a7bd
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 76 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ module.exports = grammar({
'I',
'I32',
'I64',
'w',
// this clashes with fmt.Errorf %w in golang
// 'w',
))),

_text: _ => prec(-1, /[^%]+/)
Expand Down
4 changes: 0 additions & 4 deletions src/grammar.json

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

132 changes: 69 additions & 63 deletions src/parser.c

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

54 changes: 54 additions & 0 deletions src/tree_sitter/alloc.h

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

Loading

0 comments on commit e10a7bd

Please sign in to comment.