diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2019-03-20 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2019-03-20 17:58:14 +0100 |
commit | a92266db70f481f52f3e14e857e1ead300b1f473 (patch) | |
tree | 3b1da285129b52ba02fb4995b442768e9cb76ea0 /test-suite/tests/valid/long-integer.json | |
parent | dbdcc9ccc4233b4a7b3a1ce42d49fb863f1c903a (diff) | |
download | milf-rs-a92266db70f481f52f3e14e857e1ead300b1f473.tar.gz milf-rs-a92266db70f481f52f3e14e857e1ead300b1f473.zip |
Fix parsing of repeated delimiters inside multi-line strings
The previous implementation of `read_string`, when looking for
delimiters ending the multi-line string and failing to find exactly
three in succession, always put a single delimiter back. This is
incorrect when exactly two delimiters are present.
Put back the correct number of delimiters depending on how many have
been already consumed from input.
The issue could be triggered only with `Owned` representation of
`MaybeString`, since otherwise `push` operation is no-op.
Diffstat (limited to 'test-suite/tests/valid/long-integer.json')
0 files changed, 0 insertions, 0 deletions