Skip to content

Commit

Permalink
fix: regression after #15
Browse files Browse the repository at this point in the history
  • Loading branch information
elianiva committed Jul 15, 2021
1 parent d8c7ef9 commit 95db315
Show file tree
Hide file tree
Showing 3 changed files with 1,485 additions and 1,569 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = grammar({
seq('"', optional(alias(/[^"]+/, $.attribute_value)), '"')
),

_text: ($) => choice(alias(/[^<>\s]([^<>]*[^<>\s])?/, $.text), $._expression),
_text: ($) => choice(alias(/[^<>{}\s]([^<>{}]*[^<>{}\s])?/, $.text), $._expression),

_expression: ($) =>
choice($.expression, $.html_expr, alias("{}", $.expression)),
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "[^<>\\s]([^<>]*[^<>\\s])?"
"value": "[^<>{}\\s]([^<>{}]*[^<>{}\\s])?"
},
"named": true,
"value": "text"
Expand Down
Loading

0 comments on commit 95db315

Please sign in to comment.