aboutsummaryrefslogtreecommitdiff
path: root/test/lang.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
commit645d66e0de0f201404d9ad4b210f90c139a247ff (patch)
tree08367c3631b928752cde94083bdfe2ae49db0b79 /test/lang.tm
parentb025cf269d2e07e179be4a0e34d936862dc640c2 (diff)
Change table syntax to `{key=value}` and `{:K,V}`/`{K,V}`
Diffstat (limited to 'test/lang.tm')
-rw-r--r--test/lang.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lang.tm b/test/lang.tm
index 451ec480..c0add87b 100644
--- a/test/lang.tm
+++ b/test/lang.tm
@@ -2,11 +2,11 @@ lang HTML:
HEADER := $HTML"<!DOCTYPE HTML>"
func escape(t:Text->HTML):
t = t:replace_all({
- $/&/: "&amp;",
- $/</: "&lt;",
- $/>/: "&gt;",
- $/"/: "&quot",
- $/'/: "&#39;",
+ $/&/="&amp;",
+ $/</="&lt;",
+ $/>/="&gt;",
+ $/"/="&quot",
+ $/'/="&#39;",
})
return HTML.without_escaping(t)