File tree Expand file tree Collapse file tree 3 files changed +48
-31
lines changed Expand file tree Collapse file tree 3 files changed +48
-31
lines changed Original file line number Diff line number Diff line change 4
4
"component" : {
5
5
"type" : " git" ,
6
6
"git" : {
7
- "name" : " language -go" ,
8
- "repositoryUrl" : " https://github.com/atom/language -go" ,
9
- "commitHash" : " b6fd68f74efa109679e31fe6f4a41ac105262d0e "
7
+ "name" : " better -go-syntax " ,
8
+ "repositoryUrl" : " https://github.com/jeff-hykin/better -go-syntax/ " ,
9
+ "commitHash" : " 54ff898316f8647d77ffcf83880a9556445326f1 "
10
10
}
11
11
},
12
12
"license" : " MIT" ,
13
- "description" : " The file syntaxes/go.json was derived from the Atom package https://atom.io/packages/language -go." ,
14
- "version" : " 0.44.3 "
13
+ "description" : " The file syntaxes/go.tmLanguage. json is from https://github.com/jeff-hykin/better -go-syntax/ ." ,
14
+ "version" : " 1.0.0 "
15
15
}
16
16
],
17
17
"version" : 1
Original file line number Diff line number Diff line change 5
5
"version" : " 1.0.0" ,
6
6
"publisher" : " vscode" ,
7
7
"license" : " MIT" ,
8
- "engines" : { "vscode" : " *" },
8
+ "engines" : {
9
+ "vscode" : " *"
10
+ },
9
11
"scripts" : {
10
- "update-grammar" : " node ../../build/npm/update-grammar.js atom/language -go grammars/go.cson ./syntaxes/go.tmLanguage.json"
12
+ "update-grammar" : " node ../../build/npm/update-grammar.js jeff-hykin/better -go-syntax source/generated.tmLanguage.json ./syntaxes/go.tmLanguage.json"
11
13
},
12
14
"contributes" : {
13
- "languages" : [{
14
- "id" : " go" ,
15
- "extensions" : [ " .go" ],
16
- "aliases" : [ " Go" ],
17
- "configuration" : " ./language-configuration.json"
18
- }],
19
- "grammars" : [{
20
- "language" : " go" ,
21
- "scopeName" : " source.go" ,
22
- "path" : " ./syntaxes/go.tmLanguage.json"
23
- }],
15
+ "languages" : [
16
+ {
17
+ "id" : " go" ,
18
+ "extensions" : [
19
+ " .go"
20
+ ],
21
+ "aliases" : [
22
+ " Go"
23
+ ],
24
+ "configuration" : " ./language-configuration.json"
25
+ }
26
+ ],
27
+ "grammars" : [
28
+ {
29
+ "language" : " go" ,
30
+ "scopeName" : " source.go" ,
31
+ "path" : " ./syntaxes/go.tmLanguage.json"
32
+ }
33
+ ],
24
34
"configurationDefaults" : {
25
35
"[go]" : {
26
36
"editor.insertSpaces" : false
27
37
}
28
38
}
29
39
}
30
- }
40
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"information_for_contributors" : [
3
- " This file has been converted from https://github.com/atom/language -go/blob/master/grammars/go.cson " ,
3
+ " This file has been converted from https://github.com/jeff-hykin/better -go-syntax /blob/master/source/generated.tmLanguage.json " ,
4
4
" If you want to provide a fix or improvement, please create a pull request against the original repository." ,
5
5
" Once accepted there, we are happy to receive an update request."
6
6
],
7
- "version" : " https://github.com/atom/language -go/commit/b6fd68f74efa109679e31fe6f4a41ac105262d0e " ,
7
+ "version" : " https://github.com/jeff-hykin/better -go-syntax /commit/54ff898316f8647d77ffcf83880a9556445326f1 " ,
8
8
"name" : " Go" ,
9
9
"scopeName" : " source.go" ,
10
- "comment" : " Go language" ,
11
10
"patterns" : [
11
+ {
12
+ "include" : " #comments"
13
+ },
12
14
{
13
15
"include" : " #comments"
14
16
},
350
352
"comments" : {
351
353
"patterns" : [
352
354
{
353
- "begin " : " / \\ * " ,
354
- "end " : " \\ */ " ,
355
- "captures " : {
356
- "0 " : {
355
+ "name " : " comment.block.go " ,
356
+ "begin " : " ( \\ / \\ *) " ,
357
+ "beginCaptures " : {
358
+ "1 " : {
357
359
"name" : " punctuation.definition.comment.go"
358
360
}
359
361
},
360
- "name" : " comment.block.go"
362
+ "end" : " (\\ *\\ /)" ,
363
+ "endCaptures" : {
364
+ "1" : {
365
+ "name" : " punctuation.definition.comment.go"
366
+ }
367
+ }
361
368
},
362
369
{
363
- "begin" : " //" ,
370
+ "name" : " comment.line.double-slash.go" ,
371
+ "begin" : " (\\ /\\ /)" ,
364
372
"beginCaptures" : {
365
- "0 " : {
373
+ "1 " : {
366
374
"name" : " punctuation.definition.comment.go"
367
375
}
368
376
},
369
- "end" : " $" ,
370
- "name" : " comment.line.double-slash.go"
377
+ "end" : " (?:\\ n|$)"
371
378
}
372
379
]
373
380
},
You can’t perform that action at this time.
0 commit comments