difftastic/vendored_parsers/tree-sitter-hare
Wilfred Hughes 08b3ff138f Rename vendor/ directory
Closes #453
2023-01-10 08:35:01 +07:00
..
bindings Rename vendor/ directory 2023-01-10 08:35:01 +07:00
example Rename vendor/ directory 2023-01-10 08:35:01 +07:00
queries Rename vendor/ directory 2023-01-10 08:35:01 +07:00
src Rename vendor/ directory 2023-01-10 08:35:01 +07:00
COPYING Rename vendor/ directory 2023-01-10 08:35:01 +07:00
Cargo.toml Rename vendor/ directory 2023-01-10 08:35:01 +07:00
README.md Rename vendor/ directory 2023-01-10 08:35:01 +07:00
binding.gyp Rename vendor/ directory 2023-01-10 08:35:01 +07:00
grammar.js Rename vendor/ directory 2023-01-10 08:35:01 +07:00
package.json Rename vendor/ directory 2023-01-10 08:35:01 +07:00

README.md

tree-sitter-hare

Hare grammar for the popular incremental parser generator tree-sitter.

status: the majority of sources in examples (Hare stdlib) is recognized fine - sources containing \\ in strings fail, due to them getting parsed as comments as a consequence to tree-sitter precedence rules.

For a list of features offered by tree-sitter refer to their site. Summarily, one of the main features is context-aware highlight (e.g. local variables are highlighted differently than function parameters).

This grammar can be used in a number of editors and different situations (github uses it, for example) - at this stage it must be inserted manually into your editor. See, for example, nvim-treesitter.