Skip to content

Commit

Permalink
Note where we would fix a whitespace bug if we were so inclined.
Browse files Browse the repository at this point in the history
  • Loading branch information
fenner committed Jun 16, 2006
1 parent cb9f35e commit 63a95d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "y.tab.h"

static const char rcsid[] =
"$Fenner: abnf-parser/scanner.l,v 1.15 2005/02/03 05:37:37 fenner Exp $";
"$Fenner: abnf-parser/scanner.l,v 1.16 2005/03/01 17:24:58 fenner Exp $";

int yylineno = 1;
int yycolumn = 0;
Expand Down Expand Up @@ -181,6 +181,12 @@ mycrlf (\n\r|\r\n|\r|\n)
=\/ { yycolumn += 2; return EQSLASH; }
({wsp}+|(;[^\r\n]*)|{mycrlf}{wsp}+)+ { char *p = yytext;
while (*p) {
/* TO DO:
* deal with indent if we
* have one set - if a blank
* line or a comment is indented
* less than enough, we warn
* about it. */
if (*p == '\r') {
gotcr();
if (*(++p) == '\n')
Expand Down

0 comments on commit 63a95d9

Please sign in to comment.