Commit graph

31 commits

Author SHA1 Message Date
Shuhei Kitagawa
0c41d8e83c
Fix code format (#594)
* Fix code format

* Remove unnecessary nolint
2024-12-18 17:32:13 +09:00
Masaaki Goshima
2ab584e0fa
support utf-16 surrogate pair (#564) 2024-12-02 11:30:11 +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
44b8854472
fix parsing of document header option (#551) 2024-11-28 17:36:29 +09:00
Masaaki Goshima
d7847dbcfd
fix parsing of tab character in double-quote (#538) 2024-11-15 09:29:57 +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
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
46a94fdd60
fix number parsing (#511) 2024-11-06 17:25:05 +09:00
Masaaki Goshima
0faee16367
fix number parsing (#509) 2024-11-06 16:00:36 +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
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
61505f3849
fix parsing of number (#498) 2024-11-02 18:44:43 +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
950afad7c7
support recursive anchor (#489) 2024-10-30 19:25:18 +09:00
Masaaki Goshima
87ddfd1938
returns InvalidToken if scanner encounters error (#486) 2024-10-29 20:00:48 +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
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
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
045101dc5f
add test cases 2022-12-02 03:56:31 +09:00
Randy Spruyt
62144fb42e Fixing Issue 186, scanner should account for newline characters when processing multi-line text. Without this source annotations line/column number (for this and all subsequent tokens) is inconsistent with plain text editors. e.g. https://github.com/goccy/go-yaml/issues/186. This addresses the issue specifically for single and double quote text only. 2021-03-01 15:09:40 +00:00
Randy Spruyt
69b2b76958 swapped got and expected by accident 2021-02-19 19:34:18 +00:00
Randy Spruyt
4c25e91ad4 Fixing Issue 185, incorrect column annotation when single or double quotes are used 2021-02-18 21:18:38 +00:00
Masaaki Goshima
293ee9861c Add document 2019-10-21 12:53:30 +09:00
Masaaki Goshima
7affdef701 Add lexer package 2019-10-16 18:20:46 +09:00