Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2ee0412b
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,发现更多精彩内容 >>
提交
2ee0412b
编写于
8月 02, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[typescript] update grammar (Microsoft/TypeScript-TmLanguage@1cf745c)
上级
893483c9
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
326 addition
and
488 deletion
+326
-488
extensions/typescript/syntaxes/TypeScript.tmLanguage
extensions/typescript/syntaxes/TypeScript.tmLanguage
+82
-124
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
+77
-77
extensions/typescript/syntaxes/grammar-version.txt
extensions/typescript/syntaxes/grammar-version.txt
+1
-0
extensions/typescript/test/colorize-results/test-issue11_ts.json
...ons/typescript/test/colorize-results/test-issue11_ts.json
+166
-287
未找到文件。
extensions/typescript/syntaxes/TypeScript.tmLanguage
浏览文件 @
2ee0412b
...
...
@@ -123,7 +123,7 @@
<key>
case-clause
</key>
<dict>
<key>
begin
</key>
<string>
(?
<
!\.)\b(case|default)\b
</string>
<string>
(?
<
!\.)\b(case|default
(?=:)
)\b
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -140,7 +140,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#expression
</string>
<string>
#expression
-type
</string>
</dict>
</array>
</dict>
...
...
@@ -424,6 +424,78 @@
<key>
name
</key>
<string>
keyword.others.ts
</string>
</dict>
<key>
expression-type
</key>
<dict>
<key>
name
</key>
<string>
meta.expression.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#regex
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#template
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#literal
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#paren-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#imply-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#relational-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#arithmetic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#logic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#assignment-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type-primitive
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#function-call
</string>
</dict>
</array>
</dict>
<key>
field-declaration
</key>
<dict>
<key>
begin
</key>
...
...
@@ -695,48 +767,6 @@
<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>
...
...
@@ -1065,7 +1095,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#
known-
type-parameters
</string>
<string>
#type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1504,79 +1534,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression-type
</string>
</dict>
</array>
</dict>
<key>
ternary-expression-type
</key>
<dict>
<key>
name
</key>
<string>
meta.expression.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#regex
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#template
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#literal
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#paren-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#imply-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#relational-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#arithmetic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#logic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#assignment-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type-primitive
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#function-call
</string>
<string>
#expression-type
</string>
</dict>
</array>
</dict>
...
...
@@ -1590,7 +1548,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#
ternary-
expression-type
</string>
<string>
#expression-type
</string>
</dict>
</array>
</dict>
...
...
@@ -1613,7 +1571,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#
known-
type-parameters
</string>
<string>
#type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1672,7 +1630,7 @@
<key>
type-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
</string>
<string>
\b(type)\b\s+([a-zA-Z_$][\w$]*)
\s*
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -1694,7 +1652,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#
known-
type-parameters
</string>
<string>
#type-parameters
</string>
</dict>
<dict>
<key>
include
</key>
...
...
@@ -1805,7 +1763,7 @@
<key>
type-parameters
</key>
<dict>
<key>
begin
</key>
<string>
([a-zA-Z_$][\w$]*)?
\s*(
<
)(?=[^
<
]*(
<
[^
<>
]*
>
)*
>
\s*[(]
)
</string>
<string>
([a-zA-Z_$][\w$]*)?
(
<
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -2035,4 +1993,4 @@
<key>
uuid
</key>
<string>
ef98eb90-bf9b-11e4-bb52-0800200c9a66
</string>
</dict>
</plist>
\ No newline at end of file
</plist>
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
浏览文件 @
2ee0412b
...
...
@@ -123,7 +123,7 @@
<key>
case-clause
</key>
<dict>
<key>
begin
</key>
<string>
(?
<
!\.)\b(case|default)\b
</string>
<string>
(?
<
!\.)\b(case|default
(?=:)
)\b
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -140,7 +140,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#expression
</string>
<string>
#expression
-type
</string>
</dict>
</array>
</dict>
...
...
@@ -392,6 +392,78 @@
<key>
name
</key>
<string>
keyword.others.tsx
</string>
</dict>
<key>
expression-type
</key>
<dict>
<key>
name
</key>
<string>
meta.expression.tsx
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#regex
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#template
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#literal
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#paren-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#imply-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#relational-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#arithmetic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#logic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#assignment-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type-primitive
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#function-call
</string>
</dict>
</array>
</dict>
<key>
field-declaration
</key>
<dict>
<key>
begin
</key>
...
...
@@ -1828,79 +1900,7 @@
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression-type
</string>
</dict>
</array>
</dict>
<key>
ternary-expression-type
</key>
<dict>
<key>
name
</key>
<string>
meta.expression.tsx
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#regex
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#template
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#comment
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#literal
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#paren-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#ternary-expression
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#import-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#expression-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#imply-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#relational-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#arithmetic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#logic-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#assignment-operator
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type-primitive
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#function-call
</string>
<string>
#expression-type
</string>
</dict>
</array>
</dict>
...
...
@@ -1914,7 +1914,7 @@
<array>
<dict>
<key>
include
</key>
<string>
#
ternary-
expression-type
</string>
<string>
#expression-type
</string>
</dict>
</array>
</dict>
...
...
@@ -2359,4 +2359,4 @@
<key>
uuid
</key>
<string>
805375ec-d614-41f5-8993-5843fe63ea82
</string>
</dict>
</plist>
\ No newline at end of file
</plist>
extensions/typescript/syntaxes/grammar-version.txt
0 → 100644
浏览文件 @
2ee0412b
https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/git/commits/1cf745cd5750d573f94f13bb9d95f4169c8a7841
\ No newline at end of file
extensions/typescript/test/colorize-results/test-issue11_ts.json
浏览文件 @
2ee0412b
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录