Skip to content

Commit

Permalink
Merge pull request #2 from calmyournerves/fix-nesting-with-multiple-a…
Browse files Browse the repository at this point in the history
…ttributes

Fix nesting with multiple attributes
  • Loading branch information
kolen authored Jul 7, 2024
2 parents 8527121 + a1effaf commit 7a51357
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 366 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = grammar({
optional($._text_nested)
),

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

// From css grammar https://github.com/tree-sitter/tree-sitter-css/blob/master/grammar.js
// Originally from Slim: /\A(#{keys}+)((?:\p{Word}|-|\/\d+|:(\w|-)+)*)/
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

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

Loading

0 comments on commit 7a51357

Please sign in to comment.