Masaaki Goshima
3b6beba689
fix flow sequence with map ( #620 )
2025-01-18 00:34:00 +09:00
Lars Stegman
1c32d1422e
fix(parser): inconsistent paths between single-line MappingKeyValueNode and multi-line ( #612 )
2025-01-16 19:04:13 +09:00
Masaaki Goshima
d92bedc705
add playground ( #611 )
2025-01-10 19:07:29 +09:00
Masaaki Goshima
e2e4400472
fix sequence value for merge key ( #603 )
2024-12-22 19:43:53 +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
ed74344538
Fix node-anchor-not-indented ( #584 )
...
* fix node-anchor-not-indented
* add validation for sequence value
2024-12-10 11:09:36 +09:00
Masaaki Goshima
6b33533f9e
fix scalar-value-with-two-anchors ( #581 )
2024-12-09 23:55:46 +09:00
Masaaki Goshima
0e95011a5d
Fix parsing of multiline mapping key ( #579 )
...
* fix multiline mapping key
* remove passed test cases
* add boundary checking
2024-12-09 22:14:28 +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
783b85ce87
Fix unknown secondary tag behavior ( #572 )
...
* fix unknown secondary tag behavior
* fix test case
2024-12-05 23:04:31 +09:00
Charith Ellawala
5d22eed000
Fix panic when parsing unattached comment ( #565 )
...
* Fix panic when parsing unattached comment
---------
Signed-off-by: Charith Ellawala <charith@cerbos.dev>
2024-12-02 23:45:19 +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
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
69159b35ce
clear pathMap keys ( #539 )
2024-11-15 19:00:51 +09:00
Masaaki Goshima
8b2110bca9
fix invalid token error ( #536 )
2024-11-15 00:22:47 +09:00
Masaaki Goshima
2c6a0e723d
fix comment position of map node has multiple values ( #532 )
2024-11-13 19:45:38 +09:00
Masaaki Goshima
9c6665c9b4
support to disallow duplicate map key at parsing ( #531 )
2024-11-13 18:29:20 +09:00
Masaaki Goshima
cb4e1b0610
Support local tag and boolean tag ( #527 )
...
* support local tag and boolean tag
* add test case
2024-11-13 00:40:31 +09:00
Masaaki Goshima
a2d04d6cf5
fix parsing of tag ( #526 )
2024-11-12 22:08:26 +09:00
Masaaki Goshima
3fa49bfdb5
fix validation of map at flow mode ( #523 )
2024-11-12 10:39:52 +09:00
Masaaki Goshima
7e833a2d40
fix parsing of invalid map key ( #520 )
2024-11-11 21:37:43 +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
97070fb2f1
fix parsing of flow mapping ( #505 )
2024-11-05 13:28:23 +09:00
Masaaki Goshima
2e63415e81
fix invalid map token ( #504 )
2024-11-03 21:32:51 +09:00
Masaaki Goshima
ab16112f69
support empty sequence value ( #503 )
2024-11-03 14:06:57 +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
ad223ff817
improve parser performance ( #494 )
2024-10-31 18:26:08 +09:00
Masaaki Goshima
3788afc6f6
fix invalid sequence at map context ( #493 )
2024-10-31 16:05:37 +09:00
Masaaki Goshima
bbcd692a27
fix handling of invalid sequence ( #492 )
2024-10-31 15:35:43 +09:00
Masaaki Goshima
af5147b14c
fix implicit null value before collect entry ( #490 )
2024-10-30 19:48:44 +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
Shuhei Kitagawa
8ad318cffc
Add lint job to CI ( #477 )
2024-10-28 11:31:15 +09:00
Chongyi Zheng
4653a1bb5c
Replace deprecated io/ioutil ( #429 )
2024-02-26 15:11:21 +09:00
Masaaki Goshima
957e9d7f32
Fix sequence with comment ( #390 )
2023-09-15 12:11:17 +09:00
Masaaki Goshima
264dc0f761
Fix comment parsing with null value ( #388 )
2023-09-14 12:25:21 +09:00
Masaaki Goshima
15640065c7
Fix comment option ( #349 )
2023-03-01 16:59:07 +09:00
itchyny
f7e91246a5
Introduce MapKeyNode interface to limit node types for map key
2022-08-18 16:16:40 +09:00
Taylor Thornton
0bb11a74cc
Handle empty sequence entries
...
- adds a nil check for tk, and returns a syntax error if nil is found
- adds a test verifying fix
Signed-off-by: Taylor Thornton <thornton.tn@gmail.com>
2021-12-07 17:06:18 -08:00
Masaaki Goshima
f62c2f2941
Fix parser for path
2021-09-07 19:27:40 +09:00
Masaaki Goshima
afed407e01
Support getting YAMLPath from ast.Node
2021-09-07 17:31:17 +09:00
Masaaki Goshima
fe709cd48c
Fix parsing of literal with comment
2021-07-19 18:48:09 +09:00
Masaaki Goshima
30e4ba7210
Support encoding of comment node
2021-07-16 21:49:17 +09:00
Matthew Steffen
f6baeac88c
Add error for unterminated flow mapping node
2021-03-04 12:06:00 -08:00
Masaaki Goshima
230b8518fd
Fix syntax error about map value
2021-03-01 17:58:17 +09:00