Skip to content

Commit

Permalink
Add initialization of @literal to silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
backus committed May 30, 2016
1 parent d6cd15b commit 2c2df29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regexp_parser/scanner/scanner.rl
Expand Up @@ -832,7 +832,7 @@ module Regexp::Scanner
# This method may raise errors if a syntax error is encountered.
# --------------------------------------------------------------------------
def self.scan(input_object, &block)
top, stack = 0, []
@literal, top, stack = nil, 0, []

if input_object.is_a?(Regexp)
input = input_object.source
Expand Down

0 comments on commit 2c2df29

Please sign in to comment.