Skip to content

Commit

Permalink
Fix #include names containing $self
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Sep 4, 2024
1 parent a67511b commit 2925aae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/tree-sitter/tree-sitter-json/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,14 @@ module.exports = grammar({
),
_includeRuleName: $ => fieldAlias($,
'ruleName',
$._string,
token(
repeat1(
choice(
/\\[^\r\n\t]/,
/[^\\\r\n\t"]+/,
),
),
),
),
_self: $ => fieldAlias($,
'self',
Expand Down

0 comments on commit 2925aae

Please sign in to comment.