From f90e60fadbf196e877480facd412e17f86f55937 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 30 Apr 2011 11:12:06 -0400 Subject: [PATCH] Bugfix: Include of absolute paths to files in the root path weren't parsed correctly; caused a '/' character to be written to stdout --- src/lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.l b/src/lexer.l index 0da3f5d8..bc61c200 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -88,7 +88,7 @@ DIGIT [0-9] include[ \t\r\n>]*"<" { BEGIN(include); } { -[^\t\r\n>]+"/" { filepath = yytext; } +[^\t\r\n>]*"/" { filepath = yytext; } [^\t\r\n>/]+ { filename = yytext; } ">" { BEGIN(INITIAL); includefile(); } }