From 467cc88b67317d12300a8c52444f4626dfdec1d0 Mon Sep 17 00:00:00 2001 From: Ben <89769190+benwalksaway@users.noreply.github.com> Date: Sun, 12 Jun 2022 14:07:41 +0200 Subject: language_go: function pattern: match only spaces Co-authored-by: Guldoman --- plugins/language_go.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 = { -- cgit v1.2.3