Collapse string gaps as \& (#25784)
In 9.10, "\65\ \0" would result in "A0", but in 9.12, it results in "\650", due to the string refactoring I did in !13128. Previously, we were resolving escape codes and collapsing string gaps as we come across them, but after the refactor, string processing is broken out into phases, which is both more readable and useful for multiline strings.
Showing
- compiler/GHC/Parser/String.hs 2 additions, 1 deletioncompiler/GHC/Parser/String.hs
- testsuite/tests/parser/should_run/T25784.hs 18 additions, 0 deletionstestsuite/tests/parser/should_run/T25784.hs
- testsuite/tests/parser/should_run/T25784.stdout 6 additions, 0 deletionstestsuite/tests/parser/should_run/T25784.stdout
- testsuite/tests/parser/should_run/all.T 1 addition, 0 deletionstestsuite/tests/parser/should_run/all.T
Loading
Please register or sign in to comment