Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f39d1854
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,发现更多精彩内容 >>
提交
f39d1854
编写于
9月 25, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cofeescript] update grammar
上级
8b350a16
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
61 addition
and
34 deletion
+61
-34
extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json
...nsions/coffeescript/syntaxes/coffeescript.tmLanguage.json
+51
-24
extensions/coffeescript/test/colorize-results/test_coffee.json
...sions/coffeescript/test/colorize-results/test_coffee.json
+10
-10
未找到文件。
extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json
浏览文件 @
f39d1854
...
...
@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository."
,
"Once accepted there, we are happy to receive an update request."
],
"version"
:
"https://github.com/atom/language-coffee-script/commit/
afd48572f9ea27cacb35d885741215ce9d419c6e
"
,
"version"
:
"https://github.com/atom/language-coffee-script/commit/
da81e3f537ccbbb70e542fa5af79583eb58ec50b
"
,
"scopeName"
:
"source.coffee"
,
"name"
:
"CoffeeScript"
,
"fileTypes"
:
[
...
...
@@ -90,34 +90,38 @@
]
},
{
"begin"
:
"`"
,
"beginCaptures"
:
{
"0"
:
{
"match"
:
"(`)(.*)(`)"
,
"name"
:
"string.quoted.script.coffee"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.begin.coffee"
}
},
"end"
:
"`"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.coffee"
}
},
"name"
:
"string.quoted.script.coffee"
,
"contentName"
:
"source.embedded.js"
,
"2"
:
{
"name"
:
"source.js.embedded.coffee"
,
"patterns"
:
[
{
"include"
:
"source.js"
}
]
},
"3"
:
{
"name"
:
"punctuation.definition.string.end.coffee"
}
}
},
{
"begin"
:
"(?<!#)###(?!#)"
,
"captures"
:
{
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.comment.coffee"
}
},
"end"
:
"###"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.comment.coffee"
}
},
"end"
:
"###(?:[
\\
t]*
\\
n)"
,
"name"
:
"comment.block.coffee"
,
"patterns"
:
[
{
...
...
@@ -471,6 +475,33 @@
}
]
},
{
"begin"
:
"
\\
["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.array.begin.bracket.square.coffee"
}
},
"end"
:
"
\\
]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.array.end.bracket.square.coffee"
}
},
"patterns"
:
[
{
"match"
:
"(?<!
\\
.)
\\
.{3}"
,
"name"
:
"keyword.operator.slice.exclusive.coffee"
},
{
"match"
:
"(?<!
\\
.)
\\
.{2}"
,
"name"
:
"keyword.operator.slice.inclusive.coffee"
},
{
"include"
:
"$self"
}
]
},
{
"begin"
:
"
\\
("
,
"beginCaptures"
:
{
...
...
@@ -490,10 +521,6 @@
}
]
},
{
"match"
:
"
\\
[|
\\
]"
,
"name"
:
"meta.brace.square.coffee"
},
{
"include"
:
"#instance_variable"
},
...
...
@@ -744,7 +771,7 @@
"name"
:
"constant.numeric.octal.coffee"
},
{
"match"
:
"(?x)
\n
(?<!
\\
$)(?:
\n
(?:
\\
b[0-9]+(
\\
.)[0-9]+[eE][+-]?[0-9]+
\\
b)| # 1.1E+3
\n
(?:
\\
b[0-9]+(
\\
.)[eE][+-]?[0-9]+
\\
b)| # 1.E+3
\n
(?:
\\
B(
\\
.)[0-9]+[eE][+-]?[0-9]+
\\
b)| # .1E+3
\n
(?:
\\
b[0-9]+[eE][+-]?[0-9]+
\\
b)| # 1E+3
\n
(?:
\\
b[0-9]+(
\\
.)[0-9]+
\\
b)| # 1.1
\n
(?:
\\
b[0-9]+(
\\
.)
\\
B)| # 1.
\n
(?:
\\
B(
\\
.)[0-9]+
\\
b)| # .1
\n
(?:
\\
b[0-9]+
\\
b(?!
\\
.)) # 1
\n
)(?!
\\
$)"
,
"match"
:
"(?x)
\n
(?<!
\\
$)(?:
\n
(?:
\\
b[0-9]+(
\\
.)[0-9]+[eE][+-]?[0-9]+
\\
b)| # 1.1E+3
\n
(?:
\\
b[0-9]+(
\\
.)[eE][+-]?[0-9]+
\\
b)| # 1.E+3
\n
(?:
\\
B(
\\
.)[0-9]+[eE][+-]?[0-9]+
\\
b)| # .1E+3
\n
(?:
\\
b[0-9]+[eE][+-]?[0-9]+
\\
b)| # 1E+3
\n
(?:
\\
b[0-9]+(
\\
.)[0-9]+
\\
b)| # 1.1
\n
(?:
\\
b[0-9]+(
?=
\\
.{2,3}))| # 1 followed by a slice
\n
(?:
\\
b[0-9]+(
\\
.)
\\
B)| # 1.
\n
(?:
\\
B(
\\
.)[0-9]+
\\
b)| # .1
\n
(?:
\\
b[0-9]+
\\
b(?!
\\
.)) # 1
\n
)(?!
\\
$)"
,
"captures"
:
{
"0"
:
{
"name"
:
"constant.numeric.decimal.coffee"
...
...
extensions/coffeescript/test/colorize-results/test_coffee.json
浏览文件 @
f39d1854
...
...
@@ -1002,7 +1002,7 @@
},
{
"c"
:
"["
,
"t"
:
"source.coffee
meta.brace
.square.coffee"
,
"t"
:
"source.coffee
punctuation.definition.array.begin.bracket
.square.coffee"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
...
...
@@ -1024,13 +1024,13 @@
},
{
"c"
:
".."
,
"t"
:
"source.coffee
constant.numeric.decimal.coffee punctuation.separator.decimal.period
.coffee"
,
"t"
:
"source.coffee
keyword.operator.slice.inclusive
.coffee"
,
"r"
:
{
"dark_plus"
:
"
constant.numeric: #B5CEA8
"
,
"light_plus"
:
"
constant.numeric: #09885A
"
,
"dark_vs"
:
"
constant.numeric: #B5CEA8
"
,
"light_vs"
:
"
constant.numeric: #09885A
"
,
"hc_black"
:
"
constant.numeric: #B5CEA8
"
"dark_plus"
:
"
keyword.operator: #D4D4D4
"
,
"light_plus"
:
"
keyword.operator: #000000
"
,
"dark_vs"
:
"
keyword.operator: #D4D4D4
"
,
"light_vs"
:
"
keyword.operator: #000000
"
,
"hc_black"
:
"
keyword.operator: #D4D4D4
"
}
},
{
...
...
@@ -1046,7 +1046,7 @@
},
{
"c"
:
"]"
,
"t"
:
"source.coffee
meta.brace
.square.coffee"
,
"t"
:
"source.coffee
punctuation.definition.array.end.bracket
.square.coffee"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
...
...
@@ -1178,7 +1178,7 @@
},
{
"c"
:
"["
,
"t"
:
"source.coffee
meta.brace
.square.coffee"
,
"t"
:
"source.coffee
punctuation.definition.array.begin.bracket
.square.coffee"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
...
...
@@ -1299,7 +1299,7 @@
},
{
"c"
:
"]"
,
"t"
:
"source.coffee
meta.brace
.square.coffee"
,
"t"
:
"source.coffee
punctuation.definition.array.end.bracket
.square.coffee"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录