aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco <francesco.bbt@gmail.com>2021-09-10 08:40:31 +0200
committerGitHub <noreply@github.com>2021-09-10 08:40:31 +0200
commiteca7bfe9d7e20acfb49902c9fced85f0a5a978cc (patch)
tree4811c3832a72a99c8f80e40a58125ae44940c959
parent914ab5ca70155ca16fb7ddd9d15d32a452d7dee6 (diff)
parenta1bad0e63b8070ecf7b1b7fdc7d74175bb168c86 (diff)
downloadlite-xl-plugins-eca7bfe9d7e20acfb49902c9fced85f0a5a978cc.tar.gz
lite-xl-plugins-eca7bfe9d7e20acfb49902c9fced85f0a5a978cc.zip
Merge pull request #68 from msrocka/master
updated the Java keyword list
-rw-r--r--plugins/language_java.lua106
1 files changed, 57 insertions, 49 deletions
diff --git a/plugins/language_java.lua b/plugins/language_java.lua
index 8c6e98e..e6d3735 100644
--- a/plugins/language_java.lua
+++ b/plugins/language_java.lua
@@ -20,55 +20,63 @@ syntax.add {
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {
- ["if"] = "keyword",
- ["then"] = "keyword",
- ["else"] = "keyword",
- ["else if"] = "keyword",
- ["do"] = "keyword",
- ["while"] = "keyword",
- ["for"] = "keyword",
- ["new"] = "keyword",
- ["break"] = "keyword",
- ["continue"] = "keyword",
- ["return"] = "keyword",
- ["goto"] = "keyword",
- ["class"] = "keyword",
- ["implements"] = "keyword",
- ["extends"] = "keyword",
- ["private"] = "keyword",
- ["protected"] = "keyword",
- ["public"] = "keyword",
- ["abstract"] = "keyword",
- ["interface"] = "keyword",
- ["assert"] = "keyword",
- ["import"] = "keyword",
- ["native"] = "keyword",
- ["package"] = "keyword",
- ["super"] = "keyword",
- ["synchronized"] = "keyword",
- ["instanceof"] = "keyword",
- ["enum"] = "keyword",
- ["catch"] = "keyword",
- ["throw"] = "keyword",
- ["throws"] = "keyword",
- ["try"] = "keyword",
- ["transient"] = "keyword",
- ["finally"] = "keyword",
- ["static"] = "keyword",
- ["volatile"] = "keyword",
- ["final"] = "keyword",
- ["switch"] = "keyword",
- ["case"] = "keyword",
- ["default"] = "keyword",
- ["void"] = "keyword",
- ["int"] = "keyword2",
- ["short"] = "keyword2",
- ["byte"] = "keyword2",
- ["long"] = "keyword2",
- ["float"] = "keyword2",
- ["double"] = "keyword2",
- ["char"] = "keyword2",
- ["boolean"] = "keyword2",
+ ["abstract"] = "keyword",
+ ["assert"] = "keyword",
+ ["break"] = "keyword",
+ ["case"] = "keyword",
+ ["catch"] = "keyword",
+ ["class"] = "keyword",
+ ["const"] = "keyword",
+ ["continue"] = "keyword",
+ ["default"] = "keyword",
+ ["do"] = "keyword",
+ ["else"] = "keyword",
+ ["enum"] = "keyword",
+ ["extends"] = "keyword",
+ ["final"] = "keyword",
+ ["finally"] = "keyword",
+ ["for"] = "keyword",
+ ["if"] = "keyword",
+ ["goto"] = "keyword",
+ ["implements"] = "keyword",
+ ["import"] = "keyword",
+ ["instanceof"] = "keyword",
+ ["interface"] = "keyword",
+ ["native"] = "keyword",
+ ["new"] = "keyword",
+ ["package"] = "keyword",
+ ["permits"] = "keyword",
+ ["private"] = "keyword",
+ ["protected"] = "keyword",
+ ["public"] = "keyword",
+ ["record"] = "keyword",
+ ["return"] = "keyword",
+ ["sealed"] = "keyword",
+ ["static"] = "keyword",
+ ["strictfp"] = "keyword",
+ ["super"] = "keyword",
+ ["switch"] = "keyword",
+ ["synchronized"] = "keyword",
+ ["this"] = "keyword",
+ ["throw"] = "keyword",
+ ["throws"] = "keyword",
+ ["transient"] = "keyword",
+ ["try"] = "keyword",
+ ["var"] = "keyword",
+ ["void"] = "keyword",
+ ["volatile"] = "keyword",
+ ["while"] = "keyword",
+ ["yield"] = "keyword",
+
+ ["boolean"] = "keyword2",
+ ["byte"] = "keyword2",
+ ["char"] = "keyword2",
+ ["double"] = "keyword2",
+ ["float"] = "keyword2",
+ ["int"] = "keyword2",
+ ["long"] = "keyword2",
+ ["short"] = "keyword2",
+
["true"] = "literal",
["false"] = "literal",
["null"] = "literal",