summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-07-08 16:35:18 +0000
committermurphy <murphy@rubychan.de>2011-07-08 16:35:18 +0000
commita35793d61578a8169f49bad9efb3d44536b3951b (patch)
treeb9198eabbadc64d2f200c22bab2c23dd7d708087 /lib/coderay/scanners/ruby.rb
parent277db0fcac531d9f4776bafd05f8630a45520cac (diff)
downloadcoderay-a35793d61578a8169f49bad9efb3d44536b3951b.tar.gz
fixing strange bug in Ruby scanner (very rare!)
Diffstat (limited to 'lib/coderay/scanners/ruby.rb')
-rw-r--r--lib/coderay/scanners/ruby.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb
index b3c7de1..e1395ca 100644
--- a/lib/coderay/scanners/ruby.rb
+++ b/lib/coderay/scanners/ruby.rb
@@ -381,10 +381,10 @@ module Scanners
end
else
case esc = getch
- when state.delim, '\\'
- encoder.text_token match + esc, :char
when nil
encoder.text_token match, :content
+ when state.delim, '\\'
+ encoder.text_token match + esc, :char
else
encoder.text_token match + esc, :content
end