@@ -256,11 +256,12 @@ repository:
256256 - include : ' #var-single-variable'
257257 - include : ' #variable-initializer'
258258 - include : ' #comment'
259- - begin : (,)\s*(?!\S)
259+ - begin : (,)\s*(( ?!\S)|(?=\/\/) )
260260 beginCaptures :
261261 ' 1 ' : { name: punctuation.separator.comma.ts }
262262 end : (?<!,)(((?==|;|}|(\s+(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))
263263 patterns :
264+ - include : ' #single-line-comment-consuming-line-ending'
264265 - include : ' #comment'
265266 - include : ' #destructuring-variable'
266267 - include : ' #var-single-variable'
@@ -279,11 +280,12 @@ repository:
279280 - include : ' #var-single-const'
280281 - include : ' #variable-initializer'
281282 - include : ' #comment'
282- - begin : (,)\s*(?!\S)
283+ - begin : (,)\s*(( ?!\S)|(?=\/\/) )
283284 beginCaptures :
284285 ' 1 ' : { name: punctuation.separator.comma.ts }
285286 end : (?<!,)(((?==|;|}|(\s+(of|in)\s+)|^\s*$))|((?<=\S)(?=\s*$)))
286287 patterns :
288+ - include : ' #single-line-comment-consuming-line-ending'
287289 - include : ' #comment'
288290 - include : ' #destructuring-const'
289291 - include : ' #var-single-const'
@@ -2494,6 +2496,17 @@ repository:
24942496 end : (?=$)
24952497 contentName : comment.line.double-slash.ts
24962498
2499+ single-line-comment-consuming-line-ending :
2500+ begin : (^[ \t]+)?((//)(?:\s*((@)internal)(?=\s|$))?)
2501+ beginCaptures :
2502+ ' 1 ' : { name: punctuation.whitespace.comment.leading.ts }
2503+ ' 2 ' : { name: comment.line.double-slash.ts }
2504+ ' 3 ' : { name: punctuation.definition.comment.ts }
2505+ ' 4 ' : { name: storage.type.internaldeclaration.ts }
2506+ ' 5 ' : { name: punctuation.decorator.internaldeclaration.ts }
2507+ end : (?=^)
2508+ contentName : comment.line.double-slash.ts
2509+
24972510 directives :
24982511 name : comment.line.triple-slash.directive.ts
24992512 begin : ^(///)\s*(?=<(reference|amd-dependency|amd-module)(\s+(path|types|no-default-lib|lib|name)\s*=\s*({{quotedStrings}}))+\s*/>\s*$)
0 commit comments