Update go grammar to atom/language-go@93594df (2015-12-10). Fixes #9841.

This commit is contained in:
Martin Aeschlimann 2016-08-03 12:13:12 +02:00
parent c5fc19d474
commit 216bba8e41
2 changed files with 554 additions and 524 deletions

View file

@ -3,6 +3,9 @@
"version": "0.1.0",
"publisher": "vscode",
"engines": { "vscode": "*" },
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-go grammars/go.cson ./syntaxes/go.json"
},
"contributes": {
"languages": [{
"id": "go",

View file

@ -226,6 +226,32 @@
}
}
},
{
"comment": "Multiline variable declarations/assignments",
"begin": "(\\bvar\\b)\\s+(\\()",
"beginCaptures": {
"1": {
"name": "keyword.var.go"
},
"2": {
"name": "punctuation.other.bracket.round.go"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.other.bracket.round.go"
}
},
"patterns": [
{
"include": "#variables"
},
{
"include": "$self"
}
]
},
{
"comment": "Terminators",
"match": ";",
@ -498,7 +524,7 @@
}
},
{
"match": "([a-zA-Z_]\\w*(?:,\\s*[a-zA-Z_]\\w*)*)(\\s+[\\*]?[a-zA-Z_]\\w*\\s*[^=].*)",
"match": "([a-zA-Z_]\\w*(?:,\\s*[a-zA-Z_]\\w*)*)(\\s+[\\[\\]\\*]{0,3}[a-zA-Z_]\\w*\\s*[^=].*)",
"captures": {
"1": {
"patterns": [
@ -522,5 +548,6 @@
}
]
}
}
},
"version": "https://github.com/atom/language-go/commit/93594dfb138a664f0914d54e408527e136899fb2"
}