From c29ff7de6a1d17204ca4107317756e89f849cbe6 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sat, 2 May 2015 15:02:53 -0400 Subject: [PATCH] lexStringLiteral -> lexQuotedString --- lib/lex.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lex.go b/lib/lex.go index 5b176a6..45136d7 100644 --- a/lib/lex.go +++ b/lib/lex.go @@ -194,7 +194,7 @@ func lexRoot(l *lexer) stateFn { l.emit(t_object_separator) return lexRoot case r == '"', r == '`': - return lexStringLiteral(r) + return lexQuotedString(r) case r == '#': return lexComment case r == '[': @@ -264,7 +264,7 @@ func lexComment(l *lexer) stateFn { } } -func lexStringLiteral(delim rune) stateFn { +func lexQuotedString(delim rune) stateFn { return func(l *lexer) stateFn { switch r := l.next(); r { case delim: @@ -276,13 +276,13 @@ func lexStringLiteral(delim rune) stateFn { return lexErrorf("unexpected eof in string literal") default: l.keep(r) - return lexStringLiteral(delim) + return lexQuotedString(delim) } case eof: return lexErrorf("unexpected eof in string literal") default: l.keep(r) - return lexStringLiteral(delim) + return lexQuotedString(delim) } } }