aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-18 17:18:12 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-18 17:18:12 +0100
commit7b2ab597bd2d500a68e08d0546d8f72f6a013248 (patch)
tree33266be000ef9aabe1049916d9772af70a4249b5 /editors
parenta15a278308047b160e5805dbb554a1949fcb0228 (diff)
parent4abe03879bbd11536fbb51b30342cdad74317025 (diff)
Merge #1544
1544: Highlight mutable variables differently r=matklad a=viorina ![Screenshot from 2019-07-18 19-04-57](https://user-images.githubusercontent.com/6714973/61473539-3f5d3000-a98f-11e9-99ec-a4115b2ba66b.png) Co-authored-by: Ekaterina Babshukova <[email protected]>
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json9
-rw-r--r--editors/code/src/highlighting.ts1
2 files changed, 10 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 052f0b3b3..86076753b 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -433,6 +433,15 @@
433 } 433 }
434 }, 434 },
435 { 435 {
436 "id": "ralsp.variable.mut",
437 "description": "Color for mutable variables",
438 "defaults": {
439 "dark": "#4e65c9",
440 "light": "#263199",
441 "highContrast": "#4e65c9"
442 }
443 },
444 {
436 "id": "ralsp.module", 445 "id": "ralsp.module",
437 "description": "Color for modules", 446 "description": "Color for modules",
438 "defaults": { 447 "defaults": {
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts
index 52a0bd4bb..f3ed66365 100644
--- a/editors/code/src/highlighting.ts
+++ b/editors/code/src/highlighting.ts
@@ -56,6 +56,7 @@ export class Highlighter {
56 colorContrib('literal'), 56 colorContrib('literal'),
57 colorContrib('macro'), 57 colorContrib('macro'),
58 colorContrib('variable'), 58 colorContrib('variable'),
59 colorContrib('variable.mut'),
59 colorContrib('field'), 60 colorContrib('field'),
60 colorContrib('module') 61 colorContrib('module')
61 ]; 62 ];