• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#*
2
3Check to see if directives with curly braces around them parse properly.
4
5*#
6
7#{if} (true)
8    this is a test
9#{elseif} (true)
10    more text
11#{else}
12    this is a test
13#end
14
15## a more realistic example
16#if(true)sometext#{else}more text#{end}and yet more
17
18### others
19#{set} ($a = 3)
20
21#{macro}(mymacro)
22    hello
23#{end}
24
25#{mymacro}()
26
27#foreach ($a in [1..3])x#{end}
28
29## Check escaped directives
30
31\#if
32\#else
33\#elseif
34\#set
35