3 unstable releases

0.8.1 Jan 29, 2025
0.8.0 Jan 16, 2025
0.7.0 Jan 15, 2025

#554 in Text editors

Download history 159/week @ 2025-03-11 67/week @ 2025-03-18 9/week @ 2025-03-25 65/week @ 2025-04-01 86/week @ 2025-04-08 204/week @ 2025-04-15 32/week @ 2025-04-22 104/week @ 2025-04-29 63/week @ 2025-05-06 106/week @ 2025-05-13 89/week @ 2025-05-20 105/week @ 2025-05-27 83/week @ 2025-06-03 84/week @ 2025-06-10 293/week @ 2025-06-17 65/week @ 2025-06-24

553 downloads per month
Used in 2 crates (via autumnus)

MIT license

120KB
4K SLoC

C 3.5K SLoC JavaScript 162 SLoC // 0.0% comments Scheme 53 SLoC // 0.3% comments Rust 29 SLoC // 0.2% comments

Tree-sitter HEEx

Tree-sitter grammar and parser for HEEx, the HTML-aware and component-friendly extension of EEx for Phoenix.

For EEx support, see tree-sitter-eex. For Surface support, see tree-sitter-surface.

Installation

Requirements

See Creating Parsers for more information.

Usage

  1. Clone this repository:
git clone https://github.com/phoenixframework/tree-sitter-heex.git
  1. (Optional) Install NodeJS via asdf:
cd tree-sitter-heex
asdf install
  1. Install npm dependencies:
npm install
  1. Run the tests:
npm test
  1. Run the code formatter:
npm run format
  1. (Optional) Update the tests (useful when contributing):
npm run update_test
  1. (Optional) Run the web playground (requires Docker):
npm run playground

See Using Parsers for more information.

Editor Support

Dependencies

~4–280KB