From 7e3c4f808940a981a034709163724eb5a7546e2d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 13 Sep 2020 15:08:11 +0200 Subject: Add @keyword.operator for operators that are English words and add @exception for Java/JS --- lua/nvim-treesitter/highlight.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') 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" -- cgit v1.2.3-70-g09d2