-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Parse indented newlines correctly
Fixes the case where an indented newline causes invalid parse results. Consider the following input where the second line contains an indented new line. ```yaml a:·b␊ ···␊ c:·d␊ ``` Before this fix, the parser produces the following: ```yaml a: null b c: d ``` With this fix, the output is as expected. ```yaml a: b c: d ``` Signed-off-by: Charith Ellawala <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# The line following a:b has 3 spaces | ||
a: b | ||
|
||
c: d |
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