From e6786f6e1ea777a9fecd75761e386b4994ad10ff Mon Sep 17 00:00:00 2001 From: Michael Go Date: Fri, 15 Nov 2024 17:24:52 -0400 Subject: [PATCH] code clean up --- lib/liquid/lexer.rb | 2 +- lib/liquid/tokenizer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/liquid/lexer.rb b/lib/liquid/lexer.rb index c2adec78f..4e8d3d6ef 100644 --- a/lib/liquid/lexer.rb +++ b/lib/liquid/lexer.rb @@ -164,7 +164,7 @@ def string_scanner end def initialize(input) - @ss = Lexer2.string_scanner + @ss = self.class.string_scanner @ss.string = input end diff --git a/lib/liquid/tokenizer.rb b/lib/liquid/tokenizer.rb index 9541d0b38..99c66d507 100644 --- a/lib/liquid/tokenizer.rb +++ b/lib/liquid/tokenizer.rb @@ -91,7 +91,7 @@ def tokenize if @for_liquid_tag @tokens = @source.split("\n") else - @ss = Tokenizer2.string_scanner + @ss = self.class.string_scanner @ss.string = @source @tokens << shift_normal until @ss.eos? end