summaryrefslogtreecommitdiff
path: root/src/webidl-lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/webidl-lexer.l')
-rw-r--r--src/webidl-lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webidl-lexer.l b/src/webidl-lexer.l
index e49b813..8c68fdf 100644
--- a/src/webidl-lexer.l
+++ b/src/webidl-lexer.l
@@ -228,7 +228,7 @@ legacyiterable return TOK_LEGACYITERABLE;
{decimalfloat} yylval->text = strdup(yytext); return TOK_FLOAT_LITERAL;
-\"{quotedstring}*\" yylval->text = strdup(yytext); return TOK_STRING_LITERAL;
+\"{quotedstring}*\" yylval->text = strdup(yytext + 1); *(yylval->text + yyleng - 2) = 0; return TOK_STRING_LITERAL;
{multicomment} {
/* multicomment */