Skip to content

Commit

Permalink
add curly braces as directives
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschweikert committed Dec 5, 2024
1 parent 9359017 commit eba5104
Show file tree
Hide file tree
Showing 4 changed files with 1,392 additions and 1,263 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ module.exports = grammar({

directive: ($) =>
seq(
choice("<%", "<%=", "<%%", "<%%="),
choice("<%", "<%=", "<%%", "<%%=", "{"),
prec.left(
seq(
choice(
$.partial_expression_value,
$.ending_expression_value,
$.expression_value
),
"%>"
choice("%>", "}")
)
)
),
Expand Down
17 changes: 15 additions & 2 deletions 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 eba5104

Please sign in to comment.