lib/src_lexer.rb in src_lexer-1.0.1 vs lib/src_lexer.rb in src_lexer-1.0.2
- old
+ new
@@ -170,9 +170,11 @@
else
iterator.move_next
end
end
@tokens.push iterator.shift if iterator.marked?
+
+ return self
end
def is_reserved?(token)
@keywords.include?(token) || @symbols.include?(token)
end