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

Sources/ucode/tests/custom/00_syntax/07_embedded_single_line_comments

  1 Statement and expression blocks may contain C++-style comments.
  2 A C++-style comment is started by two subsequent slashes and spans
  3 until the next newline.
  4 
  5 -- Expect stdout --
  6 The result of 5 + 9 is 14.
  7 Statement blocks may use C++ comments too: Test Another test.
  8 -- End --
  9 
 10 -- Testcase --
 11 The result of 5 + 9 is {{ // The block end tag is ignored: }}
 12 // And the expression block continues here!
 13 5 + 9 }}.
 14 Statement blocks may use C++ comments too: {%+
 15         print("Test"); // A comment.
 16 
 17         // Another comment.
 18         print(" Another test.");
 19 %}
 20 
 21 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt