From: Emden Gansner Date: Wed, 27 Feb 2013 20:33:21 +0000 (-0500) Subject: Fix scanner. As quotes are the only quoted character, we can't map the dyad \\ to... X-Git-Tag: LAST_LIBGRAPH~32^2~223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d19b672a3c06f0ae95b1da38b63b068f71eb266f;p=graphviz Fix scanner. As quotes are the only quoted character, we can't map the dyad \\ to \\, as the second backslash may be escaping a quote. --- diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index e2215d1f4..3cfde0fdd 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -180,7 +180,6 @@ ID ({NAME}|{NUMBER}) ["] BEGIN(qstring); beginstr(); ["] BEGIN(INITIAL); endstr(); return (T_qatom); [\\]["] addstr ("\""); -[\\][\\] addstr ("\\\\"); [\\][\n] line_num++; /* ignore escaped newlines */ ([^"\\]*|[\\]) addstr(yytext); [<] BEGIN(hstring); html_nest = 1; beginstr();