aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json87
1 files changed, 70 insertions, 17 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index fd29710ba..df8265be1 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -383,21 +383,42 @@
383 ], 383 ],
384 "semanticTokenTypes": [ 384 "semanticTokenTypes": [
385 { 385 {
386 "id": "attribute" 386 "id": "attribute",
387 "description": "Style for attributes"
387 }, 388 },
388 { 389 {
389 "id": "constant" 390 "id": "builtinType",
391 "description": "Style for builtin types"
392 },
393 {
394 "id": "lifetime",
395 "description": "Style for lifetimes"
396 },
397 {
398 "id": "typeAlias",
399 "description": "Style for type aliases"
400 },
401 {
402 "id": "union",
403 "description": "Style for C-style untagged unions"
390 } 404 }
391 ], 405 ],
392 "semanticTokenModifiers": [ 406 "semanticTokenModifiers": [
393 { 407 {
394 "id": "mutable" 408 "id": "constant",
409 "description": "Style for compile-time constants"
395 }, 410 },
396 { 411 {
397 "id": "unsafe" 412 "id": "control",
413 "description": "Style for control flow keywords"
398 }, 414 },
399 { 415 {
400 "id": "control" 416 "id": "mutable",
417 "description": "Style for mutable bindings"
418 },
419 {
420 "id": "unsafe",
421 "description": "Style for unsafe operations"
401 } 422 }
402 ], 423 ],
403 "semanticTokenStyleDefaults": [ 424 "semanticTokenStyleDefaults": [
@@ -408,21 +429,29 @@
408 ] 429 ]
409 }, 430 },
410 { 431 {
411 "selector": "*.mutable", 432 "selector": "builtinType",
412 "light": { 433 "scope": [
413 "fontStyle": "underline" 434 "support.type.primitive"
414 }, 435 ]
415 "dark": {
416 "fontStyle": "underline"
417 },
418 "highContrast": {
419 "fontStyle": "underline"
420 }
421 }, 436 },
422 { 437 {
423 "selector": "constant", 438 "selector": "lifetime",
424 "scope": [ 439 "scope": [
425 "entity.name.constant" 440 "entity.name.lifetime.rust"
441 ]
442 },
443 {
444 "selector": "typeAlias",
445 "scope": [
446 "entity.name.type",
447 "entity.name.typeAlias"
448 ]
449 },
450 {
451 "selector": "union",
452 "scope": [
453 "entity.name.type",
454 "entity.name.union"
426 ] 455 ]
427 }, 456 },
428 { 457 {
@@ -430,6 +459,30 @@
430 "scope": [ 459 "scope": [
431 "keyword.other.unsafe" 460 "keyword.other.unsafe"
432 ] 461 ]
462 },
463 {
464 "selector": "keyword.control",
465 "scope": [
466 "keyword.control"
467 ]
468 },
469 {
470 "selector": "variable.constant",
471 "scope": [
472 "entity.name.constant"
473 ]
474 },
475 {
476 "selector": "*.mutable",
477 "light": {
478 "fontStyle": "underline"
479 },
480 "dark": {
481 "fontStyle": "underline"
482 },
483 "highContrast": {
484 "fontStyle": "underline"
485 }
433 } 486 }
434 ] 487 ]
435 } 488 }