Skip to content

Commit 7a51357

Browse files
authored
Merge pull request #2 from calmyournerves/fix-nesting-with-multiple-attributes
Fix nesting with multiple attributes
2 parents 8527121 + a1effaf commit 7a51357

File tree

4 files changed

+386
-366
lines changed

4 files changed

+386
-366
lines changed

grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ module.exports = grammar({
190190
optional($._text_nested)
191191
),
192192

193-
_element_rest_text: $ => token(prec(-3, /[^ \t][^\n]*/)),
193+
_element_rest_text: $ => token(prec(-3, /[^ =\t][^\n]*/)),
194194

195195
// From css grammar https://github.com/tree-sitter/tree-sitter-css/blob/master/grammar.js
196196
// Originally from Slim: /\A(#{keys}+)((?:\p{Word}|-|\/\d+|:(\w|-)+)*)/

src/grammar.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)