Commit graph

34 commits

Author SHA1 Message Date
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
831423f4c1
fix block-scalar-with-wrong-indented-line-after-spaces-only (#575) 2024-12-07 14:37:58 +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
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
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
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
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
29b57b4cc6
fix trailing new line chars handling (#507) 2024-11-06 12:48:45 +09:00
Masaaki Goshima
7edcf34f12
support suffix keyword for document header option (#506) 2024-11-05 15:25:58 +09:00
Masaaki Goshima
8f8d730650
Fix parsing of document (#501)
* fix parsing of document
2024-11-03 02:11:50 +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
Semih Buyukgungor
c7e80a3d3e
Fix incorrect colon indicator scanning (#485)
* fix isNextEOS method in scanner context

* adding unit test
2024-10-29 00:59:54 +09:00
Shuhei Kitagawa
8ad318cffc
Add lint job to CI (#477) 2024-10-28 11:31:15 +09:00
Kenta Mori
31fe1baace
fix: remove any trailing empty lines if the block scalar has strip indicator (#421) 2024-01-26 16:45:04 +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
Masaaki Goshima
937c1674ec
Fix resusing process of scanning context 2022-11-14 19:19:25 +09:00
Masaaki Goshima
62e9a8dfee Fix handling of tab character at right position 2020-06-17 11:38:36 +09:00
Masaaki Goshima
0c228d5cbc Fix scanning token of number in literal 2020-06-01 12:54:23 +09:00
Masaaki Goshima
5a1231fc47 Improve performance ( fix bufferedSrc interface ) 2019-12-28 22:37:50 +09:00
Masaaki Goshima
0051e82e81 Improve performance
- reuse context instance
- remove strings.TrimLeft and strings.TrimRight
2019-12-28 22:20:45 +09:00
Masaaki Goshima
8f13c01463 Remove unnecessary spaces at right side 2019-12-11 17:17:05 +09:00
Masaaki Goshima
dd6a892902 Fix parsing error of document like a: 1 - 4 2019-12-04 23:58:06 +09:00
Masaaki Goshima
7729266864 Fix parsing of literal token 2019-11-08 16:48:54 +09:00
Masaaki Goshima
62a86c4e5d Fix parsing of literal token 2019-11-07 23:45:39 +09:00
Masaaki Goshima
41320deceb Fix multi bytes handling 2019-11-07 18:01:45 +09:00
Masaaki Goshima
a5c9b0d532 Support multi bytes encoding/decoding 2019-11-07 17:18:17 +09:00
Masaaki Goshima
4a90c16927 Supports decoding for null value 2019-10-30 16:57:59 +09:00
Masaaki Goshima
293ee9861c Add document 2019-10-21 12:53:30 +09:00
Masaaki Goshima
010d1a7670 Add scanner package 2019-10-16 18:19:48 +09:00