Skip to content

Commit 74a5dc9

Browse files
authored
Update Go grammar to atom/language-go@11ad31e7 (2016-12-30) (microsoft#23065)
1 parent cd896ba commit 74a5dc9

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

extensions/go/syntaxes/go.json

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,7 @@
99
"foldingStopMarker": "(}|\\))\\s*$",
1010
"patterns": [
1111
{
12-
"comment": "Block comments",
13-
"begin": "/\\*",
14-
"end": "\\*/",
15-
"captures": {
16-
"0": {
17-
"name": "punctuation.definition.comment.go"
18-
}
19-
},
20-
"name": "comment.block.go"
21-
},
22-
{
23-
"comment": "Line comments",
24-
"begin": "//",
25-
"beginCaptures": {
26-
"0": {
27-
"name": "punctuation.definition.comment.go"
28-
}
29-
},
30-
"end": "$",
31-
"name": "comment.line.double-slash.go"
12+
"include": "#comments"
3213
},
3314
{
3415
"comment": "Interpreted string literals",
@@ -219,6 +200,9 @@
219200
"name": "punctuation.definition.string.end.go"
220201
}
221202
}
203+
},
204+
{
205+
"include": "#comments"
222206
}
223207
],
224208
"end": "\\)",
@@ -351,6 +335,30 @@
351335
}
352336
]
353337
},
338+
"comments": {
339+
"patterns": [
340+
{
341+
"begin": "/\\*",
342+
"end": "\\*/",
343+
"captures": {
344+
"0": {
345+
"name": "punctuation.definition.comment.go"
346+
}
347+
},
348+
"name": "comment.block.go"
349+
},
350+
{
351+
"begin": "//",
352+
"beginCaptures": {
353+
"0": {
354+
"name": "punctuation.definition.comment.go"
355+
}
356+
},
357+
"end": "$",
358+
"name": "comment.line.double-slash.go"
359+
}
360+
]
361+
},
354362
"delimiters": {
355363
"patterns": [
356364
{

0 commit comments

Comments
 (0)