diff options
author | murphy <murphy@rubychan.de> | 2011-07-08 16:35:18 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-07-08 16:35:18 +0000 |
commit | a35793d61578a8169f49bad9efb3d44536b3951b (patch) | |
tree | b9198eabbadc64d2f200c22bab2c23dd7d708087 /lib | |
parent | 277db0fcac531d9f4776bafd05f8630a45520cac (diff) | |
download | coderay-a35793d61578a8169f49bad9efb3d44536b3951b.tar.gz |
fixing strange bug in Ruby scanner (very rare!)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 4 |
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 |