diff --git a/src/cmdparse.l b/src/cmdparse.l index f07420d3..3e5dc889 100644 --- a/src/cmdparse.l +++ b/src/cmdparse.l @@ -74,6 +74,15 @@ EOL (\r?\n) cmdyylval.string = copy; return STR; } +\"[^\"]+\" { + BEGIN(INITIAL); + /* strip quotes */ + char *copy = sstrdup(yytext+1); + copy[strlen(copy)-1] = '\0'; + cmdyylval.string = copy; + return STR; + } + [^;\n]+ { BEGIN(INITIAL); cmdyylval.string = sstrdup(yytext); return STR; } [ \t]* { return WHITESPACE; }