mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
[go] update grammar
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?<!var)\\s*(\\w+(?:,\\s*\\w+)*)(?=\\s*=(?!=))",
|
||||
"match": "(?<!var)\\s*(\\w+(?:\\.\\w+)?(?:,\\s*\\w+(?:\\.\\w+)?)*)(?=\\s*=(?!=))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
@@ -236,8 +236,17 @@
|
||||
"name": "invalid.illegal.identifier.go"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "variable.other.assignment.go"
|
||||
"match": "\\w+(?:\\.\\w+)?",
|
||||
"name": "variable.other.assignment.go",
|
||||
"captures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#delimiters"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#delimiters"
|
||||
@@ -384,10 +393,10 @@
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#imports"
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
"include": "#imports"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -538,7 +547,7 @@
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\w+(?:,\\s*\\w+)*)(\\s+\\*?\\w+\\s*)?(?=\\s*=)",
|
||||
"match": "(\\w+(?:,\\s*\\w+)*)(\\s+\\*?\\w+(?:\\.\\w+)?\\s*)?(?=\\s*=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
@@ -565,7 +574,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(\\w+(?:,\\s*\\w+)*)(\\s+(\\[\\d*\\])*\\*?\\w+\\s*[^=].*)",
|
||||
"match": "(\\w+(?:,\\s*\\w+)*)(\\s+(\\[(\\d*|\\.\\.\\.)\\])*\\*?\\w+(?:\\.\\w+)?\\s*[^=].*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
@@ -616,5 +625,5 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "https://github.com/atom/language-go/commit/6de3f61efa8e8afb9ef0d5bc19c797c8469ec9f8"
|
||||
"version": "https://github.com/atom/language-go/commit/190bfd97cc97bd9228dc12feaa7329afb2e070fa"
|
||||
}
|
||||
Reference in New Issue
Block a user