add readme

pull/369/head
ecmma 2021-04-14 14:38:22 +07:00
parent b7a496713c
commit bc26a6a949
No known key found for this signature in database
GPG Key ID: 418D15674E714FC0
1 changed files with 14 additions and 0 deletions

@ -0,0 +1,14 @@
# tree-sitter-hare
[Hare](https://harelang.org/) grammar for the popular incremental parser generator [tree-sitter](https://tree-sitter.github.io/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](https://github.com/nvim-treesitter/nvim-treesitter#advanced-setup).