Class: PlatformosCheck::LanguageServer::VariableLookupFinder::TolerantParser::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/platformos_check/language_server/variable_lookup_finder/tolerant_parser.rb

Class Method Summary collapse

Class Method Details

.parse(content) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/platformos_check/language_server/variable_lookup_finder/tolerant_parser.rb', line 9

def parse(content)
  ##
  # The tolerant parser relies on a tolerant custom parse
  # context to creates a new 'Template' object, even when
  # a block is not closed.
  Liquid::Template.parse(content, custom_parse_context)
end