summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example2.msc
diff options
context:
space:
mode:
authorDoug Hogan <doug@acyclic.org>2012-06-10 22:46:40 -0400
committerDoug Hogan <doug@acyclic.org>2012-06-10 22:46:40 -0400
commit58e89ae4fed19d75b50701d4a7619da1a8966af8 (patch)
treeceac705a7785e37bd5d654c2507ca29256e4c21a /tests/examplefiles/example2.msc
parent69c0e4e07cd9004c026238315fb1d6cff73a278b (diff)
downloadpygments-58e89ae4fed19d75b50701d4a7619da1a8966af8.tar.gz
Added mscgen lexer
Diffstat (limited to 'tests/examplefiles/example2.msc')
-rw-r--r--tests/examplefiles/example2.msc79
1 files changed, 79 insertions, 0 deletions
diff --git a/tests/examplefiles/example2.msc b/tests/examplefiles/example2.msc
new file mode 100644
index 00000000..61e2ef83
--- /dev/null
+++ b/tests/examplefiles/example2.msc
@@ -0,0 +1,79 @@
+#!/usr/bin/mscgen -Tpng
+#
+# testinput2.msc : Sample msc input file with URLs
+#
+# This file is PUBLIC DOMAIN and may be freely reproduced, distributed,
+# transmitted, used, modified, built upon, or otherwise exploited by
+# anyone for any purpose, commercial or non-commercial, and in any way,
+# including by methods that have not yet been invented or conceived.
+#
+# This file is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+# EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+
+# Note: This is from mscgen-0.20
+
+msc {
+
+A,B;
+
+--- [label="Start", ID="1"];
+
+A->B [label="signal"];
+A<-B [label="signal"];
+
+
+A=>B [label="method"];
+A<=B [label="method"];
+
+A>>B [label="return"];
+A<<B [label="return"];
+
+A=>>B [label="call-back"];
+A<<=B [label="call-back", URL="www.google.com"];
+
+A x- B [label="loss"];
+A -x B [label="loss"];
+
+--- [label="Left arcs", ID="2", IDURL="www.google.co.uk"];
+
+A->A [label="signal"];
+A<-A [label="signal"];
+
+
+A=>A [label="method"];
+A<=A [label="method"];
+
+A>>A [label="return"];
+A<<A [label="return"];
+
+A=>>A [label="call-back"];
+A<<=A [label="call-back", URL="www.google.com", ID="3"];
+
+A x- A [label="loss"];
+A -x A [label="loss"];
+
+--- [label="Right arcs"];
+
+B->B [label="signal"];
+B<-B [label="signal"];
+
+
+B=>B [label="method"];
+B<=B [label="method"];
+
+B>>B [label="return"];
+B<<B [label="return"];
+
+B=>>B [label="call-back", ID="4"];
+B<<=B [label="call-back", URL="www.google.com"];
+
+B x- B [label="loss"];
+B -x B [label="loss"];
+
+--- [label="End of arcs", URL="www.google.com"];
+
+
+... [label="Some time passes", URL="www.google.com"];
+}