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
commitc348936391c62f1232dd15dff87caf5ca4122d22 (patch)
treebd3c6050343179830887af7d0e91ddd3e8001ba3 /tests/examplefiles
parent9d1221c9bd533a8fe605efccad62dfd26640624e (diff)
parent36d94127527aeb6eb76c77cd56ae5fa9088e02e6 (diff)
downloadpygments-c348936391c62f1232dd15dff87caf5ca4122d22.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} !+ ;