tree-sitter grammar for the promql language
It is recommended to use nix
to fulfill all development dependencies. To activate the development environment simply run nix-shell
in the project root.
To run tests simply run nix-shell --run 'tree-sitter test'
.
The directory corpus
contains a corpus of PromQL queries from the internet.
nix-shell -run 'tree-sitter parse --quiet --stat example/real_world/*/*.promql'
Total parses: 219; successful parses: 219; failed parses: 0; success percentage: 100.00%