forked from goccy/go-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid truncating last char from folded strings
As described in goccy#433, if the last character of a folded string is the very last character in the file (no trailing whitespace), it's not included the token's `Value`. While fixing this, I also noticed that the column information for the folded and literal strings were the end rather than the beginning. I've (hopefully) fixed that as well. Fixes goccy#433 Signed-off-by: Charith Ellawala <[email protected]>
- Loading branch information
Showing
2 changed files
with
62 additions
and
4 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