@@ -66,12 +66,10 @@ interface Syntax {
66
66
override val highlight = Highlight {
67
67
spanStyle {
68
68
69
- groupRegex .match {
69
+ escapeReservedRegex .match {
70
70
71
- // charset
72
- put(5 , groupSpanStyle)
73
- put(6 , groupSpanStyle.copy(color = Color .Unspecified ))
74
- put(7 , groupSpanStyle)
71
+ // full match
72
+ put(0 , SpanStyle (color = escapeReservedColor))
75
73
}
76
74
77
75
modifierRegex.match {
@@ -92,19 +90,6 @@ interface Syntax {
92
90
put(5 , SpanStyle (color = groupColor))
93
91
}
94
92
95
- charSetRegex.match {
96
-
97
- // charset
98
- put(3 , charSetSpanStyle)
99
- put(4 , charSetSpanStyle.copy(color = Color .Unspecified ))
100
- put(5 , charSetSpanStyle)
101
- }
102
-
103
- escapeReservedRegex.match {
104
-
105
- // full match
106
- put(0 , SpanStyle (color = escapeReservedColor))
107
- }
108
93
109
94
controlsRegex.match {
110
95
@@ -124,6 +109,22 @@ interface Syntax {
124
109
put(3 , SpanStyle (color = anchorsColor))
125
110
put(4 , SpanStyle (color = anchorsColor))
126
111
}
112
+
113
+ groupRegex.match {
114
+
115
+ // charset
116
+ put(5 , groupSpanStyle)
117
+ put(6 , groupSpanStyle.copy(color = Color .Unspecified ))
118
+ put(7 , groupSpanStyle)
119
+ }
120
+
121
+ charSetRegex.match {
122
+
123
+ // charset
124
+ put(3 , charSetSpanStyle)
125
+ put(4 , charSetSpanStyle.copy(color = Color .Unspecified ))
126
+ put(5 , charSetSpanStyle)
127
+ }
127
128
}
128
129
129
130
groupRegex.script { match ->
0 commit comments