diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_go.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/language_go.lua b/plugins/language_go.lua index b670eac..93db0e4 100644 --- a/plugins/language_go.lua +++ b/plugins/language_go.lua @@ -45,6 +45,9 @@ syntax.add { { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, { pattern = ":=", type = "operator" }, -- function calls + { pattern = "func()%s*[%a_][%w_]*()%f[%[(]", -- function statement + type = {"keyword", "function", "normal"} + }, { pattern = "[%a_][%w_]*%f[(]", type = "function" }, { pattern = "%.()[%a_][%w_]*%f[(]", type = { "normal", "function" } |