From 9711139326284ddb2c6f1d29783a162c08b47bb8 Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Mon, 27 Mar 2023 12:52:40 +0200 Subject: [PATCH] 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. --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d809bc784..2d1a16a0b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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