[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nested comments
From: |
john43 |
Subject: |
Re: Nested comments |
Date: |
Sat, 5 Jul 2003 18:15:46 -0400 |
>It would probably be nice with a line counting
> method that does not have to rescan the match.
As it is now, line counts are nearly free if you
separate the rules that could match newlines from the
rules which could never match newlines. The mechanism is
best suited to scanners which discard whitespace.
>BTW, what happens if the match does not fit into the
>buffer, which might happen if the comment is very long?
The buffer grows with realloc(). However, recall that
the default buffer size is 16k.
-John
- Re: Nested comments, (continued)
- Re: Nested comments, john43, 2003/07/02
- Re: Nested comments, john43, 2003/07/02
- RE: Nested comments, Thurn, Martin, 2003/07/02
- RE: Nested comments, john43, 2003/07/02
- Re: Nested comments, Hans Aberg, 2003/07/02
- Re: Nested comments,
john43 <=
- Re: Nested comments, john43, 2003/07/07
- Re: Nested comments, john43, 2003/07/07
- Re: Nested comments, john43, 2003/07/07