SpellCheckLineErrors runs spell check on given line, and returns Lex tags with token.TextSpellErr for any misspelled words
(ln int)
| 1073 | // SpellCheckLineErrors runs spell check on given line, and returns Lex tags |
| 1074 | // with token.TextSpellErr for any misspelled words |
| 1075 | func (tb *Buffer) SpellCheckLineErrors(ln int) lexer.Line { |
| 1076 | if !tb.IsValidLine(ln) { |
| 1077 | return nil |
| 1078 | } |
| 1079 | return spell.CheckLexLine(tb.Line(ln), tb.HiTags(ln)) |
| 1080 | } |
| 1081 | |
| 1082 | // spellCheckLineTag runs spell check on given line, and sets Tags for any |
| 1083 | // misspelled words and updates markup for that line. |
no test coverage detected