diff options
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index 6e08a1f..2a415eb 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -118,6 +118,8 @@ module Scanners case m = getch
when state.delim, '\\'
tokens << [match + m, :char]
+ when nil
+ tokens << [match, :error]
else
tokens << [match + m, :content]
end
|