Skip to content

Commit

Permalink
Support single-character attribute_name
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlay committed Jun 13, 2022
1 parent 6ae12f8 commit 3ed2a48
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 395 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = grammar({

tag_name: ($) => /[a-z]+[^<>{}!"'/=\s]*/,

attribute_name: ($) => token(prec(-1, /[^:<>{}"'/=\s][^<>{}"'/=\s]+/)),
attribute_name: ($) => token(prec(-1, /[^:<>{}"'/=\s][^<>{}"'/=\s]*/)),

text: ($) => /[^<>{}\s]([^<>{}]*[^<>{}\s])?/,
},
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 3ed2a48

Please sign in to comment.