]> granicus.if.org Git - graphviz/commitdiff
Fix scanner. As quotes are the only quoted character, we can't map the dyad \\ to...
authorEmden Gansner <erg@research.att.com>
Wed, 27 Feb 2013 20:33:21 +0000 (15:33 -0500)
committerEmden Gansner <erg@research.att.com>
Wed, 27 Feb 2013 20:33:21 +0000 (15:33 -0500)
the second backslash may be escaping a quote.

lib/cgraph/scan.l

index e2215d1f41369ebdec8b5a7feaf1ca69acc963bb..3cfde0fddf3bda218b5647859df08d2f44859b90 100644 (file)
@@ -180,7 +180,6 @@ ID          ({NAME}|{NUMBER})
 ["]                                            BEGIN(qstring); beginstr();
 <qstring>["]                   BEGIN(INITIAL); endstr(); return (T_qatom);
 <qstring>[\\]["]               addstr ("\"");
-<qstring>[\\][\\]              addstr ("\\\\");
 <qstring>[\\][\n]              line_num++; /* ignore escaped newlines */
 <qstring>([^"\\]*|[\\])                addstr(yytext);
 [<]                                            BEGIN(hstring); html_nest = 1; beginstr();