diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-27 15:43:34 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-27 15:43:34 +0200 |
| commit | 04ab455907fe7da054aeefe05b0be0b534affccd (patch) | |
| tree | 11ba34ace91f95de134e01ef8c80150402af5353 /Readme.md | |
| parent | 819f67b78f2bc64f39fc0a48613908c36c674621 (diff) | |
| download | vis-spellcheck-04ab455907fe7da054aeefe05b0be0b534affccd.tar.gz vis-spellcheck-04ab455907fe7da054aeefe05b0be0b534affccd.zip | |
don't loop infinitely if a typo spans multiple tokens
This happens because the "default" token gets emitted for each not matched
char resulting in lots of small "default" tokens.
This markdown:
> typu
will result in the token stream
{"default", 2, "default", 3, "default", 4, "default", 5}
and a typo stream with a single entry spanning all of the tokens
{{"typu", 1, 5}}.
Not checking if the typo is longer then the current token leads to an infinite
loop where the typo is always inserted in the new token stream without advancing
the token stream.
Diffstat (limited to 'Readme.md')
0 files changed, 0 insertions, 0 deletions
