aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_go.lua
diff options
context:
space:
mode:
authorBen Larisch <benlarisch2019@gmail.com>2022-06-12 10:25:52 +0200
committerBen Larisch <benlarisch2019@gmail.com>2022-06-12 10:25:52 +0200
commit2d699dc7ee93e20323e7a9d40cf439b294d62e05 (patch)
tree4dfdcd7c8beed99e4168bdc150845ea834e64691 /plugins/language_go.lua
parent21799d1c0f998318af34615be9d365c87fedc72a (diff)
downloadlite-xl-plugins-2d699dc7ee93e20323e7a9d40cf439b294d62e05.tar.gz
lite-xl-plugins-2d699dc7ee93e20323e7a9d40cf439b294d62e05.zip
language_go: fmt file
Diffstat (limited to 'plugins/language_go.lua')
-rw-r--r--plugins/language_go.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/language_go.lua b/plugins/language_go.lua
index 0532784..6e07827 100644
--- a/plugins/language_go.lua
+++ b/plugins/language_go.lua
@@ -6,21 +6,21 @@ syntax.add {
files = { "%.go$" },
comment = "//",
patterns = {
- { pattern = "//.-\n", type = "comment" },
- { 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" },
- { pattern = "-?%d+[%d%.eE]*f?", type = "number" },
- { pattern = "-?%.?%d+f?", type = "number" },
- { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
- { pattern = ":=", type = "operator" },
+ { pattern = "//.-\n", type = "comment" },
+ { 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" },
+ { pattern = "-?%d+[%d%.eE]*f?", type = "number" },
+ { pattern = "-?%.?%d+f?", type = "number" },
+ { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
+ { pattern = ":=", type = "operator" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" }, -- function call
{ pattern = "func()[%s].*[%a_][%w_]*()%f[%[(]", type = {"keyword", "function", "normal"} }, -- function statement
- { pattern = "[%a_][%w_]*", type = "symbol" },
+ { pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {
["if"] = "keyword",