diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-30 15:12:06 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-30 15:12:06 (GMT) |
commit | f90e60fadbf196e877480facd412e17f86f55937 (patch) | |
tree | 31fabae99f68b0c3579baad7eb8d50cd11fbb6cc /src/lexer.l | |
parent | 1a9e3e7ca5d225ecdd7b59e34181a5f72d99eb7e (diff) |
Bugfix: Include of absolute paths to files in the root path weren't parsed correctly; caused a '/' character to be written to stdout
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.l b/src/lexer.l index 0da3f5d..bc61c20 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -88,7 +88,7 @@ DIGIT [0-9] include[ \t\r\n>]*"<" { BEGIN(include); } <include>{ -[^\t\r\n>]+"/" { filepath = yytext; } +[^\t\r\n>]*"/" { filepath = yytext; } [^\t\r\n>/]+ { filename = yytext; } ">" { BEGIN(INITIAL); includefile(); } } |