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

Method AutoBracket

parse/lang.go:83–83  ·  view source on GitHub ↗

AutoBracket returns what to do when a user types a starting bracket character (bracket, brace, paren) while typing. pos = position where bra will be inserted, and curLn is the current line match = insert the matching ket, and newLine = insert a new line.

(fs *FileStates, bra rune, pos lexer.Pos, curLn []rune)

Source from the content-addressed store, hash-verified

81 // pos = position where bra will be inserted, and curLn is the current line
82 // match = insert the matching ket, and newLine = insert a new line.
83 AutoBracket(fs *FileStates, bra rune, pos lexer.Pos, curLn []rune) (match, newLine bool)
84
85 // below are more implementational methods not called externally typically
86

Callers 1

keyInputInsertBracketMethod · 0.65

Implementers 3

MarkdownLangparse/languages/markdown/markdown.go
GoLangparse/languages/golang/golang.go
TexLangparse/languages/tex/tex.go

Calls

no outgoing calls

Tested by

no test coverage detected