aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-03-24 08:02:13 -0600
committerChristian Clason <christian.clason@uni-due.de>2022-03-30 22:14:23 +0200
commite2b2d2357b227b1d2548b6bfb3506b3a93b9e636 (patch)
tree3f491262e3cddc1c51e1191a032ef641360797de /doc
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar.gz
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar.bz2
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar.lz
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar.xz
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.tar.zst
nvim-treesitter-e2b2d2357b227b1d2548b6bfb3506b3a93b9e636.zip
Add capture groups for remaining builtin highlight groups
Some builtin highlight groups (see `:h group-name`) do not yet have associated capture groups, so add them.
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index e7f7932cf..b6995ebc5 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -490,6 +490,10 @@ Boolean literals: `True` and `False` in Python.
`TSCharacter`
Character literals: `'a'` in C.
+ *hl-TSCharacterSpecial*
+`TSCharacterSpecial`
+Special characters.
+
*hl-TSComment*
`TSComment`
Line comments and block comments.
@@ -515,6 +519,14 @@ Constants defined by macros: `NULL` in C.
`TSConstructor`
Constructor calls and definitions: `{}` in Lua, and Java constructors.
+ *hl-TSDebug*
+`TSDebug`
+Debugging statements.
+
+ *hl-TSDefine*
+`TSDefine`
+Preprocessor #define statements.
+
*hl-TSError*
`TSError`
Syntax/parser errors. This might highlight large sections of code while the
@@ -602,6 +614,10 @@ Parameters of a function.
`TSParameterReference`
References to parameters of a function.
+ *hl-TSPreProc*
+`TSPreProc`
+Preprocessor #if, #else, #endif, etc.
+
*hl-TSProperty*
`TSProperty`
Same as `TSField`.
@@ -622,6 +638,11 @@ Special punctuation that doesn't fit into the previous categories.
`TSRepeat`
Keywords related to loops: `for`, `while`, etc.
+ *hl-StorageClass*
+`TSStorageClass`
+Keywords that affect how a variable is stored: `static`, `comptime`, `extern`,
+etc.
+
*hl-TSString*
`TSString`
String literals.
@@ -715,6 +736,10 @@ Text representation of a warning note.
`TSDanger`
Text representation of a danger note.
+ *hl-TSTodo*
+`TSTodo`
+Anything that needs extra attention, such as keywords like TODO or FIXME.
+
*hl-TSType*
`TSType`
Type (and class) definitions and annotations.
@@ -723,6 +748,14 @@ Type (and class) definitions and annotations.
`TSTypeBuiltin`
Built-in types: `i32` in Rust.
+ *hl-TSTypeQualifier*
+`TSTypeQualifier`
+Qualifiers on types, e.g. `const` or `volatile` in C or `mut` in Rust.
+
+ *hl-TSTypeDefinition*
+`TSTypeDefinition`
+Type definitions, e.g. `typedef` in C.
+
*hl-TSVariable*
`TSVariable`
Variable names that don't fit into other categories.