fixed and diff as below:
hg diff text.c
diff -r cc9d45154e39 src/cmd/acme/text.c
--- a/src/cmd/acme/text.c Sun Oct 23 18:47:29 2011 -0400
+++ b/src/cmd/acme/text.c Mon Nov 14 13:24:17 2011 +0800
@@ -1467,7 +1467,7 @@
- q1 = q;
if(c1 == '/') closing tag
return -1;
- if(c2 == '/' || c2 == '!') open + close tag or comment
+ if(c2 == '/' || c1 == '!') open + close tag or comment
return 0;
return 1;
}
@@ -1497,7 +1497,7 @@
- q0 = q;
if(c1 == '/') closing tag
return -1;
- if(c2 == '/' || c2 == '!') open + close tag or comment
+ if(c2 == '/' || c2 == '-') open + close tag or comment
return 0;
return 1;
}