Skip to content

Commit 9f59fc0

Browse files
committed
List punctuation in default theme, don't set color for default color styles
Also fix Erlang mode to not return a non-standard token type. Issue #2435
1 parent ff2dc67 commit 9f59fc0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/codemirror.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@
7272
.cm-s-default .cm-atom {color: #219;}
7373
.cm-s-default .cm-number {color: #164;}
7474
.cm-s-default .cm-def {color: #00f;}
75-
.cm-s-default .cm-variable {color: black;}
75+
.cm-s-default .cm-variable,
76+
.cm-s-default .cm-punctuation,
77+
.cm-s-default .cm-property,
78+
.cm-s-default .cm-operator {}
7679
.cm-s-default .cm-variable-2 {color: #05a;}
7780
.cm-s-default .cm-variable-3 {color: #085;}
78-
.cm-s-default .cm-property {color: black;}
79-
.cm-s-default .cm-operator {color: black;}
8081
.cm-s-default .cm-comment {color: #a50;}
8182
.cm-s-default .cm-string {color: #a11;}
8283
.cm-s-default .cm-string-2 {color: #f50;}

mode/erlang/erlang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ CodeMirror.defineMode("erlang", function(cmCfg) {
348348
switch (type) {
349349
case "atom": return "atom";
350350
case "attribute": return "attribute";
351-
case "boolean": return "special";
351+
case "boolean": return "atom";
352352
case "builtin": return "builtin";
353353
case "close_paren": return null;
354354
case "colon": return null;

0 commit comments

Comments
 (0)