[ILUG] apache config question..
Colm MacCárthaigh
colmmacc at redbrick.dcu.ie
Tue Jan 22 16:51:28 GMT 2002
On Tue, Jan 22, 2002 at 04:07:54PM +0000, John Tobin wrote:
> On Tue, Jan 22, 2002 at 03:17:46PM +0000, Colm MacCarthaigh wrote:
> ? On Tue, Jan 22, 2002 at 02:53:43PM -0000, Breathnach, Proinnsias (Dublin) wrote:
> ? I wish they'd just add lexer rules like:
> ?
> ? "#"|"//"|"/*" { state = IGNORE; };
> ? \n { line_no++; if(state == IGNORE) { state = RESPOND; } };
> ? "*/" { if(state == IGNORE) { state = RESPOND;} }
>
>
> Won't that give you a situation where:
> /* this is a comment
> this is not a comment
> */
>
> assuming C style comments? Or am I reading it wrongly?
actually yeah, you're right, needs to have a state for
multi-line comments, something like:
"#"|"//" { state = IGNORE; };
\n { line_no++; if(state == IGNORE) { state = RESPOND; } };
"/*" { state = ML_IGNORE; };
"*/" { if(state == ML_IGNORE) { state = RESPOND;} }
--
-------------------------------------------------------------
colmmacc at redbrick.dcu.ie webmaster at redbrick.dcu.ie
"if you really want to change something, start with yourself"
More information about the ILUG
mailing list