Module: Liquid::C::DocumentClassPatch
- Included in:
- Liquid::C
- Defined in:
- lib/liquid/c.rb
Instance Method Summary collapse
Instance Method Details
#parse(tokenizer, parse_context) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/liquid/c.rb', line 111 def parse(tokenizer, parse_context) if tokenizer.is_a?(Liquid::C::Tokenizer) if parse_context[:bug_compatible_whitespace_trimming] # Temporary to test rollout of the fix for this bug tokenizer.bug_compatible_whitespace_trimming! end begin parse_context.start_liquid_c_parsing super ensure parse_context.cleanup_liquid_c_parsing end else super end end |