summaryrefslogtreecommitdiff
path: root/tests/examplefiles
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-17 10:34:15 +0100
committerGeorg Brandl <georg@python.org>2016-02-17 10:34:15 +0100
commit7a901b516b3f54797ba779a635cd72a07e54dd06 (patch)
tree30770a3579c4844594d1a42b6b5f572d254b03f0 /tests/examplefiles
parent2cfa9446379317b3154c60fd9c230ae5bf05b840 (diff)
parent04e0998d5ba010dcbeb6313594965a3fa97552ed (diff)
downloadpygments-git-7a901b516b3f54797ba779a635cd72a07e54dd06.tar.gz
Merged in dscorbett/pygments-jsgf (pull request #546)
Add a lexer for JSGF
Diffstat (limited to 'tests/examplefiles')
-rw-r--r--tests/examplefiles/example.jsgf28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/examplefiles/example.jsgf b/tests/examplefiles/example.jsgf
new file mode 100644
index 00000000..cd79dbed
--- /dev/null
+++ b/tests/examplefiles/example.jsgf
@@ -0,0 +1,28 @@
+#JSGF V1.0 UTF-8 en;
+
+grammar org.pygments.example;
+
+// comment /*
+/*
+ multi-line
+ comment
+ /* without nesting
+ @example doesn't mean anything here.
+*/
+/**/
+
+/**
+ * A silly @example grammar.
+ *
+ * @author David Corbett
+ * @version 1
+* @see <org.pygments.example.en>
+ * @example hello world
+ @example hello ","
+ *
+ **@blah
+ **world
+ */
+public <sentence> = (/1/<en> | / 0.8f /<fr> |/0/<VOID>""""{}{})*<NULL>;
+<org.pygments.example.fr> = bonjour {hello} [,] "le monde" {world};
+<en> = (/56/hello|/3.14e3/"\"hello\"") {hello} {{ {\\//\} } world {world} !+ ;