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)
| 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 |
no outgoing calls
no test coverage detected