mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
6f5a4f6306
commit
9711139326
1 changed files with 6 additions and 0 deletions
|
|
@ -240,6 +240,12 @@ Used for XML-like tags.
|
||||||
|
|
||||||
### Locals
|
### 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
|
```scheme
|
||||||
@definition ; various definitions
|
@definition ; various definitions
|
||||||
@definition.constant ; constants
|
@definition.constant ; constants
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue