Skip to content

Commit 655d09b

Browse files
committed
improve highlighting of record/object definition and field access
1 parent cdcfa34 commit 655d09b

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@replit/codemirror-vim": "^6.3.0",
4444
"@rescript/react": "^0.14.0-rc.1",
4545
"@rescript/webapi": "^0.1.0-experimental-29db5f4",
46-
"@tsnobip/rescript-lezer": "^0.5.0",
46+
"@tsnobip/rescript-lezer": "^0.6.0",
4747
"docson": "^2.1.0",
4848
"fuse.js": "^6.4.3",
4949
"glob": "^7.1.4",

src/components/CodeMirror.res

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,17 +409,17 @@ module CM6 = {
409409
class: "text-berry-dark-50",
410410
},
411411
{
412-
tag: [
413-
Tags.variableName,
414-
Tags.definition(Tags.propertyName),
415-
Tags.labelName,
416-
Tags.definition(Tags.typeName),
417-
Tags.special(Tags.angleBracket),
418-
],
412+
tag: [Tags.variableName, Tags.labelName, Tags.special(Tags.angleBracket)],
419413
class: "text-gray-30",
420414
},
421415
{
422-
tag: [Tags.bool, Tags.atom, Tags.typeName, Tags.special(Tags.tagName)],
416+
tag: [
417+
Tags.bool,
418+
Tags.atom,
419+
Tags.typeName,
420+
Tags.special(Tags.tagName),
421+
Tags.definition(Tags.typeName),
422+
],
423423
class: "text-orange-dark",
424424
},
425425
{
@@ -439,7 +439,12 @@ module CM6 = {
439439
class: "text-water-dark",
440440
},
441441
{
442-
tag: [Tags.annotation, Tags.tagName],
442+
tag: [
443+
Tags.annotation,
444+
Tags.tagName,
445+
Tags.propertyName,
446+
Tags.definition(Tags.propertyName),
447+
],
443448
class: "text-ocean-dark",
444449
},
445450
{

0 commit comments

Comments
 (0)