diff --git a/extensions/go/cgmanifest.json b/extensions/go/cgmanifest.json index 7d5ee20f828..2fbbe980d75 100644 --- a/extensions/go/cgmanifest.json +++ b/extensions/go/cgmanifest.json @@ -6,12 +6,12 @@ "git": { "name": "go-syntax", "repositoryUrl": "https://github.com/worlpaker/go-syntax", - "commitHash": "415b7167f2e5396284b65692ef8fd08a3475362a" + "commitHash": "0ce19cdf1cb5dab6aa99ccc933be9bd21e855ed1" } }, "license": "MIT", "description": "The file syntaxes/go.tmLanguage.json is from https://github.com/worlpaker/go-syntax, which in turn was derived from https://github.com/jeff-hykin/better-go-syntax.", - "version": "0.8.0" + "version": "0.8.1" } ], "version": 1 diff --git a/extensions/go/syntaxes/go.tmLanguage.json b/extensions/go/syntaxes/go.tmLanguage.json index 48aa1d7264b..00472b67ddc 100644 --- a/extensions/go/syntaxes/go.tmLanguage.json +++ b/extensions/go/syntaxes/go.tmLanguage.json @@ -4,7 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/worlpaker/go-syntax/commit/415b7167f2e5396284b65692ef8fd08a3475362a", + "version": "https://github.com/worlpaker/go-syntax/commit/0ce19cdf1cb5dab6aa99ccc933be9bd21e855ed1", "name": "Go", "scopeName": "source.go", "patterns": [ @@ -219,7 +219,7 @@ "name": "punctuation.definition.end.bracket.curly.go" }, { - "begin": "(?:([\\w\\.\\*]+)?(\\[))", + "begin": "([\\w\\.\\*]+)?(\\[)", "beginCaptures": { "1": { "patterns": [ @@ -227,7 +227,7 @@ "include": "#type-declarations" }, { - "match": "(?:\\w+)", + "match": "\\w+", "name": "entity.name.type.go" } ] @@ -315,7 +315,7 @@ }, "map_types": { "comment": "map types", - "begin": "(?:(\\bmap\\b)(\\[))", + "begin": "(\\bmap\\b)(\\[)", "beginCaptures": { "1": { "name": "keyword.map.go" @@ -515,7 +515,7 @@ "comment": "Note that the order here is very important!", "patterns": [ { - "match": "((?:\\*|\\&)+)(?:(?!\\d)(?=(?:[\\w\\[\\]])|(?:\\<\\-)))", + "match": "(?