mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user