diff options
author | Tim Hatch <tim@timhatch.com> | 2014-04-23 17:01:57 -0400 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-04-23 17:01:57 -0400 |
commit | cc3e8ed0d6aa5c3461475d702a4e2840f56d295a (patch) | |
tree | 3b8a42f5870476a5859e25fdb40e2d96b5e7a5ad /tests/examplefiles/example.chai | |
parent | 690a2bdfa924f76fd374e25bd9772c2090cf6414 (diff) | |
download | pygments-cc3e8ed0d6aa5c3461475d702a4e2840f56d295a.tar.gz |
Improve ChaiScript lexer, add examplefile, add string interpolation
Diffstat (limited to 'tests/examplefiles/example.chai')
-rw-r--r-- | tests/examplefiles/example.chai | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/examplefiles/example.chai b/tests/examplefiles/example.chai new file mode 100644 index 00000000..85f53c38 --- /dev/null +++ b/tests/examplefiles/example.chai @@ -0,0 +1,6 @@ +var f = fun(x) { x + 2; } +// comment +puts(someFunc(2 + 2 - 1 * 5 / 4)); +var x = "str"; +def dosomething(lhs, rhs) { print("lhs: ${lhs}, rhs: ${rhs}"); } +callfunc(`+`, 1, 4); |