Skip to content

Commit c78438a

Browse files
committed
remove obsolete workaround for old Rubinius incompatibility
1 parent d42887e commit c78438a

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

etc/CodeRay.tmproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>currentDocument</key>
6+
<string>../lib/coderay/scanners/haml.rb</string>
57
<key>documents</key>
68
<array>
79
<dict>
@@ -118,7 +120,7 @@
118120
</dict>
119121
<dict>
120122
<key>filename</key>
121-
<string>../Rakefile</string>
123+
<string>../rakefile</string>
122124
<key>lastUsed</key>
123125
<date>2011-08-23T02:18:45Z</date>
124126
</dict>

lib/coderay/tokens.rb

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -303,31 +303,11 @@ def Tokens.load dump
303303
@dump = Marshal.load dump
304304
end
305305

306-
if defined?(RUBY_ENGINE) && RUBY_ENGINE['rbx']
307-
#:nocov:
308-
def text_token text, kind
309-
self << text << kind
310-
end
311-
def begin_group kind
312-
self << :begin_group << kind
313-
end
314-
def end_group kind
315-
self << :end_group << kind
316-
end
317-
def begin_line kind
318-
self << :begin_line << kind
319-
end
320-
def end_line kind
321-
self << :end_line << kind
322-
end
323-
#:nocov:
324-
else
325-
alias text_token push
326-
def begin_group kind; push :begin_group, kind end
327-
def end_group kind; push :end_group, kind end
328-
def begin_line kind; push :begin_line, kind end
329-
def end_line kind; push :end_line, kind end
330-
end
306+
alias text_token push
307+
def begin_group kind; push :begin_group, kind end
308+
def end_group kind; push :end_group, kind end
309+
def begin_line kind; push :begin_line, kind end
310+
def end_line kind; push :end_line, kind end
331311
alias tokens concat
332312

333313
end

0 commit comments

Comments
 (0)