Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1fce4258
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1fce4258
编写于
10月 17, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[go] Update grammar to atom/language-go@d941ce3 (2016-10-10)
上级
c7c960ed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
119 addition
and
3 deletion
+119
-3
extensions/go/syntaxes/go.json
extensions/go/syntaxes/go.json
+59
-1
extensions/go/test/colorize-fixtures/test-13777.go
extensions/go/test/colorize-fixtures/test-13777.go
+1
-0
extensions/go/test/colorize-results/test-13777_go.json
extensions/go/test/colorize-results/test-13777_go.json
+57
-0
extensions/go/test/colorize-results/test_go.json
extensions/go/test/colorize-results/test_go.json
+2
-2
未找到文件。
extensions/go/syntaxes/go.json
浏览文件 @
1fce4258
...
@@ -170,6 +170,64 @@
...
@@ -170,6 +170,64 @@
}
}
}
}
},
},
{
"comment"
:
"Single line import declarations"
,
"match"
:
"(?<=import)(
\\
s+((?!
\\
s+
\"
)[^
\\
s]*)?
\\
s*)((
\"
)([^
\"
]*)(
\"
))"
,
"captures"
:
{
"2"
:
{
"name"
:
"entity.alias.import.go"
},
"3"
:
{
"name"
:
"string.quoted.double.go"
},
"4"
:
{
"name"
:
"punctuation.definition.string.begin.go"
},
"5"
:
{
"name"
:
"entity.name.import.go"
},
"6"
:
{
"name"
:
"punctuation.definition.string.end.go"
}
}
},
{
"comment"
:
"Multiline import declarations"
,
"begin"
:
"(?<=import)
\\
s+(
\\
()"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.other.bracket.round.go"
}
},
"patterns"
:
[
{
"match"
:
"((?!
\\
s+
\"
)[^
\\
s]*)?
\\
s+((
\"
)([^
\"
]*)(
\"
))"
,
"captures"
:
{
"1"
:
{
"name"
:
"entity.alias.import.go"
},
"2"
:
{
"name"
:
"string.quoted.double.go"
},
"3"
:
{
"name"
:
"punctuation.definition.string.begin.go"
},
"4"
:
{
"name"
:
"entity.name.import.go"
},
"5"
:
{
"name"
:
"punctuation.definition.string.end.go"
}
}
}
],
"end"
:
"
\\
)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.other.bracket.round.go"
}
}
},
{
{
"comment"
:
"Type declarations"
,
"comment"
:
"Type declarations"
,
"match"
:
"(?<=type)
\\
s+([a-zA-Z_]
\\
w*)"
,
"match"
:
"(?<=type)
\\
s+([a-zA-Z_]
\\
w*)"
,
...
@@ -549,5 +607,5 @@
...
@@ -549,5 +607,5 @@
]
]
}
}
},
},
"version"
:
"https://github.com/atom/language-go/commit/
93594dfb138a664f0914d54e408527e136899fb2
"
"version"
:
"https://github.com/atom/language-go/commit/
d941ce3155b500e65b4d7fbc53ea51b9c92ec1cb
"
}
}
\ No newline at end of file
extensions/go/test/colorize-fixtures/test-13777.go
0 → 100644
浏览文件 @
1fce4258
var
e
[][]
*
aType
// ( bug in highligher?)
\ No newline at end of file
extensions/go/test/colorize-results/test-13777_go.json
0 → 100644
浏览文件 @
1fce4258
[
{
"c"
:
"var"
,
"t"
:
"go.keyword.var"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword rgb(86, 156, 214)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword rgb(0, 0, 255)"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword rgb(86, 156, 214)"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword rgb(0, 0, 255)"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword rgb(86, 156, 214)"
}
},
{
"c"
:
" e [][]*aType // ( "
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_plus"
:
".vs .token rgb(0, 0, 0)"
,
"dark_vs"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_vs"
:
".vs .token rgb(0, 0, 0)"
,
"hc_black"
:
".hc-black .token rgb(255, 255, 255)"
}
},
{
"c"
:
"bug"
,
"t"
:
"declaration.go.other.variable"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.variable rgb(156, 220, 254)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.variable rgb(0, 16, 128)"
,
"dark_vs"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_vs"
:
".vs .token rgb(0, 0, 0)"
,
"hc_black"
:
".hc-black .token rgb(255, 255, 255)"
}
},
{
"c"
:
" in highligher?"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_plus"
:
".vs .token rgb(0, 0, 0)"
,
"dark_vs"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_vs"
:
".vs .token rgb(0, 0, 0)"
,
"hc_black"
:
".hc-black .token rgb(255, 255, 255)"
}
},
{
"c"
:
")"
,
"t"
:
"bracket.go.other.punctuation.round"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_plus"
:
".vs .token rgb(0, 0, 0)"
,
"dark_vs"
:
".vs-dark .token rgb(212, 212, 212)"
,
"light_vs"
:
".vs .token rgb(0, 0, 0)"
,
"hc_black"
:
".hc-black .token rgb(255, 255, 255)"
}
}
]
\ No newline at end of file
extensions/go/test/colorize-results/test_go.json
浏览文件 @
1fce4258
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
},
},
{
{
"c"
:
"encoding/base64"
,
"c"
:
"encoding/base64"
,
"t"
:
"double.
go
.quoted.string"
,
"t"
:
"double.
entity.go.import.name
.quoted.string"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)"
,
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)"
,
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
},
},
{
{
"c"
:
"fmt"
,
"c"
:
"fmt"
,
"t"
:
"double.
go
.quoted.string"
,
"t"
:
"double.
entity.go.import.name
.quoted.string"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)"
,
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录