mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Update go grammar to atom/language-go@93594df (2015-12-10). Fixes #9841.
This commit is contained in:
parent
c5fc19d474
commit
216bba8e41
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue