mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
store StringScanner in ParseContext and reuse it through parsing
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
module Liquid
|
||||
class Parser
|
||||
def initialize(input)
|
||||
@tokens = Lexer.tokenize(input)
|
||||
def initialize(input, string_scanner)
|
||||
@tokens = Lexer.tokenize(input, string_scanner)
|
||||
@p = 0 # pointer to current location
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user