summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/highlight.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-13 15:08:11 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-09-19 07:30:49 +0200
commit7e3c4f808940a981a034709163724eb5a7546e2d (patch)
tree9ac40da7363fa5a01a24107b7843f36f9fab4a86 /lua/nvim-treesitter/highlight.lua
parentc1313ba7af6985da7a23e612906024af4c575d52 (diff)
Add @keyword.operator for operators that are English words and add @exception for Java/JS
Diffstat (limited to 'lua/nvim-treesitter/highlight.lua')
-rw-r--r--lua/nvim-treesitter/highlight.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index 3ccd3fdd..4dde5a8c 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -46,9 +46,10 @@ hlmap["constructor"] = "TSConstructor"
hlmap["conditional"] = "TSConditional"
hlmap["repeat"] = "TSRepeat"
hlmap["label"] = "TSLabel"
-hlmap["operator"] = "TSOperator"
hlmap["keyword"] = "TSKeyword"
hlmap["keyword.function"] = "TSKeywordFunction"
+hlmap["keyword.operator"] = "TSKeywordOperator"
+hlmap["operator"] = "TSOperator"
hlmap["exception"] = "TSException"
hlmap["type"] = "TSType"