Skip to content

Commit 430ce86

Browse files
committed
fixes Wilfred#48 Problem with template parameters and "!in" and "!is"
This essentially returns the !in and !is handling to the scanner, which is necessary to avoid confusing the parser since these are not "words".
1 parent 3f8009e commit 430ce86

File tree

6 files changed

+439314
-441071
lines changed

6 files changed

+439314
-441071
lines changed

grammar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ module.exports = grammar({
1616
$.int_literal,
1717
$.float_literal,
1818
$._string,
19+
$.not_in,
20+
$.not_is,
1921
$._after_eof,
2022
$.error_sentinel,
2123
],
@@ -92,9 +94,6 @@ module.exports = grammar({
9294

9395
htmlentity: ($) => token.immediate(/\\&[a-zA-Z_]+;/),
9496

95-
not_in: (_) => token("!in"),
96-
not_is: (_) => token("!is"),
97-
9897
end_file: (_) => token(seq(prec(100, choice(/\x1a/, /__EOF__/)))),
9998

10099
comment: (_) =>

src/grammar.json

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)