aboutsummaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-05-31 12:03:27 -0500
committerGitHub <noreply@github.com>2021-05-31 17:03:27 +0000
commitc1f61d4ca1319747c27ec97b5f050b3d936e0a55 (patch)
tree9f1f65777ec4a7882e34ea1ff5517d910b08cc5e /CONTRIBUTING.md
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.gz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.bz2
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.lz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.xz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.zst
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.zip
Improve check-queries (#1253)
- Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index cec51bdc7..909ad9eeb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -257,6 +257,16 @@ the node describing the language and `@content` to describe the injection region
```
@{language} ; e.g. @html to describe a html region
-@language ; dynamic detection of the injection language (i.e. the text of the captured node describes the language)
-@content ; region for the dynamically detected language
+@language ; dynamic detection of the injection language (i.e. the text of the captured node describes the language).
+@content ; region for the dynamically detected language.
+@combined ; This will combine all matches of a pattern as one single block of content.
+```
+
+### Indents
+
+```
+@indent ; Indent when matching this node
+@branch ; Dedent when matching this node
+@return ; Dedent when matching this node
+@ignore ; Skip this node when calculating the indentation level
```