diff options
author | Jojo <jonas.uliana@passwd.com.br> | 2021-02-12 10:18:04 -0300 |
---|---|---|
committer | Jojo <jonas.uliana@passwd.com.br> | 2021-02-12 10:18:04 -0300 |
commit | 097d58c07a3aa8591372b7e6832d9a1bdf0e2445 (patch) | |
tree | bed8c3be784327bc337685c2dba154c52d628233 /plugins | |
parent | 1446cd2357239caa4f9157d5c8404a2384626caa (diff) | |
download | lite-xl-plugins-097d58c07a3aa8591372b7e6832d9a1bdf0e2445.tar.gz lite-xl-plugins-097d58c07a3aa8591372b7e6832d9a1bdf0e2445.zip |
Added missing keywords and contextual keywords for C# 9
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_csharp.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/language_csharp.lua b/plugins/language_csharp.lua index 5e790e3..c40009c 100644 --- a/plugins/language_csharp.lua +++ b/plugins/language_csharp.lua @@ -21,9 +21,10 @@ syntax.add { { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { - -- keywords + -- keywords and contextual keywords ["abstract"] = "keyword", ["as"] = "keyword", + ["add"] = "keyword", ["await"] = "keyword", ["base"] = "keyword", ["break"] = "keyword", @@ -31,6 +32,7 @@ syntax.add { ["catch"] = "keyword", ["checked"] = "keyword", ["class"] = "keyword", + ["record"] = "keyword", ["const"] = "keyword", ["continue"] = "keyword", ["default"] = "keyword", @@ -59,9 +61,12 @@ syntax.add { ["operator"] = "keyword", ["out"] = "keyword", ["override"] = "keyword", + ["remove"] = "keyword", ["params"] = "keyword", + ["partial"] = "keyword", ["private"] = "keyword", ["protected"] = "keyword", + ["dynamic"] = "keyword", ["public"] = "keyword", ["readonly"] = "keyword", ["ref"] = "keyword", @@ -81,10 +86,13 @@ syntax.add { ["unsafe"] = "keyword", ["using"] = "keyword", ["var"] = "keyword", + ["value"] = "keyword", + ["global"] = "keyword", ["virtual"] = "keyword", ["void"] = "keyword", ["volatile"] = "keyword", ["where"] = "keyword", + ["when"] = "keyword", ["while"] = "keyword", ["yield"] = "keyword", -- types |