This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/genshitext/genshitext_example.genshitext
Oleh Prypin 6f43092173
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
2021-01-20 10:48:45 +01:00

33 lines
332 B
Text

## a comment
\## not a comment
#if foo
${bar}
#endif
The answer is:
#choose
#when 0 == 1
0
#end
#when 1 == 1
1
#end
#otherwise
2
#end
#end -- comment about choose
#for item in items
* ${item}
#end
#def greeting(name)
Hello, ${name}!
#end
${greeting('world')}
#with y=7; z=x+10
$x $y $z
#end