Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d08132fc
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,发现更多精彩内容 >>
提交
d08132fc
编写于
12月 11, 2015
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ts] update grammars with latest from TypeScript-TmLanguage (05e623f)
上级
45f29b99
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
13 deletion
+34
-13
extensions/typescript/syntaxes/TypeScript.tmLanguage
extensions/typescript/syntaxes/TypeScript.tmLanguage
+31
-10
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
+3
-3
未找到文件。
extensions/typescript/syntaxes/TypeScript.tmLanguage
浏览文件 @
d08132fc
...
...
@@ -70,6 +70,13 @@
<key>
name
</key>
<string>
keyword.operator.assignment.ts
</string>
</dict>
<key>
await-modifier
</key>
<dict>
<key>
match
</key>
<string>
await
</string>
<key>
name
</key>
<string>
storage.modifier.ts
</string>
</dict>
<key>
block
</key>
<dict>
<key>
begin
</key>
...
...
@@ -98,11 +105,11 @@
<array>
<dict>
<key>
include
</key>
<string>
#
expression
</string>
<string>
#
object-member
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#
object-member
</string>
<string>
#
expression
</string>
</dict>
</array>
</dict>
...
...
@@ -116,7 +123,7 @@
<key>
cast
</key>
<dict>
<key>
begin
</key>
<string>
(?:(?
<
=return|throw|yield|[=(,:
>
]))\s*(
<
)(?!
<
?\=)
</string>
<string>
(?:(?
<
=return|throw|yield|
await|
[=(,:
>
]))\s*(
<
)(?!
<
?\=)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -380,7 +387,7 @@
<key>
field-declaration
</key>
<dict>
<key>
begin
</key>
<string>
(?
<
!\()\s*
\b([a-zA-Z_$][\w$]*
)\s*(\?\s*)?(?=(=|:))
</string>
<string>
(?
<
!\()\s*
((?:\b[a-zA-Z_$][\w$]*)|(?:\'[^']*\')|(?:\"[^"]*\")
)\s*(\?\s*)?(?=(=|:))
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -432,6 +439,10 @@
<string>
functioncall.expr.ts
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#await-modifier
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#type-parameters
</string>
...
...
@@ -445,7 +456,7 @@
<key>
function-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(?:(export)\s+)?(function\b)(?:\s+([a-zA-Z_$][\w$]*))?\s*
</string>
<string>
\b(?:(export)\s+)?(
?:(async)\s+)?(
function\b)(?:\s+([a-zA-Z_$][\w$]*))?\s*
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -456,9 +467,14 @@
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
storage.
type.function
.ts
</string>
<string>
storage.
modifier
.ts
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
storage.type.function.ts
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
entity.name.function.ts
</string>
...
...
@@ -667,7 +683,7 @@
<key>
method-declaration
</key>
<dict>
<key>
begin
</key>
<string>
\b(?:(abstract)\s+)?\b(?:(public|private|protected)\s+)?(?:(get|set)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\
<
)
</string>
<string>
\b(?:(abstract)\s+)?\b(?:(public|private|protected)\s+)?
\b(?:(async)\s+)?
(?:(get|set)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\
<
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -683,19 +699,24 @@
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
storage.
type.property
.ts
</string>
<string>
storage.
modifier
.ts
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
keyword.operator
.ts
</string>
<string>
storage.type.property
.ts
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
entity.name.function
.ts
</string>
<string>
keyword.operator
.ts
</string>
</dict>
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
entity.name.function.ts
</string>
</dict>
<key>
7
</key>
<dict>
<key>
name
</key>
<string>
keyword.operator.ts
</string>
...
...
extensions/typescript/syntaxes/TypeScriptReact.tmLanguage
浏览文件 @
d08132fc
...
...
@@ -98,11 +98,11 @@
<array>
<dict>
<key>
include
</key>
<string>
#
expression
</string>
<string>
#
object-member
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#
object-member
</string>
<string>
#
expression
</string>
</dict>
</array>
</dict>
...
...
@@ -348,7 +348,7 @@
<key>
field-declaration
</key>
<dict>
<key>
begin
</key>
<string>
(?
<
!\()\s*
\b([a-zA-Z_$][\w$]*
)\s*(\?\s*)?(?=(=|:))
</string>
<string>
(?
<
!\()\s*
((?:\b[a-zA-Z_$][\w$]*)|(?:\'[^']*\')|(?:\"[^"]*\")
)\s*(\?\s*)?(?=(=|:))
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录