Commit Diff


commit - 9a90a3d166d0ae512772ecb58d39629cd8250e37
commit + b449817041dc22b1fc1bfe7e3513a92415799ccf
blob - be0229281e66c6155564c09923061e142c13fe7e
blob + ea8c669ead48f42cf063f22f8116752e7f163a8f
--- template/parse.y
+++ template/parse.y
@@ -84,7 +84,7 @@ typedef struct {
 
 %}
 
-%token	DEFINE ELSE END ERROR ESCAPE FINALLY IF INCLUDE
+%token	DEFINE ELSE END ERROR FINALLY IF INCLUDE
 %token	RENDER TQFOREACH UNSAFE URLESCAPE
 %token	<v.string>	STRING
 %type	<v.string>	string
@@ -184,12 +184,6 @@ special		: '{' RENDER string '}' {
 		}
 		| if body endif			{ puts("}"); }
 		| loop
-		| '{' string '|' ESCAPE '}' {
-			dbg();
-			printf("if (tp->tp_escape(tp, %s) == -1) goto err;\n",
-			    $2);
-			free($2);
-		}
 		| '{' string '|' UNSAFE '}' {
 			dbg();
 			printf("if (tp->tp_puts(tp, %s) == -1) goto err;\n",
@@ -301,7 +295,6 @@ lookup(char *s)
 		{ "define",		DEFINE },
 		{ "else",		ELSE },
 		{ "end",		END },
-		{ "escape",		ESCAPE },
 		{ "finally",		FINALLY },
 		{ "if",			IF },
 		{ "include",		INCLUDE },