tree-sitter-pug 0.0.1

pug grammar for the tree-sitter parsing library
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented1 out of 2 items with examples
  • Size
  • Source code size: 1.15 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 357.28 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tree-sitter/tree-sitter-javascript
    482 185 14
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sebastinez

Tree-sitter-pug

This is a general tree-sitter parser grammar for the pug language with some extra features built in for Angular and Vue development.

Current state

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.

Developing

How to run & test:

npm install -g tree-sitter-cli
tree-sitter generate && tree-sitter test