-- fixed boyer-moore init
-- removed content extract var cruft
-- latest from Josh
+-- initial /* comments */ for text rules (needs to ignore \")
126
-- pulled latest from tom
comments++;
state = 1;
}
+ else if ( c == '/' )
+ {
+ s = c;
+ state = 10;
+ }
else if ( c == '[' )
{
s += c;
s += c;
state = 6;
break;
+ case 10: // start of comment?
+ if ( c == '*' )
+ {
+ s.clear();
+ state = 11;
+ break;
+ }
+ keys++;
+ // now as if state == 6
+ if ( esc && c == '\\' )
+ {
+ state = 9;
+ }
+ else if ( isspace(c) || strchr(punct, c) )
+ {
+ prev = c;
+ return TT_LITERAL;
+ }
+ else
+ {
+ s += c;
+ state = 6;
+ }
+ break;
+ case 11: // /* comment */
+ if ( c == '*' )
+ state = 12;
+ else if ( c == '"' )
+ state = 13;
+ break;
+ case 12: // end of comment?
+ if ( c == '/' )
+ {
+ comments++;
+ state = 0;
+ }
+ break;
+ case 13: // quoted string in comment
+ if ( c == '"' )
+ state = 11;
+ else if ( c == '\n' )
+ {
+ ParseWarning("line break in commented string on line %d\n", lines-1);
+ state = 11;
+ }
+ break;
}
c = is.get();
chars++;
{ "chunk_length", Parameter::PT_INT, "1:", "500000",
"alert on chunk lengths greater than specified" },
+ // FIXIT-M this is backwards: 0 should mean nothing; -1 all
{ "client_flow_depth", Parameter::PT_INT, "-1:1460", "0",
"raw request payload to inspect" },