aboutsummaryrefslogtreecommitdiffstats
path: root/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
parentLink to gallery (diff)
downloadnvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.gz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.bz2
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.lz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.xz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.zst
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.zip
Add @keyword.operator for operators that are English words and add @exception for Java/JS
Diffstat (limited to '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 3ccd3fdda..4dde5a8c1 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"