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

Method InLitString

texteditor/text/lines.go:436–440  ·  view source on GitHub ↗

InLitString returns true if position is in a string literal.

(pos lexer.Pos)

Source from the content-addressed store, hash-verified

434
435// InLitString returns true if position is in a string literal.
436func (ls *Lines) InLitString(pos lexer.Pos) bool {
437 ls.Lock()
438 defer ls.Unlock()
439 return ls.inLitString(pos)
440}
441
442// InTokenCode returns true if position is in a Keyword,
443// Name, Operator, or Punctuation.

Callers 2

offerCompleteMethod · 0.80
isSpellEnabledMethod · 0.80

Calls 3

inLitStringMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected