From 4f391036e7571b9339c0e48b13536494708ed9e7 Mon Sep 17 00:00:00 2001 From: sleetdrop Date: Sat, 3 Feb 2018 01:31:22 +0800 Subject: [PATCH] fix var syntax highlighting with keyword 'type' If defined a variable named 'typeVars', the chars 'type' highlighted as a keyword --- Syntaxes/Go.tmLanguage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Syntaxes/Go.tmLanguage b/Syntaxes/Go.tmLanguage index a82ae40..45d41c1 100644 --- a/Syntaxes/Go.tmLanguage +++ b/Syntaxes/Go.tmLanguage @@ -1060,7 +1060,7 @@ match (?x) - ^\s*(type)\s* + ^\s*(type)\s+ (?:([[:upper:]]\w*)|([[:alpha:]_]\w*)) # name of type ((?:[\[\]\w\d\s\/,._*&<>-]|(?:interface\{\}))*)? # other type