summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.chai
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-04-23 17:01:57 -0400
committerTim Hatch <tim@timhatch.com>2014-04-23 17:01:57 -0400
commitcc3e8ed0d6aa5c3461475d702a4e2840f56d295a (patch)
tree3b8a42f5870476a5859e25fdb40e2d96b5e7a5ad /tests/examplefiles/example.chai
parent690a2bdfa924f76fd374e25bd9772c2090cf6414 (diff)
downloadpygments-cc3e8ed0d6aa5c3461475d702a4e2840f56d295a.tar.gz
Improve ChaiScript lexer, add examplefile, add string interpolation
Diffstat (limited to 'tests/examplefiles/example.chai')
-rw-r--r--tests/examplefiles/example.chai6
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);