diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2021-09-15 17:00:02 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-06-26 18:07:22 +0200 |
| commit | afd1fa22171b9848a045a80845b76de62b93c76f (patch) | |
| tree | 62e7493448f0b23d339a3da74c51b2f558b22e0e /test/indent/javascript | |
| parent | 6565f6edd700a1490c670f4e60cd52f7f78dbbe5 (diff) | |
rc toml: fix wrong highlighting of triple quoted strings that have quotes at the end
In TOML's triple-quoted strings, it's allowed to place quotes just
next to the triple quotes.
foo = '''bar''''
^ part of the string contents
^^^ closing sequence
We greedily interpret the first three single quotes as closing
sequence. As a result the remaining single quote wrongly opens a new
string. Fix this by only treating triple quotes as closing if they
are not followed by another quote.
I don't think there is another possible interpretation of quadruple
quotes in TOML, so this should not affect other valid inputs.
Fixes #4143
Diffstat (limited to 'test/indent/javascript')
0 files changed, 0 insertions, 0 deletions
