aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen <89769190+benwalksaway@users.noreply.github.com>2022-06-12 14:07:41 +0200
committerGitHub <noreply@github.com>2022-06-12 14:07:41 +0200
commit467cc88b67317d12300a8c52444f4626dfdec1d0 (patch)
tree911ab6969b31e46cf2ec57edd7f15f971de81996
parent0e178ac90b2a0785925bb7679486aa3b5a9b40e0 (diff)
downloadlite-xl-plugins-467cc88b67317d12300a8c52444f4626dfdec1d0.tar.gz
lite-xl-plugins-467cc88b67317d12300a8c52444f4626dfdec1d0.zip
language_go: function pattern: match only spaces
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
-rw-r--r--plugins/language_go.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/language_go.lua b/plugins/language_go.lua
index 199dc0a..58c38c2 100644
--- a/plugins/language_go.lua
+++ b/plugins/language_go.lua
@@ -19,7 +19,7 @@ syntax.add {
{ 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 = "func()%s*[%a_][%w_]*()%f[%[(]", type = {"keyword", "function", "normal"} }, -- function statement
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {