aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_go.lua
diff options
context:
space:
mode:
authorTorchedSammy <38820196+TorchedSammy@users.noreply.github.com>2022-02-12 17:13:41 -0400
committerTorchedSammy <38820196+TorchedSammy@users.noreply.github.com>2022-02-12 17:13:48 -0400
commit5cd708b4a70c7285f5dcbb8004d265233921c6d2 (patch)
treead0ddbc9e42aca86efc61c101dd75fb199a7919c /plugins/language_go.lua
parent0b8440ae0d9cf0697f8bece9fbf49219e77747ee (diff)
downloadlite-xl-plugins-5cd708b4a70c7285f5dcbb8004d265233921c6d2.tar.gz
lite-xl-plugins-5cd708b4a70c7285f5dcbb8004d265233921c6d2.zip
language_go: add rune to string highlight
Diffstat (limited to 'plugins/language_go.lua')
-rw-r--r--plugins/language_go.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/language_go.lua b/plugins/language_go.lua
index 51dd1ef..28c7b88 100644
--- a/plugins/language_go.lua
+++ b/plugins/language_go.lua
@@ -10,6 +10,7 @@ syntax.add {
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "`", "`", '\\' }, type = "string" },
+ { pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = "0[oO_][0-7]+", type = "number" },
{ pattern = "-?0x[%x_]+", type = "number" },
{ pattern = "-?%d+_%d", type = "number" },