]> granicus.if.org Git - graphviz/commitdiff
Fix bug in scanner. We weren't handling escaped backslashes.
authorerg <devnull@localhost>
Mon, 6 Dec 2010 18:35:24 +0000 (18:35 +0000)
committererg <devnull@localhost>
Mon, 6 Dec 2010 18:35:24 +0000 (18:35 +0000)
lib/cgraph/scan.l

index ed4cc20adbc1d20785597dbc227314e4247443c7..8d586633008b526da4c0e93dfbcbd0a7b8078129 100644 (file)
@@ -182,6 +182,7 @@ 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();