From cf062e09037c7e54a821b05ef50b3e86683090f8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Jan 2023 13:59:35 -0700 Subject: Improve/fix documentation and comments --- internal/parse.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'internal') diff --git a/internal/parse.go b/internal/parse.go index cefcca0..73470ae 100644 --- a/internal/parse.go +++ b/internal/parse.go @@ -226,13 +226,13 @@ type Parser struct { err error closed bool - // We reuse RuneTypes to store the stack. The base idea is - // that, stack items are "the most recently read - // stack-relevant RuneType". + // We reuse RuneTypes to store the stack. The base idea is: + // stack items are "the most recently read stack-relevant + // RuneType". // // We treat RuneTypeError as a wildcard. // - // The "normal"stack-relevant RuneTypes are: + // The "normal" stack-relevant RuneTypes are: // // "\uABC for strings // -01.2e+3 for numbers @@ -245,7 +245,6 @@ type Parser struct { // // { object: waiting for key to start or '}' // » object: reading key / waiting for colon - // : object: waiting for value to start // o object: reading value / waiting for ',' or '}' // // [ array: waiting for item to start or ']' @@ -266,7 +265,7 @@ type Parser struct { // »" {" // »" {"x // » {"x" - // : {"x": + // ox {"x": // o" {"x":" // o" {"x":"y // o {"x":"y" @@ -274,7 +273,7 @@ type Parser struct { // »" {"x":"y"," // »" {"x":"y","a // » {"x":"y","a" - // : {"x":"y","a": + // ox {"x":"y","a": // o" {"x":"y","a":" // o" {"x":"y","a":"b // o {"x":"y","a":"b" -- cgit v1.2.3-2-g168b