Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
3bcc2f60
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,发现更多精彩内容 >>
提交
3bcc2f60
编写于
3月 27, 2020
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update js/ts grammars
上级
7d218326
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
265 addition
and
77 deletion
+265
-77
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
+66
-19
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
...sions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
+66
-19
extensions/typescript-basics/cgmanifest.json
extensions/typescript-basics/cgmanifest.json
+1
-1
extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json
...ons/typescript-basics/syntaxes/TypeScript.tmLanguage.json
+66
-19
extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
...ypescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
+66
-19
未找到文件。
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
浏览文件 @
3bcc2f60
...
...
@@ -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/Microsoft/TypeScript-TmLanguage/commit/
71c4e0ca325685b72c62daabf27552dd7ea539b0
"
,
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
863fe48831356e0d459cc71c1e7d72c41b7e1b42
"
,
"name"
:
"JavaScript (with React support)"
,
"scopeName"
:
"source.js"
,
"patterns"
:
[
...
...
@@ -2836,26 +2836,75 @@
]
},
"function-call"
:
{
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(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))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.js"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\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\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"end"
:
"(?<=
\\
))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
"name"
:
"meta.function-call.js"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
},
{
"name"
:
"entity.name.function.js"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
"include"
:
"#paren-expression"
}
]
},
{
"include"
:
"#comment"
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"end"
:
"(?<=
\\
>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.js"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
}
]
}
]
},
"function-call-target"
:
{
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
},
{
"name"
:
"entity.name.function.js"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
}
]
},
"function-call-optionals"
:
{
"patterns"
:
[
{
"name"
:
"meta.function-call.js punctuation.accessor.optional.js"
,
"match"
:
"
\\
?
\\
."
...
...
@@ -2863,12 +2912,6 @@
{
"name"
:
"meta.function-call.js keyword.operator.definiteassignment.js"
,
"match"
:
"
\\
!"
},
{
"include"
:
"#type-arguments"
},
{
"include"
:
"#paren-expression"
}
]
},
...
...
@@ -4333,6 +4376,10 @@
"name"
:
"keyword.operator.expression.infer.js"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))infer(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.awaited.js"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))awaited(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.import.js"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))import(?=
\\
s*
\\
()"
...
...
@@ -4542,12 +4589,12 @@
"patterns"
:
[
{
"name"
:
"string.template.js"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\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>)*(?<!=)>
\\
s*)?`)"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"end"
:
"(?=`)"
,
"patterns"
:
[
{
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\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))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
...
...
@@ -4565,7 +4612,7 @@
},
{
"name"
:
"string.template.js"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|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?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"entity.name.function.tagged-template.js"
...
...
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
浏览文件 @
3bcc2f60
...
...
@@ -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/Microsoft/TypeScript-TmLanguage/commit/
71c4e0ca325685b72c62daabf27552dd7ea539b0
"
,
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
863fe48831356e0d459cc71c1e7d72c41b7e1b42
"
,
"name"
:
"JavaScript (with React support)"
,
"scopeName"
:
"source.js.jsx"
,
"patterns"
:
[
...
...
@@ -2836,26 +2836,75 @@
]
},
"function-call"
:
{
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readon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(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.js.jsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
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*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\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
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
"name"
:
"meta.function-call.js.jsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
},
{
"name"
:
"entity.name.function.js.jsx"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
"include"
:
"#paren-expression"
}
]
},
{
"include"
:
"#comment"
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"end"
:
"(?<=
\\
>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.js.jsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
}
]
}
]
},
"function-call-target"
:
{
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
},
{
"name"
:
"entity.name.function.js.jsx"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
}
]
},
"function-call-optionals"
:
{
"patterns"
:
[
{
"name"
:
"meta.function-call.js.jsx punctuation.accessor.optional.js.jsx"
,
"match"
:
"
\\
?
\\
."
...
...
@@ -2863,12 +2912,6 @@
{
"name"
:
"meta.function-call.js.jsx keyword.operator.definiteassignment.js.jsx"
,
"match"
:
"
\\
!"
},
{
"include"
:
"#type-arguments"
},
{
"include"
:
"#paren-expression"
}
]
},
...
...
@@ -4333,6 +4376,10 @@
"name"
:
"keyword.operator.expression.infer.js.jsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))infer(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.awaited.js.jsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))awaited(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.import.js.jsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))import(?=
\\
s*
\\
()"
...
...
@@ -4542,12 +4589,12 @@
"patterns"
:
[
{
"name"
:
"string.template.js.jsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(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))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"end"
:
"(?=`)"
,
"patterns"
:
[
{
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(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'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
...
...
@@ -4565,7 +4612,7 @@
},
{
"name"
:
"string.template.js.jsx"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
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*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"entity.name.function.tagged-template.js.jsx"
...
...
extensions/typescript-basics/cgmanifest.json
浏览文件 @
3bcc2f60
...
...
@@ -6,7 +6,7 @@
"git"
:
{
"name"
:
"TypeScript-TmLanguage"
,
"repositoryUrl"
:
"https://github.com/Microsoft/TypeScript-TmLanguage"
,
"commitHash"
:
"
71c4e0ca325685b72c62daabf27552dd7ea539b0
"
"commitHash"
:
"
863fe48831356e0d459cc71c1e7d72c41b7e1b42
"
}
},
"license"
:
"MIT"
,
...
...
extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json
浏览文件 @
3bcc2f60
...
...
@@ -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/Microsoft/TypeScript-TmLanguage/commit/
71c4e0ca325685b72c62daabf27552dd7ea539b0
"
,
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
863fe48831356e0d459cc71c1e7d72c41b7e1b42
"
,
"name"
:
"TypeScript"
,
"scopeName"
:
"source.ts"
,
"patterns"
:
[
...
...
@@ -2833,26 +2833,75 @@
]
},
"function-call"
:
{
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_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(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.ts"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\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,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
"name"
:
"meta.function-call.ts"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
},
{
"name"
:
"entity.name.function.ts"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
"include"
:
"#paren-expression"
}
]
},
{
"include"
:
"#comment"
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"end"
:
"(?<=
\\
>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.ts"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
}
]
}
]
},
"function-call-target"
:
{
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
},
{
"name"
:
"entity.name.function.ts"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
}
]
},
"function-call-optionals"
:
{
"patterns"
:
[
{
"name"
:
"meta.function-call.ts punctuation.accessor.optional.ts"
,
"match"
:
"
\\
?
\\
."
...
...
@@ -2860,12 +2909,6 @@
{
"name"
:
"meta.function-call.ts keyword.operator.definiteassignment.ts"
,
"match"
:
"
\\
!"
},
{
"include"
:
"#type-arguments"
},
{
"include"
:
"#paren-expression"
}
]
},
...
...
@@ -4382,6 +4425,10 @@
"name"
:
"keyword.operator.expression.infer.ts"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))infer(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.awaited.ts"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))awaited(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.import.ts"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))import(?=
\\
s*
\\
()"
...
...
@@ -4591,12 +4638,12 @@
"patterns"
:
[
{
"name"
:
"string.template.ts"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\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
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"end"
:
"(?=`)"
,
"patterns"
:
[
{
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\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(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
...
...
@@ -4614,7 +4661,7 @@
},
{
"name"
:
"string.template.ts"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([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|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"entity.name.function.tagged-template.ts"
...
...
extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
浏览文件 @
3bcc2f60
...
...
@@ -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/Microsoft/TypeScript-TmLanguage/commit/
71c4e0ca325685b72c62daabf27552dd7ea539b0
"
,
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
863fe48831356e0d459cc71c1e7d72c41b7e1b42
"
,
"name"
:
"TypeScriptReact"
,
"scopeName"
:
"source.tsx"
,
"patterns"
:
[
...
...
@@ -2836,26 +2836,75 @@
]
},
"function-call"
:
{
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*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
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"end"
:
"(?<=
\\
))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
()|(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$)))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.tsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?(((<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([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([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"end"
:
"(?<=
\\
))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
"name"
:
"meta.function-call.tsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=
\\
s*(?:(
\\
?
\\
.
\\
s*)|(
\\
!))?((<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][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(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?
\\
())"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
},
{
"name"
:
"entity.name.function.tsx"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
"include"
:
"#paren-expression"
}
]
},
{
"include"
:
"#comment"
"begin"
:
"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"end"
:
"(?<=
\\
>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[
\\
)]))(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"name"
:
"meta.function-call.tsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*)(
\\
s*
\\
??
\\
.
\\
s*(
\\
#?[_$[:alpha:]][_$[:alnum:]]*))*)|(
\\
??
\\
.
\\
s*
\\
#?[_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*[
\\
{
\\
[
\\
(]
\\
s*$))"
,
"patterns"
:
[
{
"include"
:
"#function-call-target"
}
]
},
{
"include"
:
"#comment"
},
{
"include"
:
"#function-call-optionals"
},
{
"include"
:
"#type-arguments"
}
]
}
]
},
"function-call-target"
:
{
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
},
{
"name"
:
"entity.name.function.tsx"
,
"match"
:
"(
\\
#?[_$[:alpha:]][_$[:alnum:]]*)"
}
]
},
"function-call-optionals"
:
{
"patterns"
:
[
{
"name"
:
"meta.function-call.tsx punctuation.accessor.optional.tsx"
,
"match"
:
"
\\
?
\\
."
...
...
@@ -2863,12 +2912,6 @@
{
"name"
:
"meta.function-call.tsx keyword.operator.definiteassignment.tsx"
,
"match"
:
"
\\
!"
},
{
"include"
:
"#type-arguments"
},
{
"include"
:
"#paren-expression"
}
]
},
...
...
@@ -4333,6 +4376,10 @@
"name"
:
"keyword.operator.expression.infer.tsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))infer(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.awaited.tsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))awaited(?=
\\
s+[_$[:alpha:]])"
},
{
"name"
:
"keyword.operator.expression.import.tsx"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))import(?=
\\
s*
\\
()"
...
...
@@ -4542,12 +4589,12 @@
"patterns"
:
[
{
"name"
:
"string.template.tsx"
,
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|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\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"end"
:
"(?=`)"
,
"patterns"
:
[
{
"begin"
:
"(?=(([_$[:alpha:]][_$[:alnum:]]*
\\
s*
\\
??
\\
.
\\
s*)*|(
\\
??
\\
.
\\
s*)?)([_$[:alpha:]][_$[:alnum:]]*))"
,
"end"
:
"(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"end"
:
"(?=(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)?`)"
,
"patterns"
:
[
{
"include"
:
"#support-function-call-identifiers"
...
...
@@ -4565,7 +4612,7 @@
},
{
"name"
:
"string.template.tsx"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"begin"
:
"([_$[:alpha:]][_$[:alnum:]]*)
\\
s*(?=(<
\\
s*(((keyof|infer|
awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))(([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>|
\\
<
\\
s*(((keyof|infer|awaited
|typeof|readonly)
\\
s+)|(([_$[:alpha:]][_$[:alnum:]]*|(
\\
{([^
\\
{
\\
}]|(
\\
{[^
\\
{
\\
}]*
\\
}))*
\\
})|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(
\\
[([^
\\
[
\\
]]|(
\\
[[^
\\
[
\\
]]*
\\
]))*
\\
])|(
\\
'([^
\\
'
\\\\
]|
\\\\
.)*
\\
')|(
\\\"
([^
\\\"\\\\
]|
\\\\
.)*
\\\"
)|(
\\
`([^
\\
`
\\\\
]|
\\\\
.)*
\\
`))(?=
\\
s*([
\\
<
\\
>
\\
,
\\
.
\\
[]|=>|&(?!&)|
\\
|(?!
\\
|)))))([^<>
\\
(]|(
\\
(([^
\\
(
\\
)]|(
\\
([^
\\
(
\\
)]*
\\
)))*
\\
))|(?<==)
\\
>)*(?<!=)
\\
>))*(?<!=)
\\
>)*(?<!=)>
\\
s*)`)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"entity.name.function.tagged-template.tsx"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录