diff options
author | Adam <adamdharrison@gmail.com> | 2022-02-12 16:38:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 16:38:28 -0500 |
commit | c45790bafcdb8e8b6860b1ef61a327a9bd560d7a (patch) | |
tree | ad0ddbc9e42aca86efc61c101dd75fb199a7919c | |
parent | 0b8440ae0d9cf0697f8bece9fbf49219e77747ee (diff) | |
parent | 5cd708b4a70c7285f5dcbb8004d265233921c6d2 (diff) | |
download | lite-xl-plugins-c45790bafcdb8e8b6860b1ef61a327a9bd560d7a.tar.gz lite-xl-plugins-c45790bafcdb8e8b6860b1ef61a327a9bd560d7a.zip |
Merge pull request #34 from TorchedSammy/go-rune-highlight
language_go: add rune to string highlight
-rw-r--r-- | plugins/language_go.lua | 1 |
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" }, |