MCPcopy Index your code
hub / github.com/Shopify/go-lua / skipSeparator

Method skipSeparator

scanner.go:155–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153}
154
155func (s *scanner) skipSeparator() int { // TODO is this the right name?
156 i, c := 0, s.current
157 s.assert(c == '[' || c == ']')
158 for s.saveAndAdvance(); s.current == '='; i++ {
159 s.saveAndAdvance()
160 }
161 if s.current == c {
162 return i
163 }
164 return -i - 1
165}
166
167func (s *scanner) readMultiLine(comment bool, sep int) (str string) {
168 if s.saveAndAdvance(); isNewLine(s.current) {

Callers 2

readMultiLineMethod · 0.95
scanMethod · 0.95

Calls 2

assertMethod · 0.95
saveAndAdvanceMethod · 0.95

Tested by

no test coverage detected