diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-27 08:32:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-27 08:32:44 +0000 |
commit | 2180591593b4285b1765eb105c285c82727b2a6f (patch) | |
tree | ea276adbcf0c3fac4b457a2af49a2a7782585b87 /editors/code | |
parent | ac52a4109f6ada3241d84fd89ad28420bdfad335 (diff) | |
parent | a8e68ff814801a72ecac6cd918a3e7fbb25d11c0 (diff) |
Merge #3335
3335: Refactor highlighting a bit r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/package.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index c5f9d50ac..ad1101603 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -380,6 +380,28 @@ | |||
380 | } | 380 | } |
381 | } | 381 | } |
382 | ], | 382 | ], |
383 | "semanticTokenTypes": [ | ||
384 | { | ||
385 | "id": "attribute" | ||
386 | }, | ||
387 | { | ||
388 | "id": "constant" | ||
389 | } | ||
390 | ], | ||
391 | "semanticTokenModifiers": [ | ||
392 | { | ||
393 | "id": "mutable" | ||
394 | }, | ||
395 | { | ||
396 | "id": "unsafe" | ||
397 | }, | ||
398 | { | ||
399 | "id": "control" | ||
400 | }, | ||
401 | { | ||
402 | "id": "builtin" | ||
403 | } | ||
404 | ], | ||
383 | "semanticTokenStyleDefaults": [ | 405 | "semanticTokenStyleDefaults": [ |
384 | { | 406 | { |
385 | "selector": "*.mutable", | 407 | "selector": "*.mutable", |
@@ -392,6 +414,12 @@ | |||
392 | "highContrast": { | 414 | "highContrast": { |
393 | "fontStyle": "underline" | 415 | "fontStyle": "underline" |
394 | } | 416 | } |
417 | }, | ||
418 | { | ||
419 | "selector": "constant", | ||
420 | "scope": [ | ||
421 | "entity.name.constant" | ||
422 | ] | ||
395 | } | 423 | } |
396 | ] | 424 | ] |
397 | } | 425 | } |