]> granicus.if.org Git - graphviz/commit
fix: track source line number accurately across newlines in quoted strings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Sep 2020 00:54:43 +0000 (17:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Sep 2020 02:58:37 +0000 (19:58 -0700)
commit9bdd24cae96d01fc6b2a940bc87d27edeb5d84a7
treeac8d72363cc7e1d6e6b154b441f5947f40fc1580
parent2372b3d1ba6f64c022a0cfe11e8679d8ef666b33
fix: track source line number accurately across newlines in quoted strings

The regex for matching arbitrary content within a quoted string (qstring) was
too broad, matching also newlines. Due to the way Flex preferences regex matches
this prevented the literal newline rule from matching at all within a quoted
string. As a result error messages would reference incorrect line numbers.
Closes #1411.
CHANGELOG.md
lib/cgraph/scan.l
rtest/1411.dot [new file with mode: 0644]
rtest/test_regression.py