summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
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