Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d6238db

Browse files
author
Wliu
authoredAug 23, 2016
Merge pull request #407 from Alhadis/lint
Clean up grammar source
2 parents e60992f + 4fe3643 commit d6238db

File tree

1 file changed

+121
-57
lines changed

1 file changed

+121
-57
lines changed
 

‎grammars/javascript.cson

Lines changed: 121 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
'name': 'JavaScript'
2121
'patterns': [
2222
{
23-
'comment': 'ES6 import'
23+
# ES6 import
2424
'begin': '(?<!\\.)\\b(import)(?!\\s*:)\\b'
2525
'beginCaptures':
2626
'1':
2727
'name': 'keyword.control.js'
28+
'end': '(?=;|$)'
29+
'name': 'meta.import.js'
2830
'patterns': [
2931
{
30-
'comment': '{ member1 , member2 as alias2 , [...] }'
32+
# { member1 , member2 as alias2 , [...] }
3133
'begin': '\\{'
3234
'beginCaptures':
3335
0:
@@ -38,7 +40,14 @@
3840
'name': 'punctuation.definition.modules.end.js'
3941
'patterns': [
4042
{
41-
'comment': '(default|name) as alias'
43+
# (default|name) as alias
44+
'match': '''(?x)
45+
(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)
46+
\\s*
47+
(\\b as \\b)
48+
\\s*
49+
(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)
50+
'''
4251
'captures':
4352
'1':
4453
'name': 'variable.language.default.js'
@@ -50,13 +59,6 @@
5059
'name': 'invalid.illegal.js'
5160
'5':
5261
'name': 'variable.other.module-alias.js'
53-
'match': '(?x)
54-
(?: \\b(default)\\b | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
55-
\\s*
56-
(\\b as \\b)
57-
\\s*
58-
(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
59-
'
6062
}
6163
{
6264
'match': ','
@@ -66,13 +68,20 @@
6668
'include': '#comments'
6769
}
6870
{
69-
'match': '\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b'
71+
'match': '\\b([a-zA-Z_$][\\w$]*)\\b'
7072
'name': 'variable.other.module.js'
7173
}
7274
]
7375
}
7476
{
75-
'comment': '(default|*|name) as alias'
77+
# (default|*|name) as alias
78+
'match': '''(?x)
79+
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)
80+
\\s*
81+
(\\b as \\b)
82+
\\s*
83+
(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)
84+
'''
7685
'captures':
7786
'1':
7887
'name': 'variable.language.default.js'
@@ -86,13 +95,6 @@
8695
'name': 'invalid.illegal.js'
8796
'6':
8897
'name': 'variable.other.module-alias.js'
89-
'match': '(?x)
90-
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
91-
\\s*
92-
(\\b as \\b)
93-
\\s*
94-
(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
95-
'
9698
}
9799
{
98100
'match': '\\*'
@@ -113,20 +115,22 @@
113115
'name': 'keyword.control.js'
114116
}
115117
{
116-
'match': '\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b(?=.*\\bfrom\\b)'
118+
'match': '\\b([a-zA-Z_$][\\w$]*)\\b(?=.*\\bfrom\\b)'
117119
'name': 'variable.other.module.js'
118120
}
119121
{
120122
'match': ','
121123
'name': 'meta.delimiter.object.comma.js'
122124
}
123125
]
124-
'end': '(?=;|$)'
125-
'name': 'meta.import.js'
126126
}
127127
{
128-
'comment': 'ES6 export: `export default (variable|class|function, etc.)`'
129-
'match': '(?x) \\b(export)\\b \\s* \\b(default)\\b (?:\\s*) \\b((?!\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b)[a-zA-Z_$][a-zA-Z_$0-9]*)?\\b'
128+
# ES6 export: export default (variable|class|function, etc.)
129+
'match': '''(?x)
130+
\\b(export)\\b\\s*
131+
\\b(default)\\b\\s*
132+
\\b((?!\\b(?:function|class|let|var|const)\\b)[a-zA-Z_$][\\w$]*)?\\b
133+
'''
130134
'captures':
131135
'0':
132136
'name': 'meta.export.js'
@@ -138,17 +142,19 @@
138142
'name': 'variable.other.module.js'
139143
}
140144
{
141-
'comment': 'ES6 export, re-export: `export {member as alias, [...]} [from ...]`'
145+
# ES6 export, re-export: export {member as alias, [...]} [from ...]
142146
'begin': '(?<!\\.)\\b(export)(?!\\s*:)\\b'
143147
'beginCaptures':
144148
'1':
145149
'name': 'keyword.control.js'
150+
'end': '(?=;|\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|$)'
151+
'name': 'meta.export.js'
146152
'patterns': [
147153
{
148154
'include': '#numbers'
149155
}
150156
{
151-
'comment': '`{ member1 , member2 as alias2 , [...] }` inside re-export'
157+
# { member1 , member2 as alias2 , [...] } inside re-export
152158
'begin': '\\{(?=.*\\bfrom\\b)'
153159
'beginCaptures':
154160
0:
@@ -159,7 +165,14 @@
159165
'name': 'punctuation.definition.modules.end.js'
160166
'patterns': [
161167
{
162-
'comment': '(default|name) as alias'
168+
# (default|name) as alias
169+
'match': '''(?x)
170+
(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)
171+
\\s*
172+
(\\b as \\b)
173+
\\s*
174+
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)
175+
'''
163176
'captures':
164177
'1':
165178
'name': 'variable.language.default.js'
@@ -173,13 +186,6 @@
173186
'name': 'invalid.illegal.js'
174187
'6':
175188
'name': 'variable.other.module-alias.js'
176-
'match': '(?x)
177-
(?: \\b(default)\\b | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
178-
\\s*
179-
(\\b as \\b)
180-
\\s*
181-
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
182-
'
183189
}
184190
{
185191
'match': ','
@@ -189,13 +195,13 @@
189195
'include': '#comments'
190196
}
191197
{
192-
'match': '\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b'
198+
'match': '\\b([a-zA-Z_$][\\w$]*)\\b'
193199
'name': 'variable.other.module.js'
194200
}
195201
]
196202
}
197203
{
198-
'comment': '{ member1 , member2 as alias2 , [...] }'
204+
# { member1 , member2 as alias2 , [...] }
199205
'begin': '(?![a-zA-Z_$0-9])\\{'
200206
'beginCaptures':
201207
0:
@@ -206,7 +212,7 @@
206212
'name': 'punctuation.definition.modules.end.js'
207213
'patterns': [
208214
{
209-
'comment': 'name as (default|alias)'
215+
# name as (default|alias)
210216
'captures':
211217
'1':
212218
'name': 'invalid.illegal.js'
@@ -220,13 +226,13 @@
220226
'name': 'invalid.illegal.js'
221227
'6':
222228
'name': 'variable.other.module-alias.js'
223-
'match': '(?x)
224-
(?: \\b(default)\\b | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
229+
'match': '''(?x)
230+
(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)
225231
\\s*
226232
(\\b as \\b)
227233
\\s*
228-
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b)
229-
'
234+
(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)
235+
'''
230236
}
231237
{
232238
'include': '#comments'
@@ -236,7 +242,7 @@
236242
'name': 'meta.delimiter.object.comma.js'
237243
}
238244
{
239-
'match': '\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b'
245+
'match': '\\b([a-zA-Z_$][\\w$]*)\\b'
240246
'name': 'variable.other.module.js'
241247
}
242248
]
@@ -260,7 +266,7 @@
260266
'name': 'keyword.control.js'
261267
}
262268
{
263-
'match': '\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b'
269+
'match': '\\b([a-zA-Z_$][\\w$]*)\\b'
264270
'name': 'variable.other.module.js'
265271
}
266272
{
@@ -271,8 +277,6 @@
271277
'include': '#operators'
272278
}
273279
]
274-
'end': '(?=;|\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|$)'
275-
'name': 'meta.export.js'
276280
}
277281
{
278282
'match': '''(?x)
@@ -812,12 +816,12 @@
812816
'include': '#comments'
813817
}
814818
{
819+
'match': '(<!--|-->)'
815820
'captures':
816821
'0':
817822
'name': 'punctuation.definition.comment.html.js'
818823
'2':
819824
'name': 'punctuation.definition.comment.html.js'
820-
'match': '(<!--|-->)'
821825
'name': 'comment.block.html.js'
822826
}
823827
{
@@ -963,27 +967,72 @@
963967
'name': 'keyword.other.js'
964968
}
965969
{
966-
'match': '(?<!\\$)\\b(Anchor|Applet|Area|Array|Boolean|Button|Checkbox|Date|document|event|FileUpload|Form|Frame|Function|Hidden|History|Image|JavaArray|JavaClass|JavaObject|JavaPackage|java|Layer|Link|Location|Map|MimeType|Number|navigator|netscape|Object|Option|Packages|Password|Plugin|performance|Radio|RegExp|Reset|Select|Set|String|Style|Submit|Symbol|screen|sun|Text|Textarea|WeakMap|WeakSet|window|XMLHttpRequest)\\b'
970+
'match': '''(?x) (?<!\\$) \\b
971+
(Anchor|Applet|Area|Array|Boolean|Button|Checkbox|Date|document|event|FileUpload|Form|Frame|Function|Hidden
972+
|History|Image|JavaArray|JavaClass|JavaObject|JavaPackage|java|Layer|Link|Location|Map|MimeType|Number
973+
|navigator|netscape|Object|Option|Packages|Password|Plugin|performance|Radio|RegExp|Reset|Select|Set|String
974+
|Style|Submit|Symbol|screen|sun|Text|Textarea|WeakMap|WeakSet|window|XMLHttpRequest)
975+
\\b
976+
'''
967977
'name': 'support.class.js'
968978
}
969979
{
970-
'match': '(\\.)(systemLanguage|scripts|scrollbars|screenX|screenY|screenTop|screenLeft|style|styleSheets|status|statusText|statusbar|siblingBelow|siblingAbove|source|suffixes|security|securityPolicy|selection|self|history|host|hostname|hash|hasFocus|XMLDocument|XSLDocument|next|namespaces|namespaceURI|nameProp|MIN_VALUE|MAX_VALUE|characterSet|constructor|controllers|cookieEnabled|colorDepth|components|complete|current|cpuClass|clip|clipBoardData|clientInformation|closed|classes|callee|caller|crypto|toolbar|top|textTransform|textIndent|textDecoration|textAlign|tags|innerHeight|innerWidth|input|ids|ignoreCase|zIndex|oscpu|onreadystatechange|onLine|outerHeight|outerWidth|opsProfile|opener|offscreenBuffering|NEGATIVE_INFINITY|display|dialogHeight|dialogTop|dialogWidth|dialogLeft|dialogArguments|directories|description|defaultStatus|defaultChecked|defaultCharset|defaultView|userProfile|userLanguage|userAgent|uniqueID|undefined|updateInterval|_content|pixelDepth|port|personalbar|pkcs11|plugins|platform|pathname|paddingRight|paddingBottom|paddingTop|paddingLeft|parent|parentWindow|parentLayer|pageX|pageXOffset|pageY|pageYOffset|protocol|prototype|product|productSub|prompter|previous|prefix|encoding|enabledPlugin|external|expando|embeds|visiblity|vendor|vendorSub|vLinkcolor|URLUnencoded|POSITIVE_INFINITY|filename|fontSize|fontFamily|fontWeight|formName|frames|frameElement|fgColor|whiteSpace|listStyleType|lineHeight|linkColor|location|locationbar|localName|lowsrc|length|left|leftContext|lastModified|lastMatch|lastIndex|lastParen|layers|layerX|language|appMinorVersion|appName|appCodeName|appCore|appVersion|availHeight|availTop|availWidth|availLeft|all|arity|arguments|aLinkcolor|above|right|rightContext|responseXML|responeText|readyState|global|x|y|z|mimeTypes|multiline|menubar|marginRight|marginBottom|marginTop|marginLeft|bottom|border(Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth)|bufferDepth|below|backgroundColor|backgroundImage)\\b'
980+
'match': '''(?x) (\\.)
981+
(MAX_VALUE|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY|URLUnencoded|X[MS]LDocument|[xyz]|_content|aLinkcolor
982+
|above|all|appCodeName|appCore|appMinorVersion|appName|appVersion|arguments|arity|availHeight|availLeft|availTop
983+
|availWidth|backgroundColor|backgroundImage|below|borderBottomWidth|borderColor|borderLeftWidth|borderRightWidth
984+
|borderStyle|borderTopWidth|borderWidth|bottom|bufferDepth|callee|caller|characterSet|classes|clientInformation
985+
|clip|clipBoardData|closed|colorDepth|complete|components|constructor|controllers|cookieEnabled|cpuClass|crypto
986+
|current|defaultCharset|defaultChecked|defaultStatus|defaultView|description|dialogArguments|dialogHeight
987+
|dialogLeft|dialogTop|dialogWidth|directories|display|embeds|enabledPlugin|encoding|expando|external|fgColor
988+
|filename|fontFamily|fontSize|fontWeight|formName|frameElement|frames|global|hasFocus|hash|history|host|hostname
989+
|ids|ignoreCase|innerHeight|innerWidth|input|language|lastIndex|lastMatch|lastModified|lastParen|layer[sXY]|left
990+
|leftContext|length|lineHeight|linkColor|listStyleType|localName|location|locationbar|lowsrc|marginBottom|marginLeft
991+
|marginRight|marginTop|menubar|mimeTypes|multiline|nameProp|namespaceURI|namespaces|next|offscreenBuffering|onLine
992+
|onreadystatechange|opener|opsProfile|oscpu|outerHeight|outerWidth|paddingBottom|paddingLeft|paddingRight|paddingTop
993+
|page[XY]|page[XY]Offset|parent|parentLayer|parentWindow|pathname|personalbar|pixelDepth|pkcs11|platform|plugins
994+
|port|prefix|previous|product|productSub|prompter|protocol|prototype|readyState|responeText|responseXML|right
995+
|rightContext|screenLeft|screenTop|screen[XY]|scripts|scrollbars|security|securityPolicy|selection|self|siblingAbove
996+
|siblingBelow|source|status|statusText|statusbar|style|styleSheets|suffixes|systemLanguage|tags|textAlign
997+
|textDecoration|textIndent|textTransform|toolbar|top|undefined|uniqueID|updateInterval|userAgent|userLanguage
998+
|userProfile|vLinkcolor|vendor|vendorSub|visibility|whiteSpace|zIndex)
999+
\\b
1000+
'''
9711001
'captures':
9721002
'1':
9731003
'name': 'meta.delimiter.property.period.js'
9741004
'2':
9751005
'name': 'support.constant.js'
9761006
}
9771007
{
978-
'match': '(\\.)(shape|systemId|scheme|scope|scrolling|standby|start|size|summary|specified|sectionRowIndex|selected|selectedIndex|hspace|httpEquiv|htmlFor|height|headers|href|hreflang|noResize|notations|notationName|noShade|noHref|nodeName|nodeType|nodeValue|noWrap|nextSibling|name|ch|childNodes|chOff|checked|charset|cite|content|cookie|cords|code|codeBase|codeType|cols|colSpan|color|compact|cells|cellSpacing|cellPadding|clear|className|caption|type|tBodies|title|tHead|text|target|tagName|tFoot|isMap|index|id|implementation|images|options|ownerDocument|object|disabled|dir|doctype|documentElement|docmain|declare|defer|defaultSelected|defaultChecked|defaultValue|dateTime|data|useMap|publicId|parentNode|profile|profileend|prompt|previousDibling|enctype|entities|event|elements|vspace|version|value|valueType|vLink|vAlign|URL|firstChild|form|forms|face|frame|frameBorder|width|link|links|longDesc|lowSrc|lastChild|lang|label|anchors|accessKey|accept|acceptCharset|action|attributes|applets|alt|align|archive|areas|axis|aLink|abbr|rows|rowSpan|rowIndex|rules|rev|referrer|rel|readOnly|multiple|method|media|marginHeight|marginWidth|maxLength|body|border|background|bgColor)\\b'
1008+
'match': '''(?x) (\\.)
1009+
(abbr|accept|acceptCharset|accessKey|action|align|aLink|alt|anchors|applets|archive|areas|attributes|axis|background
1010+
|bgColor|body|border|caption|cells|cellPadding|cellSpacing|ch|charset|checked|childNodes|chOff|cite|className|clear
1011+
|code|codeBase|codeType|color|cols|colSpan|compact|content|cookie|cords|data|dateTime|declare|defaultChecked
1012+
|defaultSelected|defaultValue|defer|dir|disabled|docmain|doctype|documentElement|elements|enctype|entities|event
1013+
|face|firstChild|form|forms|frame|frameBorder|headers|height|href|hreflang|hspace|htmlFor|httpEquiv|id|images
1014+
|implementation|index|isMap|label|lang|lastChild|link|links|longDesc|lowSrc|marginHeight|marginWidth|maxLength
1015+
|media|method|multiple|name|nextSibling|nodeName|nodeType|nodeValue|noHref|noResize|noShade|notationName|notations
1016+
|noWrap|object|options|ownerDocument|parentNode|previousDibling|profile|profileend|prompt|publicId|readOnly|referrer
1017+
|rel|rev|rowIndex|rows|rowSpan|rules|scheme|scope|scrolling|sectionRowIndex|selected|selectedIndex|shape|size|specified
1018+
|standby|start|summary|systemId|tagName|target|tBodies|text|tFoot|tHead|title|type|URL|useMap|vAlign|value|valueType
1019+
|version|vLink|vspace|width)
1020+
\\b
1021+
'''
9791022
'captures':
9801023
'1':
9811024
'name': 'meta.delimiter.property.period.js'
9821025
'2':
9831026
'name': 'support.constant.dom.js'
9841027
}
9851028
{
986-
'match': '\\b(ELEMENT_NODE|ATTRIBUTE_NODE|TEXT_NODE|CDATA_SECTION_NODE|ENTITY_REFERENCE_NODE|ENTITY_NODE|PROCESSING_INSTRUCTION_NODE|COMMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE|DOCUMENT_FRAGMENT_NODE|NOTATION_NODE|INDEX_SIZE_ERR|DOMSTRING_SIZE_ERR|HIERARCHY_REQUEST_ERR|WRONG_DOCUMENT_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR|NOT_SUPPORTED_ERR|INUSE_ATTRIBUTE_ERR)\\b'
1029+
'match': '''(?x) \\b
1030+
(ATTRIBUTE_NODE|CDATA_SECTION_NODE|COMMENT_NODE|DOCUMENT_FRAGMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE
1031+
|DOMSTRING_SIZE_ERR|ELEMENT_NODE|ENTITY_NODE|ENTITY_REFERENCE_NODE|HIERARCHY_REQUEST_ERR|INDEX_SIZE_ERR
1032+
|INUSE_ATTRIBUTE_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR
1033+
|NOT_SUPPORTED_ERR|NOTATION_NODE|PROCESSING_INSTRUCTION_NODE|TEXT_NODE|WRONG_DOCUMENT_ERR)
1034+
\\b
1035+
'''
9871036
'name': 'support.constant.dom.js'
9881037
}
9891038
{
@@ -1065,13 +1114,13 @@
10651114
'name': 'meta.delimiter.method.period.js'
10661115
}
10671116
{
1117+
# Allows the special return snippet to fire.
1118+
'match': '({)(})'
10681119
'captures':
10691120
'1':
10701121
'name': 'punctuation.section.scope.begin.js'
10711122
'2':
10721123
'name': 'punctuation.section.scope.end.js'
1073-
'comment': 'Allows the special return snippet to fire.'
1074-
'match': '({)(})'
10751124
}
10761125
{
10771126
'begin': '{'
@@ -1673,7 +1722,16 @@
16731722
'docblock':
16741723
'patterns': [
16751724
{
1676-
'match': '(?<!\\w)@(abstract|access|alias|arg|argument|async|attribute|augments|author|beta|borrows|bubbes|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exports?|extends|extension|extension_for|extensionfor|external|file|fileoverview|final|fires|for|function|global|host|ignore|implements|inherit[Dd]oc|inner|instance|interface|kind|lends|license|listens|main|member|memberof|method|mixex|mixins?|module|name|namespace|nocollapse|nosideeffects|override|overview|package|param|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce)\\b'
1725+
'match': '''(?x) (?<!\\w)@
1726+
(abstract|access|alias|arg|argument|async|attribute|augments|author|beta|borrows|bubbes|callback|chainable|class
1727+
|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc
1728+
|description|dict|emits|enum|event|example|exports?|extends|extension|extension_for|extensionfor|external|file
1729+
|fileoverview|final|fires|for|function|global|host|ignore|implements|inherit[Dd]oc|inner|instance|interface|kind
1730+
|lends|license|listens|main|member|memberof|method|mixex|mixins?|module|name|namespace|nocollapse|nosideeffects
1731+
|override|overview|package|param|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]
1732+
|returns?|see|since|static|struct|submodule|summary|template|this|throws|todo|tutorial|type|typedef|unrestricted
1733+
|uses|var|variation|version|virtual|writeOnce)\\b
1734+
'''
16771735
'name': 'storage.type.class.jsdoc'
16781736
}
16791737
{
@@ -1715,23 +1773,29 @@
17151773
'patterns': [
17161774
{
17171775
'begin': '/\\*\\*(?!/)'
1718-
'captures':
1776+
'beginCaptures':
17191777
'0':
17201778
'name': 'punctuation.definition.comment.js'
1779+
'end': '\\*/'
1780+
'endCaptures':
1781+
'0':
1782+
'name': 'punctuation.definition.comment.js'
1783+
'name': 'comment.block.documentation.js'
17211784
'patterns': [
17221785
{
17231786
'include': '#docblock'
17241787
}
17251788
]
1726-
'end': '\\*/'
1727-
'name': 'comment.block.documentation.js'
17281789
}
17291790
{
17301791
'begin': '/\\*'
1731-
'captures':
1792+
'beginCaptures':
17321793
'0':
17331794
'name': 'punctuation.definition.comment.js'
17341795
'end': '\\*/'
1796+
'endCaptures':
1797+
'0':
1798+
'name': 'punctuation.definition.comment.js'
17351799
'name': 'comment.block.js'
17361800
}
17371801
{

0 commit comments

Comments
 (0)
This repository has been archived.