#tree-sitter #parser #incremental #embedded-template

tree-sitter-embedded-template

Embedded Template (ERB, EJS) grammar for the tree-sitter parsing library

3 releases (breaking)

0.21.0 May 6, 2024
0.20.0 Nov 3, 2022
0.19.0 Mar 4, 2021

#483 in Text editors

Download history 1049/week @ 2024-03-14 1037/week @ 2024-03-21 973/week @ 2024-03-28 965/week @ 2024-04-04 1732/week @ 2024-04-11 1931/week @ 2024-04-18 2716/week @ 2024-04-25 3179/week @ 2024-05-02 1722/week @ 2024-05-09 776/week @ 2024-05-16 785/week @ 2024-05-23 715/week @ 2024-05-30 725/week @ 2024-06-06 1361/week @ 2024-06-13 1314/week @ 2024-06-20 980/week @ 2024-06-27

4,485 downloads per month
Used in syntastica-parsers

MIT license

40KB
1K SLoC

C 1K SLoC JavaScript 35 SLoC // 0.2% comments Rust 29 SLoC Scheme 23 SLoC

tree-sitter-embedded-template

CI discord matrix crates npm pypi

A tree-sitter parser for templating languages like ERB and EJS, in which scripting code can be embedded within text content using the delimiters <% and %>.

References

Dependencies

~2.7–4MB
~71K SLoC