aboutsummaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-08-26 01:27:23 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-08-26 01:42:55 +0200
commit8093caf55ba0df77fe297f682c2a327fba8ccb28 (patch)
tree4ad82076487e0eb8103d1725c0dc71bf318d83b4 /LICENSE
parent85a97a1aab13dc9acb19715e8bc58c6f8c3bcd51 (diff)
downloadvis-spellcheck-8093caf55ba0df77fe297f682c2a327fba8ccb28.tar.gz
vis-spellcheck-8093caf55ba0df77fe297f682c2a327fba8ccb28.zip
extract generic spellchecking functionality from the full viewport function
Add get_typos(range) to retrieve a string of misspelled word in a specific file range by calling the spellchecker's list command. It return nil or a string with each misspell followed by a newline. Introduce typo_iter(text, typos, ignored) to iterate over all not ignored typos and their positions in text. It returns an statefull iterator function closure. Which will return the next typo and ist start and finish in the text, starting by 1.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions