Fixed a bug where the ':' character was not being properly detected.
This commit is contained in:
parent
7d0dcc9781
commit
cc704ae7a7
@ -1,4 +1,4 @@
|
|||||||
/* $Id: scanner.l,v 1.1 2000-09-12 00:12:52 rjkaes Exp $
|
/* $Id: scanner.l,v 1.2 2001-01-02 19:30:40 rjkaes Exp $
|
||||||
*
|
*
|
||||||
* This builds the scanner for the tinyproxy configuration file. This
|
* This builds the scanner for the tinyproxy configuration file. This
|
||||||
* file needs to stay in sync with grammar.y. If someone knows lex and yacc
|
* file needs to stay in sync with grammar.y. If someone knows lex and yacc
|
||||||
@ -85,13 +85,12 @@ word [^ \#'"\(\)\{\}\\;\n\t,|\.]
|
|||||||
|
|
||||||
\#.*$ ;
|
\#.*$ ;
|
||||||
\n { yylineno++; return '\n'; }
|
\n { yylineno++; return '\n'; }
|
||||||
|
: { return ':'; }
|
||||||
{white}+ ;
|
{white}+ ;
|
||||||
0x{digit}+ { yylval.num = strtol(yytext, NULL, 16); return NUMBER; }
|
0x{digit}+ { yylval.num = strtol(yytext, NULL, 16); return NUMBER; }
|
||||||
0{digit}+ { yylval.num = strtol(yytext, NULL, 8); return NUMBER; }
|
0{digit}+ { yylval.num = strtol(yytext, NULL, 8); return NUMBER; }
|
||||||
{digit}+ { yylval.num = atoi(yytext); return NUMBER; }
|
{digit}+ { yylval.num = atoi(yytext); return NUMBER; }
|
||||||
{alpha}+ { return check_reserved_words(yytext); }
|
{alpha}+ { return check_reserved_words(yytext); }
|
||||||
':' { return ':'; }
|
|
||||||
'/' { return '/'; }
|
|
||||||
\" {
|
\" {
|
||||||
tiny_str = tiny_buf;
|
tiny_str = tiny_buf;
|
||||||
BEGIN(string);
|
BEGIN(string);
|
||||||
|
Loading…
Reference in New Issue
Block a user