diff options
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index 87588e1..e906271 100644 --- a/src/parse.c +++ b/src/parse.c @@ -101,6 +101,7 @@ parse_string(struct lexer *lexer, char **out) *out = NULL; struct token s; + bool isstr = false; while (lex(lexer, &s) == T_STRING) { if (*out) { *out = strdup(s.info.str); @@ -108,10 +109,12 @@ parse_string(struct lexer *lexer, char **out) size_t sz = strlen(*out) + strlen(s.info.str) + 1; *out = must_realloc(*out, sz); } + + isstr = true; } unlex(lexer, &s); - return true; + return isstr; } static bool |