diff options
author | Ben Larisch <benlarisch2019@gmail.com> | 2022-06-12 10:25:52 +0200 |
---|---|---|
committer | Ben Larisch <benlarisch2019@gmail.com> | 2022-06-12 10:25:52 +0200 |
commit | 2d699dc7ee93e20323e7a9d40cf439b294d62e05 (patch) | |
tree | 4dfdcd7c8beed99e4168bdc150845ea834e64691 /plugins | |
parent | 21799d1c0f998318af34615be9d365c87fedc72a (diff) | |
download | lite-xl-plugins-2d699dc7ee93e20323e7a9d40cf439b294d62e05.tar.gz lite-xl-plugins-2d699dc7ee93e20323e7a9d40cf439b294d62e05.zip |
language_go: fmt file
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_go.lua | 26 |
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", |