File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,15 @@ const (
4141
4242const (
4343 // byte representations of string literals
44- tab = 9 // ( )
45- newLine = 10 // (\n)
46- space = 32 // ( )
47- quote = 34 // ("")
48- star = 42 // (*)
49- fwdSlash = 47 // (/)
50- bkdSlash = 92 // (\)
51- charN = 110 // (n)
44+ tab = 9 // ( )
45+ newLine = 10 // (\n)
46+ newLineFMT = 13 // (\n)
47+ space = 32 // ( )
48+ quote = 34 // ("")
49+ star = 42 // (*)
50+ fwdSlash = 47 // (/)
51+ bkdSlash = 92 // (\)
52+ charN = 110 // (n)
5253)
5354
5455var (
@@ -82,7 +83,7 @@ func decode(p []byte, c *comment) int {
8283 }
8384
8485 // TODO: formatting can be preserved by allowing space and tab in JSON
85- if s == space || s == tab || s == newLine {
86+ if s == space || s == tab || s == newLine || s == newLineFMT {
8687 continue
8788 }
8889
You can’t perform that action at this time.
0 commit comments