From cc704ae7a73b21ea2c21b8e58953cdece62f81ac Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 2 Jan 2001 19:30:40 +0000 Subject: Fixed a bug where the ':' character was not being properly detected. --- src/scanner.l | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index 3e984c4..86c2b77 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -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 * 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'; } +: { return ':'; } {white}+ ; 0x{digit}+ { yylval.num = strtol(yytext, NULL, 16); return NUMBER; } 0{digit}+ { yylval.num = strtol(yytext, NULL, 8); return NUMBER; } {digit}+ { yylval.num = atoi(yytext); return NUMBER; } {alpha}+ { return check_reserved_words(yytext); } -':' { return ':'; } -'/' { return '/'; } \" { tiny_str = tiny_buf; BEGIN(string); -- cgit v1.2.3