Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmichaelgo committed Nov 15, 2024
1 parent 4441767 commit e6786f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/liquid/lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def string_scanner
end

def initialize(input)
@ss = Lexer2.string_scanner
@ss = self.class.string_scanner
@ss.string = input
end

Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/tokenizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6786f6

Please sign in to comment.