When finding a colon, the lex consumed all line separators, making it
* libversit/vcc.y (yylex): When finding a colon, the lex consumed all line separators, making it impossible to have empty values (bug 1260). Arturo svn path=/trunk/; revision=1324
This commit is contained in:
@ -117,7 +117,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable.
|
||||
|
||||
/**** Types, Constants ****/
|
||||
|
||||
#define YYDEBUG 0 /* 1 to compile in some debugging code */
|
||||
#define YYDEBUG 1 /* 1 to compile in some debugging code */
|
||||
#define MAXTOKEN 256 /* maximum token (line) length */
|
||||
#define YYSTACKSIZE 50 /* ~unref ? */
|
||||
#define MAXLEVEL 10 /* max # of nested objects parseable */
|
||||
@ -296,8 +296,7 @@ values: value SEMICOLON { enterValues($1); } values
|
||||
;
|
||||
|
||||
value: STRING
|
||||
|
|
||||
{ $$ = 0; }
|
||||
| { $$ = 0; }
|
||||
;
|
||||
|
||||
vcal:
|
||||
@ -1007,7 +1006,9 @@ static int yylex() {
|
||||
if (c == ';') {
|
||||
DBG_(("db: SEMICOLON\n"));
|
||||
lexPushLookaheadc(c);
|
||||
#ifdef _SUPPORT_LINE_FOLDING
|
||||
handleMoreRFC822LineBreak(c);
|
||||
#endif
|
||||
lexSkipLookahead();
|
||||
return SEMICOLON;
|
||||
}
|
||||
@ -1058,12 +1059,12 @@ static int yylex() {
|
||||
case ':': {
|
||||
/* consume all line separator(s) adjacent to each other */
|
||||
/* ignoring linesep immediately after colon. */
|
||||
c = lexLookahead();
|
||||
/* c = lexLookahead();
|
||||
while (strchr("\n",c)) {
|
||||
lexSkipLookahead();
|
||||
c = lexLookahead();
|
||||
++mime_lineNum;
|
||||
}
|
||||
}*/
|
||||
DBG_(("db: COLON\n"));
|
||||
return COLON;
|
||||
}
|
||||
|
Reference in New Issue
Block a user