@@ -12,7 +12,7 @@ const ivory = "#abb2bf";
12
12
const stone = "#7d8799" ;
13
13
const malibu = "#61afef" ;
14
14
const sage = "#0F0" ; // Set
15
- const whiskey = "#d19a66 " ;
15
+ const whiskey = "#ffb500 " ;
16
16
const violet = "#F3F" ; // Set
17
17
const darkBackground = "#17181A" ; // Set
18
18
const highlightBackground = "#2c313a" ;
@@ -91,12 +91,24 @@ const editorTheme = {
91
91
}
92
92
93
93
const highlightStyle = [
94
- { tag :t . keyword , color :violet } ,
94
+ { tag :[
95
+ t . keyword ,
96
+ t . annotation ,
97
+ t . modifier ,
98
+ t . special ( t . string ) ,
99
+ t . operatorKeyword ,
100
+ ] ,
101
+ color :violet
102
+ } ,
103
+ {
104
+ tag :[ t . name , t . propertyName , t . deleted , t . character , t . macroName , t . function ( t . variableName ) ] ,
105
+ color :blue ,
106
+ } ,
95
107
{
96
- tag :[ t . name , t . deleted , t . character , t . propertyName , t . macroName ] ,
97
- color :salmon ,
108
+ tag :[ ] ,
109
+ color :cyan ,
98
110
} ,
99
- { tag :[ t . function ( t . variableName ) , t . labelName ] , color :malibu } ,
111
+ { tag :[ t . labelName ] , color :whiskey } ,
100
112
{ tag :[ t . color , t . constant ( t . name ) , t . standard ( t . name ) ] , color :whiskey } ,
101
113
{ tag :[ t . definition ( t . name ) , t . separator ] , color :ivory } ,
102
114
{
@@ -105,33 +117,31 @@ const highlightStyle = [
105
117
t . className ,
106
118
t . number ,
107
119
t . changed ,
108
- t . annotation ,
109
- t . modifier ,
110
120
t . self ,
111
121
t . namespace ,
122
+ t . bool ,
112
123
] ,
113
124
color :chalky ,
114
125
} ,
115
- {
116
- tag :[
117
- t . operator ,
118
- t . operatorKeyword ,
126
+ { tag :[ t . operator ] , color :whiskey } ,
127
+ { tag :[
128
+ t . processingInstruction ,
129
+ t . string ,
130
+ t . inserted ,
119
131
t . url ,
120
132
t . escape ,
121
133
t . regexp ,
122
134
t . link ,
123
- t . special ( t . string ) ,
124
135
] ,
125
- color :blue ,
136
+ color :sage
126
137
} ,
127
138
{ tag :[ t . meta , t . comment ] , color :stone } ,
128
139
{ tag :t . strong , fontWeight :"bold" } ,
129
140
{ tag :t . emphasis , fontStyle :"italic" } ,
130
141
{ tag :t . strikethrough , textDecoration :"line-through" } ,
131
142
{ tag :t . link , color :stone , textDecoration :"underline" } ,
132
143
{ tag :t . heading , fontWeight :"bold" , color :salmon } ,
133
- { tag :[ t . atom , t . bool , t . special ( t . variableName ) ] , color :whiskey } ,
134
- { tag :[ t . processingInstruction , t . string , t . inserted ] , color :sage } ,
144
+ { tag :[ t . atom , t . special ( t . variableName ) ] , color :whiskey } ,
135
145
{ tag :t . invalid , color :invalid } ,
136
146
]
137
147