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

Sources/ucode/tests/custom/00_syntax/05_block_nesting

  1 Nesting blocks into non-comment blocks should fail.
  2 
  3 -- Expect stderr --
  4 Syntax error: Template blocks may not be nested
  5 In line 2, byte 61:
  6 
  7  `We may not nest statement blocks into expression blocks: {{ {% print(1 + 2) %} }}.`
  8   Near here --------------------------------------------------^
  9 
 10 
 11 Syntax error: Template blocks may not be nested
 12 In line 3, byte 61:
 13 
 14  `We may not nest expression blocks into statement blocks: {% {{ 1 + 2 }} %}.`
 15   Near here --------------------------------------------------^
 16 
 17 
 18 -- End --
 19 
 20 -- Testcase --
 21 We can nest other block types into comments: {# {% {{ 1 + 2 }} %} #}
 22 We may not nest statement blocks into expression blocks: {{ {% print(1 + 2) %} }}.
 23 We may not nest expression blocks into statement blocks: {% {{ 1 + 2 }} %}.
 24 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt