2
0
Fork 0

Fix line counting for \r linebreaks in config parser

This commit is contained in:
Thomas Porzelt 2009-04-17 17:39:12 +02:00
parent f446ec6b44
commit d153b12ed2
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@
# misc stuff
line_sane = ( '\n' ) >{ ctx->line++; };
line_weird = ( '\r' ) >{ ctx->line++; };
line_insane = ( '\r\n' ) >{ ctx->line--; };
line_insane = ( '\r' ( '\n' >{ ctx->line--; } ) );
line = ( line_sane | line_weird | line_insane );
ws = ( '\t' | ' ' );