From: Franck A. <fr...@ne...> - 2004-10-29 20:18:35
|
I've committed my fix. You need to run geant install to regenerate the parser and lexer. I still don't understand it well. What I changed is tokens like: ([\r\n ]|{CHARS})+ to 2 separate tokens: [\n ]+ {CHARS}+ that seems to convince gelex to generate line counting code in the second case. As I'm not sure why/when it happens, it's possible that other tokens still have this problem, although now it's fixed for comments and the xml declaration it should not happen often with ordinary xml files that are not oddly formatted. |