-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse new lines for plain scalar style (#66)
* Parse new lines for plain scalar style
- Loading branch information
Showing
4 changed files
with
107 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
yaml/shared/src/main/scala/org/virtuslab/yaml/internal/load/reader/ReaderState.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package org.virtuslab.yaml.internal.load.reader | ||
|
||
sealed trait ReaderState | ||
sealed trait ReaderState: | ||
def indent: Int | ||
|
||
case object ReaderState: | ||
case object Stream extends ReaderState | ||
case object Document extends ReaderState | ||
final case class Mapping(indent: Int) extends ReaderState | ||
final case class Sequence(indent: Int) extends ReaderState | ||
case object FlowMapping extends ReaderState | ||
case object FlowSequence extends ReaderState | ||
final case class Document(indent: Int) extends ReaderState | ||
final case class Mapping(indent: Int) extends ReaderState | ||
final case class Sequence(indent: Int) extends ReaderState | ||
final case class FlowMapping(indent: Int) extends ReaderState | ||
final case class FlowSequence(indent: Int) extends ReaderState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters