aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_csharp.lua
diff options
context:
space:
mode:
authorDevin Carr <devin.carr0@gmail.com>2020-05-12 18:00:59 -0700
committerDevin Carr <devin.carr0@gmail.com>2020-05-12 18:00:59 -0700
commit6f95541c2fd93e520c10502adf48964fb60e85ea (patch)
tree016725342f960bb842081f1cfd7ece17c9234c4f /plugins/language_csharp.lua
parentc3201874c06ae9f1db6217f87d7860a5b63facb4 (diff)
downloadlite-xl-plugins-6f95541c2fd93e520c10502adf48964fb60e85ea.tar.gz
lite-xl-plugins-6f95541c2fd93e520c10502adf48964fb60e85ea.zip
Remove character syntax coloring in favor of string
Diffstat (limited to 'plugins/language_csharp.lua')
-rw-r--r--plugins/language_csharp.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/language_csharp.lua b/plugins/language_csharp.lua
index 85c9cf4..5c8e557 100644
--- a/plugins/language_csharp.lua
+++ b/plugins/language_csharp.lua
@@ -1,9 +1,4 @@
local syntax = require "core.syntax"
-local common = require "core.common"
-local style = require "core.style"
-
--- additional syntax highlighting for character (same as string)
-style.syntax["character"] = style.syntax["string"]
syntax.add {
files = "%.cs$",
@@ -12,9 +7,9 @@ syntax.add {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
- { pattern = "'\\x%x?%x?%x?%x'", type = "character"}, -- hexadecimal escape sequence
- { pattern = "'\\u%x%x%x%x'", type = "character"}, -- unicode escape sequence
- { pattern = "'\\?.'", type = "character"}, -- character literal
+ { pattern = "'\\x%x?%x?%x?%x'", type = "string" }, -- character hexadecimal escape sequence
+ { pattern = "'\\u%x%x%x%x'", type = "string" }, -- character unicode escape sequence
+ { pattern = "'\\?.'", type = "string" }, -- character literal
{ pattern = "-?0x%x+", type = "number" },
{ pattern = "-?%d+[%d%.eE]*f?", type = "number" },
{ pattern = "-?%.?%d+f?", type = "number" },