From e2b2d2357b227b1d2548b6bfb3506b3a93b9e636 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Thu, 24 Mar 2022 08:02:13 -0600 Subject: 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. --- lua/nvim-treesitter/highlight.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lua') 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" -- cgit v1.2.3-70-g09d2