Skip to content

Commit

Permalink
provide expression parse cache when liquid-c is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmichaelgo committed Nov 22, 2024
1 parent ea24277 commit 4dcb0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/liquid/c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def new_tokenizer(source, start_line_number: nil, for_liquid_tag: false)

def parse_expression(markup)
if liquid_c_nodes_disabled?
Liquid::Expression.parse(markup)
Liquid::Expression.parse(markup, string_scanner, expression_cache)
else
Liquid::C::Expression.lax_parse(markup)
end
Expand Down

0 comments on commit 4dcb0f6

Please sign in to comment.