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

Function isNewLine

scanner.go:84–84  ·  view source on GitHub ↗
(c rune)

Source from the content-addressed store, hash-verified

82func (s *scanner) errorExpected(t rune) { s.syntaxError(s.tokenToString(t) + " expected") }
83func (s *scanner) numberError() { s.scanError("malformed number", tkNumber) }
84func isNewLine(c rune) bool { return c == '\n' || c == '\r' }
85func isDecimal(c rune) bool { return '0' <= c && c <= '9' }
86
87func (s *scanner) tokenToString(t rune) string {

Callers 4

incrementLineNumberMethod · 0.85
readMultiLineMethod · 0.85
readStringMethod · 0.85
scanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected