docs: add a small note about local queries

This just adds a small note in the CONTRIBUTING section about local
queries and how they differ from those listed upstream.
This commit is contained in:
Chris Kipp 2023-03-27 12:52:40 +02:00 committed by Stephan Seitz
parent 6f5a4f6306
commit 9711139326

View file

@ -240,6 +240,12 @@ Used for XML-like tags.
### Locals
Note: pay specific attention to the captures here as they are a bit different to
those listed in the upstream [Local Variables
docs](https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables).
Some of these docs didn't exist when `nvim-treesitter` was created and the
upstream captures are more limiting than what we have here.
```scheme
@definition ; various definitions
@definition.constant ; constants