We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac45fe7 commit 8813276Copy full SHA for 8813276
lib/coderay/scanners/ruby.rb
@@ -257,7 +257,7 @@ def scan_tokens encoder, options
257
end
258
unless unicode
259
# check for unicode
260
- $DEBUG_BEFORE, $DEBUG = $DEBUG, false
+ debug_before, $DEBUG = $DEBUG, false
261
begin
262
if check(/./mu).size > 1
263
# seems like we should try again with unicode
@@ -266,7 +266,7 @@ def scan_tokens encoder, options
266
rescue
267
# bad unicode char; use getch
268
ensure
269
- $DEBUG = $DEBUG_BEFORE
+ $DEBUG = debug_before
270
271
next if unicode
272
0 commit comments