diff options
-rw-r--r-- | src/c/urweb.c | 12 | ||||
-rw-r--r-- | src/urweb.grm | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index a9a169b8..620893c0 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -1568,6 +1568,10 @@ uw_Basis_string uw_Basis_jsifyString(uw_context ctx, uw_Basis_string s) { strcpy(s2, "\\074"); s2 += 4; break; + case '&': + strcpy(s2, "\\046"); + s2 += 4; + break; default: if (isprint((int)c) || c >= 128) *s2++ = c; @@ -1609,6 +1613,10 @@ uw_Basis_string uw_Basis_jsifyChar(uw_context ctx, uw_Basis_char c1) { strcpy(s2, "\\074"); s2 += 4; break; + case '&': + strcpy(s2, "\\046"); + s2 += 4; + break; default: if (isprint((int)c) || c >= 128) *s2++ = c; @@ -1647,6 +1655,10 @@ uw_Basis_string uw_Basis_jsifyString_ws(uw_context ctx, uw_Basis_string s) { strcpy(s2, "\\074"); s2 += 4; break; + case '&': + strcpy(s2, "\\046"); + s2 += 4; + break; default: if (isprint((int)c) || c >= 128) *s2++ = c; diff --git a/src/urweb.grm b/src/urweb.grm index 0f499e20..968a3c44 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -573,7 +573,7 @@ fun patternOut (e : exp) = %right JOIN INNER CROSS OUTER LEFT RIGHT FULL %right OR %right CAND -%nonassoc EQ NE LT LE GT GE IS +%nonassoc EQ NE LT LE GT GE IS LIKE %right ARROW %left REVAPP |