From 6f95541c2fd93e520c10502adf48964fb60e85ea Mon Sep 17 00:00:00 2001 From: Devin Carr Date: Tue, 12 May 2020 18:00:59 -0700 Subject: Remove character syntax coloring in favor of string --- plugins/language_csharp.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/language_csharp.lua') 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" }, -- cgit v1.2.3