diff options
Diffstat (limited to '')
-rw-r--r-- | src/build.l | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/build.l b/src/build.l index a18cbeb..620f9db 100644 --- a/src/build.l +++ b/src/build.l | |||
@@ -50,7 +50,9 @@ std::string strbuf; | |||
50 | BEGIN( regexp ); | 50 | BEGIN( regexp ); |
51 | strbuf = ""; | 51 | strbuf = ""; |
52 | } | 52 | } |
53 | <regexp>[^\n/]* strbuf += yytext; | 53 | <regexp>[^\n/\\]* strbuf += yytext; |
54 | <regexp>"\\/" strbuf += "/"; | ||
55 | <regexp>"\\" strbuf += "\\"; | ||
54 | <regexp>"/" { | 56 | <regexp>"/" { |
55 | BEGIN( INITIAL ); | 57 | BEGIN( INITIAL ); |
56 | yylval->strval = stringdup( strbuf.c_str() ); | 58 | yylval->strval = stringdup( strbuf.c_str() ); |
@@ -64,6 +66,12 @@ std::string strbuf; | |||
64 | return STRING; | 66 | return STRING; |
65 | } | 67 | } |
66 | 68 | ||
69 | [^ \t\r\n\'\":=,/][^ \t\r\n\'\"=,]+[^ \t\r\n\'\":=,] { | ||
70 | yylval->strval = stringdup( yytext ); | ||
71 | return STRING; | ||
72 | } | ||
73 | |||
74 | |||
67 | \" { | 75 | \" { |
68 | BEGIN( strdq ); | 76 | BEGIN( strdq ); |
69 | strbuf = ""; | 77 | strbuf = ""; |