Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/coderay/scanners/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def scan_tokens encoder, options
end
unless unicode
# check for unicode
$DEBUG_BEFORE, $DEBUG = $DEBUG, false
debug_before, $DEBUG = $DEBUG, false
begin
if check(/./mu).size > 1
# seems like we should try again with unicode
Expand All @@ -266,7 +266,7 @@ def scan_tokens encoder, options
rescue
# bad unicode char; use getch
ensure
$DEBUG = $DEBUG_BEFORE
$DEBUG = debug_before
end
next if unicode
end
Expand Down