Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
a715dfcb
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
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,发现更多精彩内容 >>
提交
a715dfcb
编写于
3月 23, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update js/ts grammars
上级
45bfe40a
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
240 addition
and
71 deletion
+240
-71
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
+61
-18
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
...sions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
+61
-18
extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json
...ons/typescript-basics/syntaxes/TypeScript.tmLanguage.json
+57
-17
extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
...ypescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
+61
-18
未找到文件。
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
浏览文件 @
a715dfcb
此差异已折叠。
点击以展开。
extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json
浏览文件 @
a715dfcb
此差异已折叠。
点击以展开。
extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json
浏览文件 @
a715dfcb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository."
,
"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."
"Once accepted there, we are happy to receive an update request."
],
],
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
4ef3570784b60450d6baac681cb096fbf1d2397e
"
,
"version"
:
"https://github.com/Microsoft/TypeScript-TmLanguage/commit/
f6c23eabdd7891078f178594c14188b9027e2485
"
,
"name"
:
"TypeScript"
,
"name"
:
"TypeScript"
,
"scopeName"
:
"source.ts"
,
"scopeName"
:
"source.ts"
,
"patterns"
:
[
"patterns"
:
[
...
@@ -1638,6 +1638,26 @@
...
@@ -1638,6 +1638,26 @@
},
},
"end"
:
"(?=;|$|^)"
,
"end"
:
"(?=;|$|^)"
,
"patterns"
:
[
"patterns"
:
[
{
"include"
:
"#comment"
},
{
"include"
:
"#string"
},
{
"begin"
:
"(?<=^import|[^
\\
._$[:alnum:]]import)(?!
\\
s*[
\"
'])"
,
"end"
:
"
\\
bfrom
\\
b"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"keyword.control.from.ts"
}
},
"patterns"
:
[
{
"include"
:
"#import-export-declaration"
}
]
},
{
{
"include"
:
"#import-export-declaration"
"include"
:
"#import-export-declaration"
}
}
...
@@ -1920,7 +1940,7 @@
...
@@ -1920,7 +1940,7 @@
},
},
"after-operator-block-as-object-literal"
:
{
"after-operator-block-as-object-literal"
:
{
"name"
:
"meta.objectliteral.ts"
,
"name"
:
"meta.objectliteral.ts"
,
"begin"
:
"(?<=[=(,
\\
[?+!]|^await|[^
\\
._$[:alnum:]]await|^return|[^
\\
._$[:alnum:]]return|^yield|[^
\\
._$[:alnum:]]yield|^throw|[^
\\
._$[:alnum:]]throw|^in|[^
\\
._$[:alnum:]]in|^of|[^
\\
._$[:alnum:]]of|^typeof|[^
\\
._$[:alnum:]]typeof|&&|
\\
|
\\
||
\\
*)
\\
s*(
\\
{)"
,
"begin"
:
"(?<
!
\\
+
\\
+|--)(?<
=[=(,
\\
[?+!]|^await|[^
\\
._$[:alnum:]]await|^return|[^
\\
._$[:alnum:]]return|^yield|[^
\\
._$[:alnum:]]yield|^throw|[^
\\
._$[:alnum:]]throw|^in|[^
\\
._$[:alnum:]]in|^of|[^
\\
._$[:alnum:]]of|^typeof|[^
\\
._$[:alnum:]]typeof|&&|
\\
|
\\
||
\\
*)
\\
s*(
\\
{)"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.block.ts"
"name"
:
"punctuation.definition.block.ts"
...
@@ -2209,7 +2229,7 @@
...
@@ -2209,7 +2229,7 @@
"patterns"
:
[
"patterns"
:
[
{
{
"name"
:
"cast.expr.ts"
,
"name"
:
"cast.expr.ts"
,
"begin"
:
"(?:(?<=^return|[^
\\
._$[:alnum:]]return|^throw|[^
\\
._$[:alnum:]]throw|^yield|[^
\\
._$[:alnum:]]yield|^await|[^
\\
._$[:alnum:]]await|^default|[^
\\
._$[:alnum:]]default|[=(,:>*?
\\
&
\\
|
\\
^]|[^_$[:alnum:]](?:
\\
+
\\
+|
\\
-
\\
-)|[^
\\
+]
\\
+|[^
\\
-]
\\
-))
\\
s*(<)(?!<?
\\
=)"
,
"begin"
:
"(?:(?<
!
\\
+
\\
+|--)(?<
=^return|[^
\\
._$[:alnum:]]return|^throw|[^
\\
._$[:alnum:]]throw|^yield|[^
\\
._$[:alnum:]]yield|^await|[^
\\
._$[:alnum:]]await|^default|[^
\\
._$[:alnum:]]default|[=(,:>*?
\\
&
\\
|
\\
^]|[^_$[:alnum:]](?:
\\
+
\\
+|
\\
-
\\
-)|[^
\\
+]
\\
+|[^
\\
-]
\\
-))
\\
s*(<)(?!<?
\\
=)"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"meta.brace.angle.ts"
"name"
:
"meta.brace.angle.ts"
...
@@ -2529,12 +2549,16 @@
...
@@ -2529,12 +2549,16 @@
},
},
{
{
"name"
:
"support.class.builtin.ts"
,
"name"
:
"support.class.builtin.ts"
,
"match"
:
"(?x)(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Float32Array|Float64Array|Function|Generator
\n
|GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Pro
mise|Pro
xy
\n
|Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|TypedArray
\n
|Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|WeakMap|WeakSet)
\\
b(?!
\\
$)"
"match"
:
"(?x)(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Float32Array|Float64Array|Function|Generator
\n
|GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Proxy
\n
|Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|TypedArray
\n
|Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|WeakMap|WeakSet)
\\
b(?!
\\
$)"
},
},
{
{
"name"
:
"support.class.error.ts"
,
"name"
:
"support.class.error.ts"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))((Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)
\\
b(?!
\\
$)"
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))((Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)
\\
b(?!
\\
$)"
},
},
{
"name"
:
"support.class.promise.ts"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(Promise)
\\
b(?!
\\
$)"
},
{
{
"name"
:
"support.function.ts"
,
"name"
:
"support.function.ts"
,
"match"
:
"(?x)(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(clear(Interval|Timeout)|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|
\n
isFinite|isNaN|parseFloat|parseInt|require|set(Interval|Timeout)|super|unescape|uneval)(?=
\\
s*
\\
()"
"match"
:
"(?x)(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(clear(Interval|Timeout)|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|
\n
isFinite|isNaN|parseFloat|parseInt|require|set(Interval|Timeout)|super|unescape|uneval)(?=
\\
s*
\\
()"
...
@@ -2687,7 +2711,7 @@
...
@@ -2687,7 +2711,7 @@
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(global|GLOBAL|root|__dirname|__filename)
\\
b(?!
\\
$)"
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(global|GLOBAL|root|__dirname|__filename)
\\
b(?!
\\
$)"
},
},
{
{
"match"
:
"(?x) (?:(
\\
.)|(
\\
?
\\
.(?!
\\
s*[[:digit:]])))
\\
s*
\n
(?:
\n
(on(?:Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|
\n
Readystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|
\n
Before(?:cut|deactivate|unload|update|paste|print|editfocus|activate)|
\n
Blur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|
\n
Change|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|
\n
Datasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|
\n
Dragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|
\n
Errorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)
\n
) |
\n
(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|
\n
scrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|
\n
sup|sub|substr|substring|splice|split|send|set(?:Milliseconds|Seconds|Minutes|Hours|
\n
Month|Year|FullYear|Date|UTC(?:Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|
\n
Time|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|
\n
savePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|
\n
contextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|
\n
createEventObject|to(?:GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|
\n
test|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|
\n
untaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|
\n
print|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|
\n
fileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|
\n
forward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|
\n
abort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|
\n
releaseCapture|releaseEvents|go|get(?:Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|
\n
Time|Date|TimezoneOffset|UTC(?:Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|
\n
Attention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|
\n
moveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back
\n
) |
\n
(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|
\n
appendChild|appendData|before|blur|canPlayType|captureStream|
\n
caretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|
\n
cloneContents|cloneNode|cloneRange|close|closest|collapse|
\n
compareBoundaryPoints|compareDocumentPosition|comparePoint|contains|
\n
convertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|
\n
createAttributeNS|createCaption|createCDATASection|createComment|
\n
createContextualFragment|createDocument|createDocumentFragment|
\n
createDocumentType|createElement|createElementNS|createEntityReference|
\n
createEvent|createExpression|createHTMLDocument|createNodeIterator|
\n
createNSResolver|createProcessingInstruction|createRange|createShadowRoot|
\n
createTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|
\n
deleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|
\n
deleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|
\n
enableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|
\n
exitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|
\n
getAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|
\n
getAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|
\n
getClientRects|getContext|getDestinationInsertionPoints|getElementById|
\n
getElementsByClassName|getElementsByName|getElementsByTagName|
\n
getElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|
\n
getVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|
\n
hasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|
\n
insertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|
\n
insertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|
\n
isPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|
\n
lookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|
\n
moveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|
\n
parentNode|pause|play|postMessage|prepend|preventDefault|previousNode|
\n
previousSibling|probablySupportsContext|queryCommandEnabled|
\n
queryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|
\n
querySelector|querySelectorAll|registerContentHandler|registerElement|
\n
registerProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|
\n
removeAttributeNode|removeAttributeNS|removeChild|removeEventListener|
\n
removeItem|replace|replaceChild|replaceData|replaceWith|reportValidity|
\n
requestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|
\n
scrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|
\n
setAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|
\n
setCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|
\n
setRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|
\n
slice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|
\n
submit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|
\n
toDataURL|toggle|toString|values|write|writeln
\n
)
\n
)(?=
\\
s*
\\
()"
,
"match"
:
"(?x) (?:(
\\
.)|(
\\
?
\\
.(?!
\\
s*[[:digit:]])))
\\
s*
\n
(?:
\n
(on(?:Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|
\n
Readystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|
\n
Before(?:cut|deactivate|unload|update|paste|print|editfocus|activate)|
\n
Blur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|
\n
Change|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|
\n
Datasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|
\n
Dragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|
\n
Errorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)
\n
) |
\n
(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|
\n
scrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|
\n
sup|sub|substr|substring|splice|split|send|set(?:Milliseconds|Seconds|Minutes|Hours|
\n
Month|Year|FullYear|Date|UTC(?:Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|
\n
Time|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|
\n
savePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|
\n
contextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|
\n
createEventObject|to(?:GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|
\n
test|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|
\n
untaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|
\n
print|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|
\n
fileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|
\n
forward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|
\n
abort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|
\n
releaseCapture|releaseEvents|go|get(?:Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|
\n
Time|Date|TimezoneOffset|UTC(?:Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|
\n
Attention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|
\n
moveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back
\n
) |
\n
(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|
\n
appendChild|appendData|before|blur|canPlayType|captureStream|
\n
caretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|
\n
cloneContents|cloneNode|cloneRange|close|closest|collapse|
\n
compareBoundaryPoints|compareDocumentPosition|comparePoint|contains|
\n
convertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|
\n
createAttributeNS|createCaption|createCDATASection|createComment|
\n
createContextualFragment|createDocument|createDocumentFragment|
\n
createDocumentType|createElement|createElementNS|createEntityReference|
\n
createEvent|createExpression|createHTMLDocument|createNodeIterator|
\n
createNSResolver|createProcessingInstruction|createRange|createShadowRoot|
\n
createTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|
\n
deleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|
\n
deleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|
\n
enableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|
\n
exitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|
\n
getAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|
\n
getAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|
\n
getClientRects|getContext|getDestinationInsertionPoints|getElementById|
\n
getElementsByClassName|getElementsByName|getElementsByTagName|
\n
getElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|
\n
getVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|
\n
hasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|
\n
insertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|
\n
insertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|
\n
isPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|
\n
lookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|
\n
moveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|
\n
parentNode|pause|play|postMessage|prepend|preventDefault|previousNode|
\n
previousSibling|probablySupportsContext|queryCommandEnabled|
\n
queryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|
\n
querySelector|querySelectorAll|registerContentHandler|registerElement|
\n
registerProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|
\n
removeAttributeNode|removeAttributeNS|removeChild|removeEventListener|
\n
removeItem|replace|replaceChild|replaceData|replaceWith|reportValidity|
\n
requestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|
\n
scrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|
\n
setAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|
\n
setCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|
\n
setRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|
\n
slice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|
\n
submit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|
\n
toDataURL|toggle|toString|values|write|writeln
\n
)
|
\n
(all|catch|finally|race|reject|resolve|then
\n
)
\n
)(?=
\\
s*
\\
()"
,
"captures"
:
{
"captures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.accessor.ts"
"name"
:
"punctuation.accessor.ts"
...
@@ -2703,6 +2727,9 @@
...
@@ -2703,6 +2727,9 @@
},
},
"5"
:
{
"5"
:
{
"name"
:
"support.function.dom.ts"
"name"
:
"support.function.dom.ts"
},
"6"
:
{
"name"
:
"support.function.promise.ts"
}
}
}
}
}
}
...
@@ -3111,12 +3138,9 @@
...
@@ -3111,12 +3138,9 @@
]
]
},
},
"type-conditional"
:
{
"type-conditional"
:
{
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(
[_$[:alpha:]][_$[:alnum:]]*)
\\
s+(
extends)
\\
s+"
,
"match"
:
"(?<![_$[:alnum:]])(?:(?<=
\\
.
\\
.
\\
.)|(?<!
\\
.))(extends)
\\
s+"
,
"captures"
:
{
"captures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"entity.name.type.ts"
},
"2"
:
{
"name"
:
"storage.modifier.ts"
"name"
:
"storage.modifier.ts"
}
}
}
}
...
@@ -3440,13 +3464,13 @@
...
@@ -3440,13 +3464,13 @@
"patterns"
:
[
"patterns"
:
[
{
{
"name"
:
"string.regexp.ts"
,
"name"
:
"string.regexp.ts"
,
"begin"
:
"(?<
=[=(:,
\\
[?+!]|^return|[^
\\
._$[:alnum:]]return|^case|[^
\\
._$[:alnum:]]case|=>|&&|
\\
|
\\
||
\\
*
\\
/)
\\
s*(
\\
/)(?![
\\
/*])(?=(?:[^
\\
/
\\\\\\
[]|
\\\\
.|
\\
[([^
\\
]
\\\\
]|
\\\\
.)+
\\
])+
\\
/(?![
\\
/*])[gim
uy]*(?!
\\
s*[a-zA-Z0-9_$]))"
,
"begin"
:
"(?<
!
\\
+
\\
+|--)(?<=[=(:,
\\
[?+!]|^return|[^
\\
._$[:alnum:]]return|^case|[^
\\
._$[:alnum:]]case|=>|&&|
\\
|
\\
||
\\
*
\\
/)
\\
s*(
\\
/)(?![
\\
/*])(?=(?:[^
\\
/
\\\\\\
[]|
\\\\
.|
\\
[([^
\\
]
\\\\
]|
\\\\
.)+
\\
])+
\\
/(?![
\\
/*])[gims
uy]*(?!
\\
s*[a-zA-Z0-9_$]))"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.begin.ts"
"name"
:
"punctuation.definition.string.begin.ts"
}
}
},
},
"end"
:
"(/)([gimuy]*)"
,
"end"
:
"(/)([gim
s
uy]*)"
,
"endCaptures"
:
{
"endCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.end.ts"
"name"
:
"punctuation.definition.string.end.ts"
...
@@ -3463,13 +3487,13 @@
...
@@ -3463,13 +3487,13 @@
},
},
{
{
"name"
:
"string.regexp.ts"
,
"name"
:
"string.regexp.ts"
,
"begin"
:
"(?<![_$[:alnum:])
\\
]]
)
\\
/(?![
\\
/*])(?=(?:[^
\\
/
\\\\\\
[]|
\\\\
.|
\\
[([^
\\
]
\\\\
]|
\\\\
.)+
\\
])+
\\
/(?![
\\
/*])[gim
uy]*(?!
\\
s*[a-zA-Z0-9_$]))"
,
"begin"
:
"(?<![_$[:alnum:])
\\
]]
|
\\
+
\\
+|--)
\\
/(?![
\\
/*])(?=(?:[^
\\
/
\\\\\\
[]|
\\\\
.|
\\
[([^
\\
]
\\\\
]|
\\\\
.)+
\\
])+
\\
/(?![
\\
/*])[gims
uy]*(?!
\\
s*[a-zA-Z0-9_$]))"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"0"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ts"
"name"
:
"punctuation.definition.string.begin.ts"
}
}
},
},
"end"
:
"(/)([gimuy]*)"
,
"end"
:
"(/)([gim
s
uy]*)"
,
"endCaptures"
:
{
"endCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.end.ts"
"name"
:
"punctuation.definition.string.end.ts"
...
@@ -3493,8 +3517,15 @@
...
@@ -3493,8 +3517,15 @@
"match"
:
"
\\\\
[bB]|
\\
^|
\\
$"
"match"
:
"
\\\\
[bB]|
\\
^|
\\
$"
},
},
{
{
"name"
:
"keyword.other.back-reference.regexp"
,
"match"
:
"
\\\\
[1-9]
\\
d*|
\\\\
k<([a-zA-Z_$][
\\
w$]*)>"
,
"match"
:
"
\\\\
[1-9]
\\
d*"
"captures"
:
{
"0"
:
{
"name"
:
"keyword.other.back-reference.regexp"
},
"1"
:
{
"name"
:
"variable.other.regexp"
}
}
},
},
{
{
"name"
:
"keyword.operator.quantifier.regexp"
,
"name"
:
"keyword.operator.quantifier.regexp"
,
...
@@ -3506,7 +3537,7 @@
...
@@ -3506,7 +3537,7 @@
},
},
{
{
"name"
:
"meta.group.assertion.regexp"
,
"name"
:
"meta.group.assertion.regexp"
,
"begin"
:
"(
\\
()((
\\
?=)|(
\\
?!))"
,
"begin"
:
"(
\\
()((
\\
?=)|(
\\
?!)
|(
\\
?<=)|(
\\
?<!)
)"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.group.regexp"
"name"
:
"punctuation.definition.group.regexp"
...
@@ -3519,6 +3550,12 @@
...
@@ -3519,6 +3550,12 @@
},
},
"4"
:
{
"4"
:
{
"name"
:
"meta.assertion.negative-look-ahead.regexp"
"name"
:
"meta.assertion.negative-look-ahead.regexp"
},
"5"
:
{
"name"
:
"meta.assertion.look-behind.regexp"
},
"6"
:
{
"name"
:
"meta.assertion.negative-look-behind.regexp"
}
}
},
},
"end"
:
"(
\\
))"
,
"end"
:
"(
\\
))"
,
...
@@ -3535,13 +3572,16 @@
...
@@ -3535,13 +3572,16 @@
},
},
{
{
"name"
:
"meta.group.regexp"
,
"name"
:
"meta.group.regexp"
,
"begin"
:
"
\\
((
\\
?:
)?"
,
"begin"
:
"
\\
((
?:(
\\
?:)|(?:
\\
?<([a-zA-Z_$][
\\
w$]*)>)
)?"
,
"beginCaptures"
:
{
"beginCaptures"
:
{
"0"
:
{
"0"
:
{
"name"
:
"punctuation.definition.group.regexp"
"name"
:
"punctuation.definition.group.regexp"
},
},
"1"
:
{
"1"
:
{
"name"
:
"punctuation.definition.group.no-capture.regexp"
"name"
:
"punctuation.definition.group.no-capture.regexp"
},
"2"
:
{
"name"
:
"variable.other.regexp"
}
}
},
},
"end"
:
"
\\
)"
,
"end"
:
"
\\
)"
,
...
...
extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json
浏览文件 @
a715dfcb
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录