--- code/trunk/pcretest.c 2007/12/23 12:17:20 289 +++ code/trunk/pcretest.c 2008/04/12 15:59:03 336 @@ -1247,10 +1247,18 @@ case '<': { - int x = check_newline(pp, outfile); - if (x == 0) goto SKIP_DATA; - options |= x; - while (*pp++ != '>'); + if (strncmp((char *)pp, "JS>", 3) == 0) + { + options |= PCRE_JAVASCRIPT_COMPAT; + pp += 3; + } + else + { + int x = check_newline(pp, outfile); + if (x == 0) goto SKIP_DATA; + options |= x; + while (*pp++ != '>'); + } } break;