Skip to content

Commit

Permalink
Fix parse double quoted scalar (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpodsiad authored and Kamil Podsiadlo committed Oct 21, 2021
1 parent 1a02666 commit 5cc4836
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ private[yaml] class Scanner(str: String) extends Tokenizer {
in.skipN(2)
sb.append("\"")
readScalar()
case Some('"') | None =>
case Some('"') =>
in.skipCharacter()
sb.result()
case Some(char) =>
sb.append(in.read())
readScalar()
case None =>
sb.result()

val pos = in.pos
in.skipCharacter() // skip double quote
Expand Down

0 comments on commit 5cc4836

Please # to comment.