• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/40_lexer_bug_on_lstrip_off

  1 When a template was parsed with global block left stripping disabled,
  2 then any text preceding an expression or statement block start tag was
  3 incorrectly prepended to the first token value of the block, leading
  4 to syntax errors in the compiler.
  5 
  6 -- Testcase --
  7 {% for (let x in [1, 2, 3]): %}
  8 {{ x }}
  9 {% endfor %}
 10 -- End --
 11 
 12 -- Args --
 13 -Tno-lstrip
 14 -- End --
 15 
 16 -- Expect stdout --
 17 1
 18 2
 19 3
 20 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt