diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-01-02 19:30:40 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-01-02 19:30:40 +0000 |
commit | cc704ae7a73b21ea2c21b8e58953cdece62f81ac (patch) | |
tree | 494636e2ad1710b9f32d13c71708bb8a379adae8 | |
parent | 7d0dcc97813afcaa524f28b86812328b6c75cfdf (diff) | |
download | tinyproxy-cc704ae7a73b21ea2c21b8e58953cdece62f81ac.tar.gz tinyproxy-cc704ae7a73b21ea2c21b8e58953cdece62f81ac.zip |
Fixed a bug where the ':' character was not being properly detected.
-rw-r--r-- | src/scanner.l | 5 |
1 files 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); |