aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json65
-rw-r--r--editors/code/src/highlighting.ts7
2 files changed, 71 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index e3bb07be7..43db61a8b 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -438,6 +438,33 @@
438 } 438 }
439 }, 439 },
440 { 440 {
441 "id": "ralsp.literal.numeric",
442 "description": "Color for numeric literals",
443 "defaults": {
444 "dark": "#BECEA8",
445 "light": "#09885A",
446 "highContrast": "#B5CEA8"
447 }
448 },
449 {
450 "id": "ralsp.literal.char",
451 "description": "Color for character literals",
452 "defaults": {
453 "dark": "#BECEA8",
454 "light": "#09885A",
455 "highContrast": "#B5CEA8"
456 }
457 },
458 {
459 "id": "ralsp.literal.byte",
460 "description": "Color for byte literals",
461 "defaults": {
462 "dark": "#BECEA8",
463 "light": "#09885A",
464 "highContrast": "#B5CEA8"
465 }
466 },
467 {
441 "id": "ralsp.macro", 468 "id": "ralsp.macro",
442 "description": "Color for macros", 469 "description": "Color for macros",
443 "defaults": { 470 "defaults": {
@@ -457,7 +484,43 @@
457 }, 484 },
458 { 485 {
459 "id": "ralsp.type", 486 "id": "ralsp.type",
460 "description": "Color for types", 487 "description": "Color for other types (traits, aliases..)",
488 "defaults": {
489 "dark": "#4EC9B0",
490 "light": "#267F99",
491 "highContrast": "#4EC9B0"
492 }
493 },
494 {
495 "id": "ralsp.type.builtin",
496 "description": "Color for built-in types (&str, bool, u16, u32)",
497 "defaults": {
498 "dark": "#4EC9B0",
499 "light": "#267F99",
500 "highContrast": "#4EC9B0"
501 }
502 },
503 {
504 "id": "ralsp.type.lifetime",
505 "description": "Color for `Self` param type",
506 "defaults": {
507 "dark": "#4EC9B0",
508 "light": "#267F99",
509 "highContrast": "#4EC9B0"
510 }
511 },
512 {
513 "id": "ralsp.type.self",
514 "description": "Color for `Self` param type",
515 "defaults": {
516 "dark": "#4EC9B0",
517 "light": "#267F99",
518 "highContrast": "#4EC9B0"
519 }
520 },
521 {
522 "id": "ralsp.type.param",
523 "description": "Color for type parameters",
461 "defaults": { 524 "defaults": {
462 "dark": "#4EC9B0", 525 "dark": "#4EC9B0",
463 "light": "#267F99", 526 "light": "#267F99",
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts
index 6d50a2f2d..d7c0ae131 100644
--- a/editors/code/src/highlighting.ts
+++ b/editors/code/src/highlighting.ts
@@ -53,10 +53,17 @@ export class Highlighter {
53 decoration('parameter'), 53 decoration('parameter'),
54 decoration('constant'), 54 decoration('constant'),
55 decoration('type'), 55 decoration('type'),
56 decoration('type.self'),
57 decoration('type.generic'),
58 decoration('type.param'),
59 decoration('type.lifetime'),
56 decoration('builtin'), 60 decoration('builtin'),
57 decoration('text'), 61 decoration('text'),
58 decoration('attribute'), 62 decoration('attribute'),
59 decoration('literal'), 63 decoration('literal'),
64 decoration('literal.numeric'),
65 decoration('literal.char'),
66 decoration('literal.byte'),
60 decoration('macro'), 67 decoration('macro'),
61 decoration('variable'), 68 decoration('variable'),
62 decoration('variable.mut', 'underline'), 69 decoration('variable.mut', 'underline'),