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

Sources/ucode/tests/custom/99_bugs/18_hang_on_line_comments_at_eof

  1 When parsing a comment near EOF, or a comment escaping the end
  2 of an expression block, the lexer did end up in an infinite loop.
  3 
  4 -- Expect stderr --
  5 Syntax error: Unterminated template block
  6 In line 1, byte 9:
  7 
  8  `{{ // }}`
  9           ^-- Near here
 10 
 11 
 12 -- End --
 13 
 14 -- Testcase --
 15 {{ // }}
 16 -- End --
 17 
 18 
 19 -- Expect stderr --
 20 Syntax error: Unterminated comment
 21 In line 1, byte 4:
 22 
 23  `{{ /* }}`
 24      ^-- Near here
 25 
 26 
 27 -- End --
 28 
 29 -- Testcase --
 30 {{ /* }}
 31 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt