mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
refactor Lexer to be static class function
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
module Liquid
|
||||
class Parser
|
||||
def initialize(input)
|
||||
l = Lexer.new(input)
|
||||
@tokens = l.tokenize
|
||||
@tokens = Lexer.tokenize(input)
|
||||
@p = 0 # pointer to current location
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user