mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
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.
This commit is contained in:
parent
d0e4b412f9
commit
e2b2d2357b
4 changed files with 63 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue