Skip to content

Commit e8d90f4

Browse files
danghamaanq
authored andcommitted
feat: support ETA raw blocks
1 parent 1b85ac0 commit e8d90f4

File tree

6 files changed

+151
-110
lines changed

6 files changed

+151
-110
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ References
1414
- [ERB Documentation](https://ruby-doc.org/stdlib-2.5.1/libdoc/erb/rdoc/ERB.html)
1515
- [EJS Documentation](http://ejs.co/#docs)
1616
- [ETLua Documentation](https://github.com/leafo/etlua)
17+
- [ETA Documentation](https://eta.js.org/docs)
1718

1819
[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-embedded-template/ci.yml?logo=github&label=CI
1920
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = grammar({
2626
content: _ => prec.right(repeat1(choice(/[^<]+|</, '<%%'))),
2727

2828
directive: $ => seq(
29-
choice('<%', '<%_', '<%|'),
29+
choice('<%', '<%_', '<%|', '<%~'),
3030
optional($.code),
3131
choice('%>', '-%>', '_%>'),
3232
),

src/grammar.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)