Masaaki Goshima
f739772fd1
fix flow-mapping-edge-cases ( #621 )
2025-01-18 13:29:55 +09:00
Masaaki Goshima
a37e684cac
Fix parsing of tab characters ( #592 )
...
* fix parsing of tab characters
* fix parsing of tab indent in double-quote
* fix parsing of tab indent in single quote
2024-12-15 01:29:04 +09:00
Masaaki Goshima
68f0bb59fd
Fix parsing of invalid tag character ( #591 )
...
* remove passed test cases
* fix invalid tag
* fix error text
2024-12-14 22:57:55 +09:00
Masaaki Goshima
a692a582ff
Fix parsing of multi line text ( #590 )
...
* fix parser of flow sequence
* support line folded
* update test cases
* refactor
* fix literal-scalars
* remove unnecessary indent state updater
2024-12-14 20:08:27 +09:00
Masaaki Goshima
1aa3b7d87a
fix parsing of literal header option ( #582 )
2024-12-10 00:20:00 +09:00
Masaaki Goshima
6100d5f357
fix plain-url-in-flow-mapping ( #580 )
2024-12-09 22:51:20 +09:00
Masaaki Goshima
438f2d0c37
Fix parsing of directive value ( #578 )
...
* fix directive
* fix tag value handling
* remove passed test cases
* add comment
2024-12-09 18:45:26 +09:00
Masaaki Goshima
264b1671a9
fix parsing of comment ( #576 )
2024-12-07 15:15:18 +09:00
Masaaki Goshima
831423f4c1
fix block-scalar-with-wrong-indented-line-after-spaces-only ( #575 )
2024-12-07 14:37:58 +09:00
Masaaki Goshima
2ab584e0fa
support utf-16 surrogate pair ( #564 )
2024-12-02 11:30:11 +09:00
Masaaki Goshima
bf03d4d7b1
fix escape character in double-quote ( #562 )
2024-12-01 21:26:13 +09:00
Masaaki Goshima
45889c98b0
Fix parser ( #557 )
...
* fix document separator with directive
* fix number value with local tag
* fix decoding string for null value
* fix single pair flow mapping
* fix test case
* fix plain lines with tab indent
* fix test case
* fix sequence with null
* fix test case
* fix invalid map-value
2024-11-30 14:47:52 +09:00
Masaaki Goshima
c5254d7cf4
Fix parser ( #554 )
...
* add "no json" marker
* fix document separator in quote
* fix invalid escape character
* fix parser
2024-11-30 10:16:17 +09:00
Masaaki Goshima
01f4bac35c
Fix parser ( #552 )
...
* fix set tag
* fix seq tag
* fix empty content test
* fix parsing of tab character before end delimiter of double-quote
* fix tab indent in double-quote
* fix tab indent in single-quote
2024-11-28 23:34:45 +09:00
Masaaki Goshima
44b8854472
fix parsing of document header option ( #551 )
2024-11-28 17:36:29 +09:00
Masaaki Goshima
23c9234150
add fuzzing test ( #548 )
2024-11-27 10:48:36 +09:00
Masaaki Goshima
3399084827
Fix parser ( #546 )
...
* fix parser
* fix anchor-for-empty-node
* add test case
2024-11-26 22:41:11 +09:00
Masaaki Goshima
deb129adad
Refactor parser ( #545 )
...
* refactor parser
2024-11-26 11:05:45 +09:00
Masaaki Goshima
ff5d41fe8e
Fix parser by using yaml-test-suite ( #542 )
...
* fix alias in map key
* fix parsing of wrong-indented-sequence-item
* fix parsing of tab character before comment
* fix parsing of white space in quote
* fix parsing of tab character in quote
2024-11-17 23:58:35 +09:00
Masaaki Goshima
d7847dbcfd
fix parsing of tab character in double-quote ( #538 )
2024-11-15 09:29:57 +09:00
Masaaki Goshima
8b2110bca9
fix invalid token error ( #536 )
2024-11-15 00:22:47 +09:00
Masaaki Goshima
43851760c6
Fix parsing of tab character ( #530 )
...
* fix tab character handling
* ignore lint error
2024-11-13 16:21:12 +09:00
Masaaki Goshima
cab43643dc
Fix removeFromRightSpace process at scanner ( #529 )
...
* fix removeFromRightSpace process at scanner
* remove unnecessary path
2024-11-13 13:09:30 +09:00
Masaaki Goshima
a2d04d6cf5
fix parsing of tag ( #526 )
2024-11-12 22:08:26 +09:00
Masaaki Goshima
8808389f8e
fix token offset ( #524 )
2024-11-12 16:44:43 +09:00
Masaaki Goshima
c82f89f6e0
fix parsing of escaped new-line-character or white-space in double quoted text ( #521 )
2024-11-12 00:09:28 +09:00
Masaaki Goshima
8f36c1b309
fix parsing of reserved chars ( #514 )
2024-11-09 20:43:51 +09:00
Masaaki Goshima
6b0c68e62a
Fix parsing of document and string ( #513 )
...
* fix invalid test case
* fix parsing of document
* fix validation
2024-11-09 13:00:12 +09:00
Masaaki Goshima
7edcf34f12
support suffix keyword for document header option ( #506 )
2024-11-05 15:25:58 +09:00
Masaaki Goshima
ab16112f69
support empty sequence value ( #503 )
2024-11-03 14:06:57 +09:00
Masaaki Goshima
8f8d730650
Fix parsing of document ( #501 )
...
* fix parsing of document
2024-11-03 02:11:50 +09:00
Masaaki Goshima
c83be7f5d2
fix folded handling ( #500 )
2024-11-02 20:55:35 +09:00
Masaaki Goshima
9b2c4569e2
fix parsing of invalid document ( #499 )
2024-11-02 19:29:48 +09:00
Masaaki Goshima
9fabf36dfa
Fix parsing of invalid yaml ( #496 )
...
* fix invalid test cases ( use space indent )
* fix parsing of invalid yaml
2024-11-01 15:03:27 +09:00
Masaaki Goshima
975a624ace
fix invalid quoted-text handling ( #495 )
2024-10-31 22:54:26 +09:00
Masaaki Goshima
bbcd692a27
fix handling of invalid sequence ( #492 )
2024-10-31 15:35:43 +09:00
Masaaki Goshima
c9f75fef0c
Reuse context at Scanner ( #487 )
...
* reuse context
* refactor scan function
* remove unused function
2024-10-30 02:18:20 +09:00
Masaaki Goshima
87ddfd1938
returns InvalidToken if scanner encounters error ( #486 )
2024-10-29 20:00:48 +09:00
Masaaki Goshima
548bbc7d4e
Remove xerrors ( #483 )
...
* remove xerrors
* move error variable
* update dependencies
2024-10-28 21:24:15 +09:00
Masaaki Goshima
066e9075aa
refactor scanner ( #482 )
2024-10-28 18:15:16 +09:00
Masaaki Goshima
558921a517
Refactor indent state ( #481 )
...
* refactor indent state
* refactor function position
* remove unnecessary function
2024-10-28 17:07:44 +09:00
Masaaki Goshima
248a29cdd0
Refactor scanner ( #480 )
...
* remove isNeededKeepPreviousIndentNum function
* remove unused branch
* remove prevIndentLevel field
* refactor variable name
2024-10-28 15:59:31 +09:00
Shuhei Kitagawa
8ad318cffc
Add lint job to CI ( #477 )
2024-10-28 11:31:15 +09:00
Mateusz Hawrus
1f84c0cbaf
fix: Correct token.Tokenize double quoted strings with escape sequences handling ( #457 )
...
* fix scan double quote index progression
* fix: Correct root path handling (#2 )
Ref: https://github.com/goccy/go-yaml/pull/456
2024-07-16 19:30:20 +09:00
Matt Leader
56a6b5465b
trim right spaces before adding carriage return or linefeed ( #462 )
...
Signed-off-by: Matthew F Leader <mleader@redhat.com>
Co-authored-by: Webb Scales <wscales@redhat.com>
2024-07-16 19:17:13 +09:00
Ken’ichiro Oyama
6a080f2015
Handle \r in a double-quoted string the same as \n ( #372 )
...
* Add tests for string containing `\n` or `\r`
* Handle `\r` in a double-quoted string the same as `\n`
Fix https://github.com/goccy/go-yaml/issues/371
2023-05-24 17:12:33 +09:00
Masaaki Goshima
15640065c7
Fix comment option ( #349 )
2023-03-01 16:59:07 +09:00
Dan Kortschak
13b070acdc
scanner: fix position calculation for literal, folded and raw folded strings ( #330 )
2022-12-19 14:34:56 +09:00
Masaaki Goshima
6a9ddb5172
care whitespace
2022-12-02 17:03:39 +09:00
Masaaki Goshima
db6dd54aaa
Fix handling of quoted map key
2022-12-02 04:02:53 +09:00