MCPcopy Create free account
hub / github.com/cogentcore/core / SpellCheckLineErrors

Method SpellCheckLineErrors

texteditor/buffer.go:1075–1080  ·  view source on GitHub ↗

SpellCheckLineErrors runs spell check on given line, and returns Lex tags with token.TextSpellErr for any misspelled words

(ln int)

Source from the content-addressed store, hash-verified

1073// SpellCheckLineErrors runs spell check on given line, and returns Lex tags
1074// with token.TextSpellErr for any misspelled words
1075func (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.

Callers 1

spellCheckLineTagMethod · 0.95

Calls 4

CheckLexLineFunction · 0.92
IsValidLineMethod · 0.80
HiTagsMethod · 0.80
LineMethod · 0.65

Tested by

no test coverage detected