File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ h2. Changes in 1.1
10
10
* New scanner: Taskpaper [#39, thanks to shimomura]
11
11
* Diff scanner: Highlight inline changes in multi-line changes [#99]
12
12
* JavaScript scanner: Highlight multi-line comments in diff correctly
13
+ * Ruby scanner: Accept %i and %I symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
13
14
* Ruby scanner: Accept keywords as Ruby 1.9 hash keys [#126]
14
15
* HTML scanner displays style tags and attributes now [#145]
15
16
* Remove double-click toggle handler from HTML table output
@@ -22,7 +23,7 @@ h2. Changes in 1.1
22
23
* @CodeRay::TokenKinds@ should not be frozen [#130, thanks to Gavin Kistner]
23
24
* New token type @:id@ for CSS/Sass [#27]
24
25
* New token type @:done@ for Taskpaper [#39]
25
- * New token type @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and nathany ]
26
+ * New token type @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman ]
26
27
* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
27
28
* Override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
28
29
* Fixed @:docstring@ token type style
Original file line number Diff line number Diff line change @@ -157,13 +157,16 @@ module Ruby::Patterns # :nodoc: all
157
157
yield
158
158
] )
159
159
160
- FANCY_STRING_START = / % ( [QqrsWwx ] | (?![a-zA-Z0-9]) ) ([^a-zA-Z0-9]) /x
160
+ FANCY_STRING_START = / % ( [iIqQrswWx ] | (?![a-zA-Z0-9]) ) ([^a-zA-Z0-9]) /x
161
161
FANCY_STRING_KIND = Hash . new ( :string ) . merge ( {
162
+ 'i' => :symbol ,
163
+ 'I' => :symbol ,
162
164
'r' => :regexp ,
163
165
's' => :symbol ,
164
166
'x' => :shell ,
165
167
} )
166
168
FANCY_STRING_INTERPRETED = Hash . new ( true ) . merge ( {
169
+ 'i' => false ,
167
170
'q' => false ,
168
171
's' => false ,
169
172
'w' => false ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ class Alpha < Style
125
125
.string .modifier { color: #E40 }
126
126
.symbol { color:#A60 }
127
127
.symbol .content { color:#A60 }
128
- .symbol .delimiter { color:#630 }
128
+ .symbol .delimiter { color:#740 }
129
129
.tag { color:#070; font-weight:bold }
130
130
.type { color:#339; font-weight:bold }
131
131
.value { color: #088 }
You can’t perform that action at this time.
0 commit comments