Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ba737b58
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ba737b58
编写于
3月 12, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Typescript & JavaScript grammars with fix for TypeScript-TmLanguage/37
上级
67c1c812
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
105 addition
and
60 deletion
+105
-60
extensions/javascript/syntaxes/JavaScript.tmLanguage
extensions/javascript/syntaxes/JavaScript.tmLanguage
+35
-20
extensions/typescript/syntaxes/TypeScript.tmLanguage
extensions/typescript/syntaxes/TypeScript.tmLanguage
+35
-20
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
+35
-20
未找到文件。
extensions/javascript/syntaxes/JavaScript.tmLanguage
浏览文件 @
ba737b58
...
...
@@ -336,6 +336,10 @@
<key>
include
</key>
<string>
#block
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
...
...
@@ -381,9 +385,9 @@
<key>
expression-operator
</key>
<dict>
<key>
match
</key>
<string>
=
>
|\b(delete|
export|import|from|in|instanceof|new|typeof|void|as
)\b
</string>
<string>
=
>
|\b(delete|
in|instanceof|new|typeof|as|is|of
)\b
</string>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
<key>
field-declaration
</key>
<dict>
...
...
@@ -399,7 +403,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -426,7 +430,7 @@
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -463,7 +467,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.js
</string>
<string>
storage.
type
.js
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -520,7 +524,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.js
</string>
<string>
storage.
type
.js
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -582,6 +586,13 @@
</dict>
</array>
</dict>
<key>
import-operator
</key>
<dict>
<key>
match
</key>
<string>
\b(import|from)\b
</string>
<key>
name
</key>
<string>
keyword.control.import.include.js
</string>
</dict>
<key>
indexer-declaration
</key>
<dict>
<key>
begin
</key>
...
...
@@ -606,7 +617,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -1113,7 +1124,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.js
</string>
<string>
s
torage
.type.js
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -1190,7 +1201,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.js
</string>
<string>
s
torage
.type.js
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -1217,7 +1228,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1327,7 +1338,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.js
</string>
<string>
storage.
type
.js
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -1478,7 +1489,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
<key>
3
</key>
<dict>
...
...
@@ -1488,7 +1499,7 @@
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -1622,7 +1633,7 @@
<key>
storage-keyword
</key>
<dict>
<key>
match
</key>
<string>
\b(var|let|function|const|module|namespace)\b
</string>
<string>
\b(var|let|function|const|module|namespace
|void|export
)\b
</string>
<key>
name
</key>
<string>
storage.type.js
</string>
</dict>
...
...
@@ -1674,7 +1685,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.
operator
.js
</string>
<string>
keyword.
control
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1770,7 +1781,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1780,7 +1791,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -1850,6 +1861,10 @@
<string>
meta.type.annotation.js
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
...
...
@@ -1899,7 +1914,7 @@
<key>
match
</key>
<string>
=\s*
</string>
<key>
name
</key>
<string>
keyword.operator.js
</string>
<string>
keyword.operator.
comparison.
js
</string>
</dict>
</array>
</dict>
...
...
@@ -1912,7 +1927,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -2207,7 +2222,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.js
</string>
<string>
keyword.o
thers
.js
</string>
</dict>
</dict>
<key>
end
</key>
...
...
extensions/typescript/syntaxes/TypeScript.tmLanguage
浏览文件 @
ba737b58
...
...
@@ -367,6 +367,10 @@
<key>
include
</key>
<string>
#block
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
...
...
@@ -412,9 +416,9 @@
<key>
expression-operator
</key>
<dict>
<key>
match
</key>
<string>
=
>
|\b(delete|
export|import|from|in|instanceof|new|typeof|void|as
)\b
</string>
<string>
=
>
|\b(delete|
in|instanceof|new|typeof|as|is|of
)\b
</string>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
<key>
field-declaration
</key>
<dict>
...
...
@@ -430,7 +434,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -457,7 +461,7 @@
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -494,7 +498,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.ts
</string>
<string>
storage.
type
.ts
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -551,7 +555,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.ts
</string>
<string>
storage.
type
.ts
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -613,6 +617,13 @@
</dict>
</array>
</dict>
<key>
import-operator
</key>
<dict>
<key>
match
</key>
<string>
\b(import|from)\b
</string>
<key>
name
</key>
<string>
keyword.control.import.include.ts
</string>
</dict>
<key>
indexer-declaration
</key>
<dict>
<key>
begin
</key>
...
...
@@ -637,7 +648,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -746,7 +757,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.ts
</string>
<string>
s
torage
.type.ts
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -823,7 +834,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.ts
</string>
<string>
s
torage
.type.ts
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -850,7 +861,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -960,7 +971,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.ts
</string>
<string>
storage.
type
.ts
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -1111,7 +1122,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
<key>
3
</key>
<dict>
...
...
@@ -1121,7 +1132,7 @@
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -1255,7 +1266,7 @@
<key>
storage-keyword
</key>
<dict>
<key>
match
</key>
<string>
\b(var|let|function|const|module|namespace)\b
</string>
<string>
\b(var|let|function|const|module|namespace
|void|export
)\b
</string>
<key>
name
</key>
<string>
storage.type.ts
</string>
</dict>
...
...
@@ -1307,7 +1318,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.
operator
.ts
</string>
<string>
keyword.
control
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1403,7 +1414,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1413,7 +1424,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -1483,6 +1494,10 @@
<string>
meta.type.annotation.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
...
...
@@ -1532,7 +1547,7 @@
<key>
match
</key>
<string>
=\s*
</string>
<key>
name
</key>
<string>
keyword.operator.ts
</string>
<string>
keyword.operator.
comparison.
ts
</string>
</dict>
</array>
</dict>
...
...
@@ -1545,7 +1560,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1840,7 +1855,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.ts
</string>
<string>
keyword.o
thers
.ts
</string>
</dict>
</dict>
<key>
end
</key>
...
...
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
浏览文件 @
ba737b58
...
...
@@ -335,6 +335,10 @@
<key>
include
</key>
<string>
#block
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
...
...
@@ -380,9 +384,9 @@
<key>
expression-operator
</key>
<dict>
<key>
match
</key>
<string>
=
>
|\b(delete|
export|import|from|in|instanceof|new|typeof|void|as
)\b
</string>
<string>
=
>
|\b(delete|
in|instanceof|new|typeof|as|is|of
)\b
</string>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
<key>
field-declaration
</key>
<dict>
...
...
@@ -398,7 +402,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -425,7 +429,7 @@
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -462,7 +466,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.tsx
</string>
<string>
storage.
type
.tsx
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -519,7 +523,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.tsx
</string>
<string>
storage.
type
.tsx
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -581,6 +585,13 @@
</dict>
</array>
</dict>
<key>
import-operator
</key>
<dict>
<key>
match
</key>
<string>
\b(import|from)\b
</string>
<key>
name
</key>
<string>
keyword.control.import.include.tsx
</string>
</dict>
<key>
indexer-declaration
</key>
<dict>
<key>
begin
</key>
...
...
@@ -605,7 +616,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -1112,7 +1123,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.tsx
</string>
<string>
s
torage
.type.tsx
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -1189,7 +1200,7 @@
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
s
upport
.type.tsx
</string>
<string>
s
torage
.type.tsx
</string>
</dict>
<key>
7
</key>
<dict>
...
...
@@ -1216,7 +1227,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1326,7 +1337,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.
modifier
.tsx
</string>
<string>
storage.
type
.tsx
</string>
</dict>
<key>
2
</key>
<dict>
...
...
@@ -1477,7 +1488,7 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
<key>
3
</key>
<dict>
...
...
@@ -1487,7 +1498,7 @@
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
match
</key>
...
...
@@ -1621,7 +1632,7 @@
<key>
storage-keyword
</key>
<dict>
<key>
match
</key>
<string>
\b(var|let|function|const|module|namespace)\b
</string>
<string>
\b(var|let|function|const|module|namespace
|void|export
)\b
</string>
<key>
name
</key>
<string>
storage.type.tsx
</string>
</dict>
...
...
@@ -1673,7 +1684,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.
operator
.tsx
</string>
<string>
keyword.
control
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1769,7 +1780,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -1779,7 +1790,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
name
</key>
...
...
@@ -1849,6 +1860,10 @@
<string>
meta.type.annotation.tsx
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
...
...
@@ -1898,7 +1913,7 @@
<key>
match
</key>
<string>
=\s*
</string>
<key>
name
</key>
<string>
keyword.operator.tsx
</string>
<string>
keyword.operator.
comparison.
tsx
</string>
</dict>
</array>
</dict>
...
...
@@ -1911,7 +1926,7 @@
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
@@ -2206,7 +2221,7 @@
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.o
perator
.tsx
</string>
<string>
keyword.o
thers
.tsx
</string>
</dict>
</dict>
<key>
end
</key>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录