feat(treesitter): add more default groups to highlight map (#17835)

This covers some default groups listed in :h group-name.
This commit is contained in:
Gregory Anders
2022-03-30 14:14:20 -06:00
committed by GitHub
parent a18c9ba2da
commit 6d648f5594

View File

@@ -38,6 +38,9 @@ local subcapture_fallback = {
TSHighlighter.hl_map = setmetatable({
["error"] = "Error",
["text.underline"] = "Underlined",
["todo"] = "Todo",
["debug"] = "Debug",
-- Miscs
["comment"] = "Comment",
@@ -49,10 +52,13 @@ TSHighlighter.hl_map = setmetatable({
["constant"] = "Constant",
["constant.builtin"] = "Special",
["constant.macro"] = "Define",
["define"] = "Define",
["macro"] = "Macro",
["string"] = "String",
["string.regex"] = "String",
["string.escape"] = "SpecialChar",
["character"] = "Character",
["character.special"] = "SpecialChar",
["number"] = "Number",
["boolean"] = "Boolean",
["float"] = "Float",
@@ -78,8 +84,12 @@ TSHighlighter.hl_map = setmetatable({
["type"] = "Type",
["type.builtin"] = "Type",
["type.qualifier"] = "Type",
["type.definition"] = "Typedef",
["storageclass"] = "StorageClass",
["structure"] = "Structure",
["include"] = "Include",
["preproc"] = "PreProc",
}, subcapture_fallback)
---@private