|
285 | 285 | 'name': 'comment.block.html.js' |
286 | 286 | } |
287 | 287 | { |
288 | | - 'match': '(?<!\\.)\\b(class|enum|function|interface|void)\\b' |
| 288 | + 'match': '(?<!\\.)\\b(class|enum|function|interface|void)(?!\\s*:)\\b' |
289 | 289 | 'name': 'storage.type.js' |
290 | 290 | } |
291 | 291 | { |
292 | | - 'match': '(?<!\\.)\\b(const|export|extends|implements|let|private|protected|public|static|var)\\b' |
| 292 | + 'match': '(?<!\\.)\\b(const|export|extends|implements|let|private|protected|public|static|var)(?!\\s*:)\\b' |
293 | 293 | 'name': 'storage.modifier.js' |
294 | 294 | } |
295 | 295 | { |
296 | | - 'match': '(?<!\\.)\\b(break|case|catch|continue|default|do|else|finally|for|if|import|package|return|switch|throw|try|while|yield)\\b' |
| 296 | + 'match': '(?<!\\.)\\b(break|case|catch|continue|default|do|else|finally|for|if|import|package|return|switch|throw|try|while|yield)(?!\\s*:)\\b' |
297 | 297 | 'name': 'keyword.control.js' |
298 | 298 | } |
299 | 299 | { |
300 | | - 'match': '(?<!\\.)\\b(delete|in|instanceof|new|typeof|with)\\b' |
| 300 | + 'match': '(?<!\\.)\\b(delete|in|instanceof|new|typeof|with)(?!\\s*:)\\b' |
301 | 301 | 'name': 'keyword.operator.js' |
302 | 302 | } |
303 | 303 | { |
304 | | - 'match': '(?<!\\.)\\btrue\\b' |
| 304 | + 'match': '(?<!\\.)\\btrue(?!\\s*:)\\b' |
305 | 305 | 'name': 'constant.language.boolean.true.js' |
306 | 306 | } |
307 | 307 | { |
308 | | - 'match': '(?<!\\.)\\bfalse\\b' |
| 308 | + 'match': '(?<!\\.)\\bfalse(?!\\s*:)\\b' |
309 | 309 | 'name': 'constant.language.boolean.false.js' |
310 | 310 | } |
311 | 311 | { |
312 | | - 'match': '(?<!\\.)\\bnull\\b' |
| 312 | + 'match': '(?<!\\.)\\bnull(?!\\s*:)\\b' |
313 | 313 | 'name': 'constant.language.null.js' |
314 | 314 | } |
315 | 315 | { |
316 | | - 'match': '(?<!\\.)\\b(super|this)\\b' |
| 316 | + 'match': '(?<!\\.)\\b(super|this)(?!\\s*:)\\b' |
317 | 317 | 'name': 'variable.language.js' |
318 | 318 | } |
319 | 319 | { |
320 | | - 'match': '(?<!\\.)\\b(debugger)\\b' |
| 320 | + 'match': '(?<!\\.)\\b(debugger)(?!\\s*:)\\b' |
321 | 321 | 'name': 'keyword.other.js' |
322 | 322 | } |
323 | 323 | { |
|
0 commit comments