mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -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
|
|
@ -18,6 +18,7 @@ hlmap["attribute"] = "TSAttribute"
|
|||
hlmap["boolean"] = "TSBoolean"
|
||||
|
||||
hlmap["character"] = "TSCharacter"
|
||||
hlmap["character.special"] = "TSCharacterSpecial"
|
||||
|
||||
hlmap["comment"] = "TSComment"
|
||||
|
||||
|
|
@ -29,6 +30,9 @@ hlmap["constant.macro"] = "TSConstMacro"
|
|||
|
||||
hlmap["constructor"] = "TSConstructor"
|
||||
|
||||
hlmap["debug"] = "TSDebug"
|
||||
hlmap["define"] = "TSDefine"
|
||||
|
||||
hlmap["error"] = "TSError"
|
||||
hlmap["exception"] = "TSException"
|
||||
|
||||
|
|
@ -61,6 +65,8 @@ hlmap["operator"] = "TSOperator"
|
|||
hlmap["parameter"] = "TSParameter"
|
||||
hlmap["parameter.reference"] = "TSParameterReference"
|
||||
|
||||
hlmap["preproc"] = "TSPreProc"
|
||||
|
||||
hlmap["property"] = "TSProperty"
|
||||
|
||||
hlmap["punctuation.delimiter"] = "TSPunctDelimiter"
|
||||
|
|
@ -69,6 +75,8 @@ hlmap["punctuation.special"] = "TSPunctSpecial"
|
|||
|
||||
hlmap["repeat"] = "TSRepeat"
|
||||
|
||||
hlmap["storageclass"] = "TSStorageClass"
|
||||
|
||||
hlmap["string"] = "TSString"
|
||||
hlmap["string.regex"] = "TSStringRegex"
|
||||
hlmap["string.escape"] = "TSStringEscape"
|
||||
|
|
@ -97,8 +105,12 @@ hlmap["text.note"] = "TSNote"
|
|||
hlmap["text.warning"] = "TSWarning"
|
||||
hlmap["text.danger"] = "TSDanger"
|
||||
|
||||
hlmap["todo"] = "TSTodo"
|
||||
|
||||
hlmap["type"] = "TSType"
|
||||
hlmap["type.builtin"] = "TSTypeBuiltin"
|
||||
hlmap["type.qualifier"] = "TSTypeQualifier"
|
||||
hlmap["type.definition"] = "TSTypeDefinition"
|
||||
|
||||
hlmap["variable"] = "TSVariable"
|
||||
hlmap["variable.builtin"] = "TSVariableBuiltin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue