summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-05-06 15:27:30 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-05-06 15:27:30 -0400
commite2c983bf4dc50abe9500173ac5ebe98b9e182857 (patch)
treeae765a83259f804f7dc7a8eeede51faec284ef07 /tests
parent7bb3cb12e6a013204e794db821069d8b9e0ecc58 (diff)
New optional suffice for 'rewrite' in .urp files: [-]
Diffstat (limited to 'tests')
-rw-r--r--tests/hyphenate.ur7
-rw-r--r--tests/hyphenate.urp5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/hyphenate.ur b/tests/hyphenate.ur
new file mode 100644
index 00000000..48c94f6b
--- /dev/null
+++ b/tests/hyphenate.ur
@@ -0,0 +1,7 @@
+style extra_special
+style somewhat_special
+
+fun main () : transaction page = return <xml><body>
+ <span class={extra_special}>Test</span>
+ <span class={somewhat_special}>Test</span>
+</body></xml>
diff --git a/tests/hyphenate.urp b/tests/hyphenate.urp
new file mode 100644
index 00000000..197fd9d0
--- /dev/null
+++ b/tests/hyphenate.urp
@@ -0,0 +1,5 @@
+rewrite url Hyphenate/*
+rewrite style Hyphenate/somewhat_special spectactularly_great [-]
+rewrite style Hyphenate/* [-]
+
+hyphenate \ No newline at end of file