hashBlockComment function

Parser hashBlockComment([
  1. LiquidConfig? config
])

Hash block comment parser - parses {# comment #} syntax.

If config is provided, uses custom delimiters from the config.

Implementation

Parser hashBlockComment([LiquidConfig? config]) =>
    (tagStart(config) &
            pattern(' \t\n\r').star() &
            char('#') &
            any().starLazy(tagEnd(config)).flatten() &
            tagEnd(config))
        .map((values) {
          return TextNode('');
        })
        .labeled('hashBlockComment');