aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorrockerBOO <rockerboo@gmail.com>2020-11-19 17:09:02 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2020-12-07 21:50:47 +0100
commit07e86b1553cb11abe3f698465a78833f9c78f710 (patch)
tree06a1bf9c1c47838f9d90235f3088bddaacbafb5e /lua
parentRemove 'CI' guard (we can have now the newest version of nvim again) (diff)
downloadnvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar.gz
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar.bz2
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar.lz
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar.xz
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.tar.zst
nvim-treesitter-07e86b1553cb11abe3f698465a78833f9c78f710.zip
docs: Update docs for missing groups, re-order alphabetically
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/highlight.lua89
1 files changed, 51 insertions, 38 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index ee68a4ad4..3cbaf6e38 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -11,58 +11,71 @@ local M = {
local hlmap = vim.treesitter.highlighter.hl_map
--- Misc
-hlmap.error = "TSError"
-hlmap["punctuation.delimiter"] = "TSPunctDelimiter"
-hlmap["punctuation.bracket"] = "TSPunctBracket"
-hlmap["punctuation.special"] = "TSPunctSpecial"
-
-- Constants
+hlmap["annotation"] = "TSAnnotation"
+
+hlmap["attribute"] = "TSAttribute"
+
+hlmap["boolean"] = "TSBoolean"
+
+hlmap["character"] = "TSCharacter"
+
+hlmap["conditional"] = "TSConditional"
+
hlmap["constant"] = "TSConstant"
hlmap["constant.builtin"] = "TSConstBuiltin"
hlmap["constant.macro"] = "TSConstMacro"
-hlmap["string"] = "TSString"
-hlmap["string.regex"] = "TSStringRegex"
-hlmap["string.escape"] = "TSStringEscape"
-hlmap["character"] = "TSCharacter"
-hlmap["number"] = "TSNumber"
-hlmap["boolean"] = "TSBoolean"
+
+hlmap["constructor"] = "TSConstructor"
+
+hlmap.error = "TSError"
+hlmap["exception"] = "TSException"
+
+hlmap["field"] = "TSField"
+
hlmap["float"] = "TSFloat"
-hlmap["annotation"] = "TSAnnotation"
-hlmap["attribute"] = "TSAttribute"
-hlmap["namespace"] = "TSNamespace"
--- Functions
hlmap["function"] = "TSFunction"
hlmap["function.builtin"] = "TSFuncBuiltin"
hlmap["function.macro"] = "TSFuncMacro"
-hlmap["parameter"] = "TSParameter"
-hlmap["parameter.reference"] = "TSParameterReference"
-hlmap["method"] = "TSMethod"
-hlmap["field"] = "TSField"
-hlmap["property"] = "TSProperty"
-hlmap["constructor"] = "TSConstructor"
--- Keywords
-hlmap["conditional"] = "TSConditional"
-hlmap["repeat"] = "TSRepeat"
-hlmap["label"] = "TSLabel"
+hlmap["include"] = "TSInclude"
+
hlmap["keyword"] = "TSKeyword"
hlmap["keyword.function"] = "TSKeywordFunction"
hlmap["keyword.operator"] = "TSKeywordOperator"
+
+hlmap["label"] = "TSLabel"
+
+hlmap["method"] = "TSMethod"
+
+hlmap["namespace"] = "TSNamespace"
+
+hlmap["none"] = "TSNone"
+hlmap["number"] = "TSNumber"
+
hlmap["operator"] = "TSOperator"
-hlmap["exception"] = "TSException"
-hlmap["type"] = "TSType"
-hlmap["type.builtin"] = "TSTypeBuiltin"
+hlmap["parameter"] = "TSParameter"
+hlmap["parameter.reference"] = "TSParameterReference"
+
+hlmap["property"] = "TSProperty"
+
+hlmap["punctuation.delimiter"] = "TSPunctDelimiter"
+hlmap["punctuation.bracket"] = "TSPunctBracket"
+hlmap["punctuation.special"] = "TSPunctSpecial"
+
+hlmap["repeat"] = "TSRepeat"
+
+hlmap["string"] = "TSString"
+hlmap["string.regex"] = "TSStringRegex"
+hlmap["string.escape"] = "TSStringEscape"
+
hlmap["structure"] = "TSStructure"
-hlmap["include"] = "TSInclude"
--- variable
-hlmap["variable"] = "TSVariable"
-hlmap["variable.builtin"] = "TSVariableBuiltin"
+hlmap["tag"] = "TSTag"
+hlmap["tag.delimiter"] = "TSTagDelimiter"
--- Text
hlmap["text"] = "TSText"
hlmap["text.strong"] = "TSStrong"
hlmap["text.emphasis"] = "TSEmphasis"
@@ -71,11 +84,11 @@ hlmap["text.title"] = "TSTitle"
hlmap["text.literal"] = "TSLiteral"
hlmap["text.uri"] = "TSURI"
--- Tags
-hlmap["tag"] = "TSTag"
-hlmap["tag.delimiter"] = "TSTagDelimiter"
+hlmap["type"] = "TSType"
+hlmap["type.builtin"] = "TSTypeBuiltin"
-hlmap["none"] = "TSNone"
+hlmap["variable"] = "TSVariable"
+hlmap["variable.builtin"] = "TSVariableBuiltin"
function M.attach(bufnr, lang)
local parser = parsers.get_parser(bufnr, lang)