aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_csharp.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-03-13 13:35:13 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-03-13 13:35:13 +0100
commit355954495eb9398352f7044c1661d8758a32ff73 (patch)
treefbe9209b149b91cc6ea5eb9b0b15f3116a9b1b78 /plugins/language_csharp.lua
parentd3d1df77289cc0fca3d70bba6d64d6be064413db (diff)
parentedf05b25dd6384733aa94dfb7ecb9b176e70975d (diff)
downloadlite-xl-plugins-355954495eb9398352f7044c1661d8758a32ff73.tar.gz
lite-xl-plugins-355954495eb9398352f7044c1661d8758a32ff73.zip
Merge remote-tracking branch 'rxi/master'
Diffstat (limited to 'plugins/language_csharp.lua')
-rw-r--r--plugins/language_csharp.lua10
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