Reset the lexer when resetting the parser.
Also removed the unused @lines instance variable.
This commit is contained in:
parent
83ff0e6656
commit
f53fe4ed7c
|
@ -182,8 +182,9 @@ end
|
|||
# Resets the internal state of the parser.
|
||||
#
|
||||
def reset
|
||||
@lines = []
|
||||
@line = 1
|
||||
|
||||
@lexer.reset
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue