Skip to content

Commit

Permalink
revert: Bring back comment highlight color
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jun 19, 2024
1 parent b4e8731 commit e945649
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/code-editor/code-mirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
color: var(--color-code-operator);
}

.cm-comment {
color: var(--color-code-comment);
}

.cm-invalid {
border-bottom: 2px solid #c94b55;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/code-editor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const highlightStyle = HighlightStyle.define([
{ tag: tags.attributeName, class: 'cm-attribute' },
{ tag: tags.string, class: 'cm-string' },
{ tag: [tags.operator], class: 'cm-operator' },
{ tag: tags.comment, class: 'cm-comment' },
{ tag: tags.invalid, class: 'cm-invalid' }
]);

Expand Down

0 comments on commit e945649

Please sign in to comment.