summaryrefslogtreecommitdiff
path: root/examples/multiquotes.m4
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multiquotes.m4')
-rw-r--r--examples/multiquotes.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/multiquotes.m4 b/examples/multiquotes.m4
new file mode 100644
index 0000000..b56cfbd
--- /dev/null
+++ b/examples/multiquotes.m4
@@ -0,0 +1,17 @@
+traceon
+changequote([,])dnl
+changequote([``], [''])dnl
+````traceon''''
+define(``foo'', ````FOO'''')dnl
+dumpdef(``foo'')dnl
+changequote(``!'', ``!'')dnl
+!foo!
+foo
+dumpdef(!foo!)dnl
+define(!bar!, !BAR!)
+bar
+changequote(!>*>*>*>*>!, !<*<*<*<*<!)dnl five of each
+>*>*>*>*>foo bar<*<*<*<*<
+foo bar
+>*>*>*>*>*>*><*<*<*<*<*<*<
+dumpdef(>*>*>*>*>foo<*<*<*<*<, >*>*>*>*>bar<*<*<*<*<)dnl