Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
88f88a90
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,发现更多精彩内容 >>
提交
88f88a90
编写于
6月 22, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update TS grammar with fix 11.
上级
ddc27260
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
3042 addition
and
15 deletion
+3042
-15
extensions/javascript/syntaxes/JavaScript.tmLanguage
extensions/javascript/syntaxes/JavaScript.tmLanguage
+47
-5
extensions/typescript/syntaxes/TypeScript.tmLanguage
extensions/typescript/syntaxes/TypeScript.tmLanguage
+47
-5
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
+47
-5
extensions/typescript/test/colorize-fixtures/test-issue11.ts
extensions/typescript/test/colorize-fixtures/test-issue11.ts
+17
-0
extensions/typescript/test/colorize-results/test-issue11_ts.json
...ons/typescript/test/colorize-results/test-issue11_ts.json
+2884
-0
未找到文件。
extensions/javascript/syntaxes/JavaScript.tmLanguage
浏览文件 @
88f88a90
...
...
@@ -1062,6 +1062,48 @@
</dict>
</array>
</dict>
<key>
known-type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
(
<
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.js
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(?=$)|(
>
)
</string>
<key>
endCaptures
</key>
<dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.js
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.known.type.parameters.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
\b(extends)\b
</string>
<key>
name
</key>
<string>
keyword.other.ts
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
</dict>
</array>
</dict>
<key>
literal
</key>
<dict>
<key>
name
</key>
...
...
@@ -1390,7 +1432,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
know-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1938,7 +1980,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1997,7 +2039,7 @@
<key>
type-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
\s*
</string>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -2019,7 +2061,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -2130,7 +2172,7 @@
<key>
type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
JAVASCRIPT_DOES_NOT_HAVE_TYPE_PARAMETERS_SO_NEVER_MATCH_PLEASE([a-zA-Z_$][\w$]*)?(
<
)
</string>
<string>
([a-zA-Z_$][\w$]*)?\s*(
<
)(?=[^
<
]*(
<
[^
<>
]*
>
)*
>
\s*[(]
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
extensions/typescript/syntaxes/TypeScript.tmLanguage
浏览文件 @
88f88a90
...
...
@@ -695,6 +695,48 @@
<key>
name
</key>
<string>
meta.indexer.parameter.ts
</string>
</dict>
<key>
known-type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
(
<
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.ts
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(?=$)|(
>
)
</string>
<key>
endCaptures
</key>
<dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.ts
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.known.type.parameters.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
\b(extends)\b
</string>
<key>
name
</key>
<string>
keyword.other.ts
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
</dict>
</array>
</dict>
<key>
literal
</key>
<dict>
<key>
name
</key>
...
...
@@ -1023,7 +1065,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1571,7 +1613,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1630,7 +1672,7 @@
<key>
type-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
\s*
</string>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -1652,7 +1694,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1763,7 +1805,7 @@
<key>
type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
([a-zA-Z_$][\w$]*)?
(
<
)
</string>
<string>
([a-zA-Z_$][\w$]*)?
\s*(
<
)(?=[^
<
]*(
<
[^
<>
]*
>
)*
>
\s*[(]
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
浏览文件 @
88f88a90
...
...
@@ -1061,6 +1061,48 @@
</dict>
</array>
</dict>
<key>
known-type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
(
<
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.tsx
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(?=$)|(
>
)
</string>
<key>
endCaptures
</key>
<dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
meta.brace.angle.tsx
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.known.type.parameters.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
\b(extends)\b
</string>
<key>
name
</key>
<string>
keyword.other.ts
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type
</string>
</dict>
</array>
</dict>
<key>
literal
</key>
<dict>
<key>
name
</key>
...
...
@@ -1389,7 +1431,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
know-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1937,7 +1979,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1996,7 +2038,7 @@
<key>
type-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
\s*
</string>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -2018,7 +2060,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
<string>
#
known-
type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -2129,7 +2171,7 @@
<key>
type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
([a-zA-Z_$][\w$]*)?
(
<
)
</string>
<string>
([a-zA-Z_$][\w$]*)?
\s*(
<
)(?=[^
<
]*(
<
[^
<>
]*
>
)*
>
\s*[(]
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
extensions/typescript/test/colorize-fixtures/test-issue11.ts
0 → 100644
浏览文件 @
88f88a90
let
keyCode
=
0
;
if
(
!
(
keyCode
===
8
||
(
keyCode
>=
48
&&
keyCode
<=
57
)))
{}
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{}
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{}
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{}
for
(;
i
<
5
;)
{}
for
(
let
i
=
0
;
1
+
(
i
<<
5
)
<
5
;
i
++
)
{}
var
p
=
1
?
2
:(
3
<
4
?
5
:
6
);
class
A
<
X
,
Y
>
{
}
class
A1
<
T
extends
{
a
:
()
=>
string
}
>
{
}
class
B
{
}
class
C
{
}
function
foo
<
T
>
()
{
return
1
;}
let
x1
:
A
<
(
param
?:
number
)
=>
void
,
B
>
;
let
x2
:
A
<
C
|
B
,
C
&
B
>
;
const
t
=
1
<
(
5
>
10
?
1
:
2
);
var
f6
=
1
<
foo
<
string
>
();
\ No newline at end of file
extensions/typescript/test/colorize-results/test-issue11_ts.json
0 → 100644
浏览文件 @
88f88a90
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录