File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ def scan_tokens encoder, options
157
157
encoder . text_token match , :operator
158
158
159
159
elsif match = scan ( /(u?r?|b)?("""|"|'''|')/i )
160
+ modifiers = self [ 1 ]
160
161
string_delimiter = self [ 2 ]
161
- string_type = docstring_coming ? :docstring : : string
162
+ string_type = docstring_coming ? :docstring : ( modifiers == 'b' ? :binary : : string)
162
163
docstring_coming = false if docstring_coming
163
164
encoder . begin_group string_type
164
165
string_raw = false
165
- modifiers = self [ 1 ]
166
166
unless modifiers . empty?
167
167
string_raw = !!modifiers . index ( ?r)
168
168
encoder . text_token modifiers , :modifier
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ class Alpha < Style
56
56
.annotation { color:#007 }
57
57
.attribute-name { color:#b48 }
58
58
.attribute-value { color:#700 }
59
- .binary { color:#509 }
59
+ .binary { color:#549 }
60
+ .binary .delimiter { color:#325 }
61
+ .binary .char { color:#325 }
60
62
.char .content { color:#D20 }
61
63
.char .delimiter { color:#710 }
62
64
.char { color:#D20 }
You can’t perform that action at this time.
0 commit comments