1 Statement and expression blocks may contain C-style comments. 2 A C-style comment is started by a slash followed by an asterisk 3 and ended by an asterisk followed by a slash. 4 5 Such comments may appear everywhere within statement or expression 6 blocks, even in the middle of statements or expressions. 7 8 -- Expect stdout -- 9 The result of 12 - 4 is 8. 10 Statement blocks may use C comments too: Test Another test. The final test. 11 -- End -- 12 13 -- Testcase -- 14 The result of 12 - 4 is {{ /* A comment before */ 12 - /* or even within */ 4 /* or after an expression */ }}. 15 Statement blocks may use C comments too: {%+ 16 print("Test"); /* A comment. */ 17 18 /* Another comment. */ 19 print(" Another test."); 20 21 print(/* A comment within */ " The final test."); 22 %} 23 24 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt