diff options
| author | Gregory Anders <greg@gpanders.com> | 2022-03-24 08:02:13 -0600 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-03-30 22:14:23 +0200 |
| commit | e2b2d2357b227b1d2548b6bfb3506b3a93b9e636 (patch) | |
| tree | 3f491262e3cddc1c51e1191a032ef641360797de /lua | |
| parent | Update lockfile.json (diff) | |
| download | nvim-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 'lua')
| -rw-r--r-- | lua/nvim-treesitter/highlight.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index b71a64eec..caca7ee00 100644 --- a/lua/nvim-treesitter/highlight.lua +++ b/lua/nvim-treesitter/highlight.lua @@ -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" |
