|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/d33674e802be357bff20cf8b0a4c966be54c39c4", |
| 7 | + "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/4407e8d57037cdb02e5fb670bcf318e0daebb40f", |
8 | 8 | "name": "JavaScript (with React support)", |
9 | 9 | "scopeName": "source.js", |
10 | 10 | "patterns": [ |
|
96 | 96 | }, |
97 | 97 | { |
98 | 98 | "name": "storage.modifier.js", |
99 | | - "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(declare)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" |
| 99 | + "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(declare|export)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" |
100 | 100 | } |
101 | 101 | ] |
102 | 102 | }, |
|
288 | 288 | "patterns": [ |
289 | 289 | { |
290 | 290 | "name": "meta.var.expr.js", |
291 | | - "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(var|let)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", |
292 | | - "beginCaptures": { |
293 | | - "1": { |
294 | | - "name": "keyword.control.export.js" |
295 | | - }, |
296 | | - "2": { |
297 | | - "name": "storage.modifier.js" |
298 | | - }, |
299 | | - "3": { |
300 | | - "name": "storage.type.js" |
301 | | - } |
302 | | - }, |
303 | | - "end": "((?=;|}|(\\s+(of|in)\\s+)|^\\s*$|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)|((?<=\\S)(?<!^let|[^\\._$[:alnum:]]let|^var|[^\\._$[:alnum:]]var)(?=\\s*$)))", |
| 291 | + "begin": "(?=(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(var|let)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))", |
| 292 | + "end": "(?!(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(var|let)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))((?=;|}|(\\s+(of|in)\\s+)|^\\s*$|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))|((?<!^let|[^\\._$[:alnum:]]let|^var|[^\\._$[:alnum:]]var)(?=\\s*$)))", |
304 | 293 | "patterns": [ |
| 294 | + { |
| 295 | + "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(var|let)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*", |
| 296 | + "beginCaptures": { |
| 297 | + "1": { |
| 298 | + "name": "keyword.control.export.js" |
| 299 | + }, |
| 300 | + "2": { |
| 301 | + "name": "storage.modifier.js" |
| 302 | + }, |
| 303 | + "3": { |
| 304 | + "name": "storage.type.js" |
| 305 | + } |
| 306 | + }, |
| 307 | + "end": "(?=\\S)" |
| 308 | + }, |
305 | 309 | { |
306 | 310 | "include": "#destructuring-variable" |
307 | 311 | }, |
|
315 | 319 | "include": "#comment" |
316 | 320 | }, |
317 | 321 | { |
318 | | - "begin": "(,)\\s*(?!\\S)", |
| 322 | + "begin": "(,)\\s*((?!\\S)|(?=\\/\\/))", |
319 | 323 | "beginCaptures": { |
320 | 324 | "1": { |
321 | 325 | "name": "punctuation.separator.comma.js" |
322 | 326 | } |
323 | 327 | }, |
324 | 328 | "end": "(?<!,)(((?==|;|}|(\\s+(of|in)\\s+)|^\\s*$))|((?<=\\S)(?=\\s*$)))", |
325 | 329 | "patterns": [ |
| 330 | + { |
| 331 | + "include": "#single-line-comment-consuming-line-ending" |
| 332 | + }, |
326 | 333 | { |
327 | 334 | "include": "#comment" |
328 | 335 | }, |
|
344 | 351 | }, |
345 | 352 | { |
346 | 353 | "name": "meta.var.expr.js", |
347 | | - "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(const(?!\\s+enum\\b))(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", |
| 354 | + "begin": "(?=(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(const(?!\\s+enum\\b))(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))", |
348 | 355 | "beginCaptures": { |
349 | 356 | "1": { |
350 | 357 | "name": "keyword.control.export.js" |
|
356 | 363 | "name": "storage.type.js" |
357 | 364 | } |
358 | 365 | }, |
359 | | - "end": "((?=;|}|(\\s+(of|in)\\s+)|^\\s*$|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)|((?<=\\S)(?<!^const|[^\\._$[:alnum:]]const)(?=\\s*$)))", |
| 366 | + "end": "(?!(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(const(?!\\s+enum\\b))(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))((?=;|}|(\\s+(of|in)\\s+)|^\\s*$|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))|((?<!^const|[^\\._$[:alnum:]]const)(?=\\s*$)))", |
360 | 367 | "patterns": [ |
| 368 | + { |
| 369 | + "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(const(?!\\s+enum\\b))(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*", |
| 370 | + "beginCaptures": { |
| 371 | + "1": { |
| 372 | + "name": "keyword.control.export.js" |
| 373 | + }, |
| 374 | + "2": { |
| 375 | + "name": "storage.modifier.js" |
| 376 | + }, |
| 377 | + "3": { |
| 378 | + "name": "storage.type.js" |
| 379 | + } |
| 380 | + }, |
| 381 | + "end": "(?=\\S)" |
| 382 | + }, |
361 | 383 | { |
362 | 384 | "include": "#destructuring-const" |
363 | 385 | }, |
|
371 | 393 | "include": "#comment" |
372 | 394 | }, |
373 | 395 | { |
374 | | - "begin": "(,)\\s*(?!\\S)", |
| 396 | + "begin": "(,)\\s*((?!\\S)|(?=\\/\\/))", |
375 | 397 | "beginCaptures": { |
376 | 398 | "1": { |
377 | 399 | "name": "punctuation.separator.comma.js" |
378 | 400 | } |
379 | 401 | }, |
380 | 402 | "end": "(?<!,)(((?==|;|}|(\\s+(of|in)\\s+)|^\\s*$))|((?<=\\S)(?=\\s*$)))", |
381 | 403 | "patterns": [ |
| 404 | + { |
| 405 | + "include": "#single-line-comment-consuming-line-ending" |
| 406 | + }, |
382 | 407 | { |
383 | 408 | "include": "#comment" |
384 | 409 | }, |
|
1032 | 1057 | }, |
1033 | 1058 | "field-declaration": { |
1034 | 1059 | "name": "meta.field.declaration.js", |
1035 | | - "begin": "(?x)(?<!\\()(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s+)?(?=\\s*((\\b(?<!\\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\\b(?!\\$))|(\\b(?<!\\$)0(b|B)[01][01_]*\\b(?!\\$))|(\\b(?<!\\$)0(o|O)?[0-7][0-7_]*\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*\\b)| # .1\n (?:\\b[0-9][0-9_]*\\b(?!\\.)) # 1\n)(?!\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\'([^\\'\\\\]|\\\\\\'|\\\\)*\\')|(\\\"([^\\\"\\\\]|\\\\\\\"|\\\\)*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])+\\]))\\s*(\\?\\s*)?(=|:|;|$))", |
| 1060 | + "begin": "(?x)(?<!\\()(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s+)?(?=\\s*((\\b(?<!\\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\\b(?!\\$))|(\\b(?<!\\$)0(b|B)[01][01_]*\\b(?!\\$))|(\\b(?<!\\$)0(o|O)?[0-7][0-7_]*\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*\\b)| # .1\n (?:\\b[0-9][0-9_]*\\b(?!\\.)) # 1\n)(?!\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\'([^\\'\\\\]|\\\\\\'|\\\\)*\\')|(\\\"([^\\\"\\\\]|\\\\\\\"|\\\\)*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])+\\]))\\s*(\\?\\s*)?(=|:|;|,|$))", |
1036 | 1061 | "beginCaptures": { |
1037 | 1062 | "1": { |
1038 | 1063 | "name": "storage.modifier.js" |
1039 | 1064 | } |
1040 | 1065 | }, |
1041 | | - "end": "(?x)(?=\\}|;|,|$|(^(?!\\s*((\\b(?<!\\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\\b(?!\\$))|(\\b(?<!\\$)0(b|B)[01][01_]*\\b(?!\\$))|(\\b(?<!\\$)0(o|O)?[0-7][0-7_]*\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*\\b)| # .1\n (?:\\b[0-9][0-9_]*\\b(?!\\.)) # 1\n)(?!\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\'([^\\'\\\\]|\\\\\\'|\\\\)*\\')|(\\\"([^\\\"\\\\]|\\\\\\\"|\\\\)*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])+\\]))\\s*(\\?\\s*)?(=|:|;|$))))|(?<=\\})", |
| 1066 | + "end": "(?x)(?=\\}|;|,|$|(^(?!\\s*((\\b(?<!\\$)0(x|X)[0-9a-fA-F][0-9a-fA-F_]*\\b(?!\\$))|(\\b(?<!\\$)0(b|B)[01][01_]*\\b(?!\\$))|(\\b(?<!\\$)0(o|O)?[0-7][0-7_]*\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*\\b)| # .1\n (?:\\b[0-9][0-9_]*\\b(?!\\.)) # 1\n)(?!\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\'([^\\'\\\\]|\\\\\\'|\\\\)*\\')|(\\\"([^\\\"\\\\]|\\\\\\\"|\\\\)*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])+\\]))\\s*(\\?\\s*)?(=|:|;|,|$))))|(?<=\\})", |
1042 | 1067 | "patterns": [ |
1043 | 1068 | { |
1044 | 1069 | "include": "#variable-initializer" |
|
1166 | 1191 | { |
1167 | 1192 | "include": "#function-name" |
1168 | 1193 | }, |
| 1194 | + { |
| 1195 | + "include": "#single-line-comment-consuming-line-ending" |
| 1196 | + }, |
1169 | 1197 | { |
1170 | 1198 | "include": "#function-body" |
1171 | 1199 | } |
|
1853 | 1881 | "name": "storage.type.namespace.js" |
1854 | 1882 | } |
1855 | 1883 | }, |
1856 | | - "end": "(?<=\\})|(?=;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)", |
| 1884 | + "end": "(?<=\\})|(?=;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", |
1857 | 1885 | "patterns": [ |
1858 | 1886 | { |
1859 | 1887 | "include": "#comment" |
|
1890 | 1918 | "name": "entity.name.type.alias.js" |
1891 | 1919 | } |
1892 | 1920 | }, |
1893 | | - "end": "(?=\\}|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)", |
| 1921 | + "end": "(?=\\}|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", |
1894 | 1922 | "patterns": [ |
1895 | 1923 | { |
1896 | 1924 | "include": "#comment" |
|
1905 | 1933 | "name": "keyword.operator.assignment.js" |
1906 | 1934 | } |
1907 | 1935 | }, |
1908 | | - "end": "(?=\\}|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)", |
| 1936 | + "end": "(?=\\}|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", |
1909 | 1937 | "patterns": [ |
1910 | 1938 | { |
1911 | 1939 | "include": "#type" |
|
2078 | 2106 | "name": "keyword.control.default.js" |
2079 | 2107 | } |
2080 | 2108 | }, |
2081 | | - "end": "(?=$|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)", |
| 2109 | + "end": "(?=$|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", |
2082 | 2110 | "patterns": [ |
| 2111 | + { |
| 2112 | + "include": "#interface-declaration" |
| 2113 | + }, |
2083 | 2114 | { |
2084 | 2115 | "include": "#expression" |
2085 | 2116 | } |
2086 | 2117 | ] |
2087 | 2118 | }, |
2088 | 2119 | { |
2089 | 2120 | "name": "meta.export.js", |
2090 | | - "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(export)(?!\\s*:)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", |
| 2121 | + "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(export)(?!\\s*:)((?=\\s*[\\{*])|((?=\\s*[_$[:alpha:]][_$[:alnum:]]*(\\s|,))(?!\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b)))", |
2091 | 2122 | "beginCaptures": { |
2092 | 2123 | "0": { |
2093 | 2124 | "name": "keyword.control.export.js" |
2094 | 2125 | } |
2095 | 2126 | }, |
2096 | | - "end": "(?=$|;|^\\s*abstract\\b|^\\s*async\\b|^\\s*class\\b|^\\s*const\\b|^\\s*declare\\b|^\\s*enum\\b|^\\s*export\\b|^\\s*function\\b|^\\s*import\\b|^\\s*interface\\b|^\\s*let\\b|^\\s*module\\b|^\\s*namespace\\b|^\\s*return\\b|^\\s*type\\b|^\\s*var\\b)", |
| 2127 | + "end": "(?=$|;|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", |
2097 | 2128 | "patterns": [ |
2098 | 2129 | { |
2099 | 2130 | "include": "#import-export-declaration" |
|
2839 | 2870 | "name": "keyword.control.as.js" |
2840 | 2871 | } |
2841 | 2872 | }, |
2842 | | - "end": "(?=$|^|[;,:})\\]]|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))", |
| 2873 | + "end": "(?=$|^|[;,:})\\]]|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))", |
2843 | 2874 | "patterns": [ |
2844 | 2875 | { |
2845 | 2876 | "include": "#type" |
|
4381 | 4412 | "name": "punctuation.decorator.internaldeclaration.js" |
4382 | 4413 | } |
4383 | 4414 | }, |
4384 | | - "end": "(?=^)", |
| 4415 | + "end": "(?=$)", |
4385 | 4416 | "contentName": "comment.line.double-slash.js" |
4386 | 4417 | } |
4387 | 4418 | ] |
4388 | 4419 | }, |
| 4420 | + "single-line-comment-consuming-line-ending": { |
| 4421 | + "begin": "(^[ \\t]+)?((//)(?:\\s*((@)internal)(?=\\s|$))?)", |
| 4422 | + "beginCaptures": { |
| 4423 | + "1": { |
| 4424 | + "name": "punctuation.whitespace.comment.leading.js" |
| 4425 | + }, |
| 4426 | + "2": { |
| 4427 | + "name": "comment.line.double-slash.js" |
| 4428 | + }, |
| 4429 | + "3": { |
| 4430 | + "name": "punctuation.definition.comment.js" |
| 4431 | + }, |
| 4432 | + "4": { |
| 4433 | + "name": "storage.type.internaldeclaration.js" |
| 4434 | + }, |
| 4435 | + "5": { |
| 4436 | + "name": "punctuation.decorator.internaldeclaration.js" |
| 4437 | + } |
| 4438 | + }, |
| 4439 | + "end": "(?=^)", |
| 4440 | + "contentName": "comment.line.double-slash.js" |
| 4441 | + }, |
4389 | 4442 | "directives": { |
4390 | 4443 | "name": "comment.line.triple-slash.directive.js", |
4391 | 4444 | "begin": "^(///)\\s*(?=<(reference|amd-dependency|amd-module)(\\s+(path|types|no-default-lib|lib|name)\\s*=\\s*((\\'([^\\'\\\\]|\\\\\\'|\\\\)*\\')|(\\\"([^\\\"\\\\]|\\\\\\\"|\\\\)*\\\")))+\\s*/>\\s*$)", |
|
4394 | 4447 | "name": "punctuation.definition.comment.js" |
4395 | 4448 | } |
4396 | 4449 | }, |
4397 | | - "end": "(?=^)", |
| 4450 | + "end": "(?=$)", |
4398 | 4451 | "patterns": [ |
4399 | 4452 | { |
4400 | 4453 | "name": "meta.tag.js", |
|
0 commit comments