Shuhei Kitagawa
f1c23f747b
Fix misaligned indentation in comments ( #734 )
2025-05-29 13:34:24 +09:00
Masaaki Goshima
500180b7b7
support implicit null ( #727 )
2025-05-08 23:26:21 +09:00
Masaaki Goshima
0203d69117
ignore validation for alias map key ( #720 )
2025-05-07 12:35:59 +09:00
Masaaki Goshima
55ca11205f
add nil checking for error handling ( #719 )
2025-05-06 23:49:22 +09:00
Masaaki Goshima
100fa23cbc
Fix tab character handling ( if ignore the tab character, do not increment the column number ) ( #676 )
...
* if ignore the tab character, do not increment the column number
* apply `npm audit fix`
* fix lint error
2025-03-16 13:53:02 +09:00
Semih Buyukgungor
3992548fbe
Fix string representation of MappingNode in flow style ( #623 )
...
* add IsFlowStyle field to MappingValueNode
* add test for flow style parsing in parser
* fix indentation of IsFlowStyle field in MappingValueNode struct
---------
Co-authored-by: Masaaki Goshima <goccy54@gmail.com>
2025-02-12 14:21:11 +09:00
hbc
6f80c5700f
fix: empty document should not panic on String() ( #630 )
...
fixes #629
2025-01-31 09:56:28 +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
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
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
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
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
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
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
8f8d730650
Fix parsing of document ( #501 )
...
* fix parsing of document
2024-11-03 02:11:50 +09:00
Masaaki Goshima
9b2c4569e2
fix parsing of invalid document ( #499 )
2024-11-02 19:29:48 +09:00
Masaaki Goshima
61505f3849
fix parsing of number ( #498 )
2024-11-02 18:44:43 +09:00
Matthew Warman
8713f53d13
feat: preserve line breaks from original input ( #412 )
...
* feat: preserve line breaks from original input
* docs: fix spelling error in comment
---------
Co-authored-by: Hilmar Falkenberg <hilmar.falkenberg@sap.com>
2024-11-02 14:24:28 +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
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
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
Masaaki Goshima
558921a517
Refactor indent state ( #481 )
...
* refactor indent state
* refactor function position
* remove unnecessary function
2024-10-28 17:07:44 +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
Masaaki Goshima
957e9d7f32
Fix sequence with comment ( #390 )
2023-09-15 12:11:17 +09:00
WillAbides
4df89231ed
Fix quoted comments ( #370 )
...
* Make path filtering work with quotes
2023-09-15 11:33:31 +09:00
Masaaki Goshima
264dc0f761
Fix comment parsing with null value ( #388 )
2023-09-14 12:25:21 +09:00
Kurochan
dc3fed8f0b
ast: append new line at the end of file ( #329 )
2022-12-08 22:48:12 +09:00
Masaaki Goshima
045101dc5f
add test cases
2022-12-02 03:56:31 +09:00
Masaaki Goshima
a471550c69
Fix indentState logic for multi-line value
2022-01-11 20:37:31 +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
99b4a891f6
Consider special characters for the YAMLPath
2021-09-07 19:44:06 +09:00