| Crates.io | tree-sitter-pug |
| lib.rs | tree-sitter-pug |
| version | 0.0.1 |
| created_at | 2024-12-17 21:13:21.640768+00 |
| updated_at | 2024-12-17 21:13:21.640768+00 |
| description | pug grammar for the tree-sitter parsing library |
| homepage | |
| repository | https://github.com/tree-sitter/tree-sitter-javascript |
| max_upload_size | |
| id | 1486762 |
| size | 1,153,159 |
This is a general tree-sitter parser grammar for the pug language with some extra features built in for Angular and Vue development.
Everything currently included is relatively bug-free, but the structure/name of some rules may change before we declare this parser "complete".
There is list of todos at the top of grammar.js, but the summary is: all of the basics are supported.
There are tests for every scenario supported, so you can just have a look through ./test/corpus/*.txt to see exactly which scenarios are supported and have been tested.
Feel free to open an issue/pull request if there's something missing/broken.
How to run & test:
npm install -g tree-sitter-cli
tree-sitter generate && tree-sitter test