Commit graph

37 commits

Author SHA1 Message Date
Masaaki Goshima
7d56fe29f3
support merge tag (#597) 2024-12-18 10:32:00 +09:00
Shuhei Kitagawa
61bc6c1078
Quote the numbers even if they are out of range (#593)
* Quote the numbers even if they are out of range

https://github.com/goccy/go-yaml/issues/586

* Keep the original interface of the ToNumber function
2024-12-16 18:53:32 +09:00
Shuhei Kitagawa
83d3e55c24
Fix quotation for timestamps (#515)
Co-authored-by: shuheiktgw <s-kitagawa@mercari.com>
2024-12-12 18:05:46 +09:00
nekrassov01
b5ac9c4faa
fix typo in CharacterType (#585) 2024-12-10 14:55:07 +09:00
Masaaki Goshima
8b2110bca9
fix invalid token error (#536) 2024-11-15 00:22:47 +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
8808389f8e
fix token offset (#524) 2024-11-12 16:44:43 +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
87ddfd1938
returns InvalidToken if scanner encounters error (#486) 2024-10-29 20:00:48 +09:00
Denis
e77cb4d27a
Fix "null" string encoded as nil (#474) 2024-10-28 11:34:02 +09:00
Ken’ichiro Oyama
237df0ef1c
Quote is required even if it begins with backquote. (#440) 2024-07-16 19:39:25 +09:00
ozraru
680ea24289
Fix handle of space at start or last (#376) 2023-09-14 12:36:25 +09:00
David Fernandez
9a80dbc79c
fix: quote strings starting with @ (#339) 2023-03-28 17:59:34 +09:00
Yusuke Kuoka
f3319d6c80
Quote YAML 1.1 bools at encoding time for compatibility with other legacy parsers (#354) 2023-03-14 15:24:34 +09:00
chanxuehong
3e2e2952a2 fix incorrect const type 2022-02-22 16:56:31 +08:00
Masaaki Goshima
560f570250 Fix origin buffer for DocumentHeader and DocumentEnd and Directive 2021-03-01 19:15:44 +09:00
Masaaki Goshima
34ea53181d Fix encoding for quoted string 2020-08-27 16:35:41 +09:00
Masaaki Goshima
c676671f44 Fix ReservedTagKeyword type 2020-07-02 17:24:04 +09:00
Masaaki Goshima
75a8a011db Fix processing of PrintErrorToken ( clone token.Token )
reason: Currently, PrintErrorToken make disruptive changes token.Token
2020-06-12 15:37:31 +09:00
Masaaki Goshima
0c228d5cbc Fix scanning token of number in literal 2020-06-01 12:54:23 +09:00
k1LoW
64a69e039b Add notes 2020-02-17 22:47:53 +09:00
k1LoW
dfe5307ffe tiny fix 2020-02-17 22:00:01 +09:00
k1LoW
d2828e4ada Detect line break character in only string scope. 2020-02-17 21:14:54 +09:00
k1LoW
03f0e2137f Add support for multi-line string encoding 2020-02-16 16:10:19 +09:00
Masaaki Goshima
fb3d36bf34 Supports append column number to child nodes recursively 2019-12-12 17:33:15 +09:00
Masaaki Goshima
84a105a3ba Add timestamp tag 2019-11-01 14:22:06 +09:00
Masaaki Goshima
2d0dbde454 Fix reserved keywords 2019-10-31 17:23:56 +09:00
Masaaki Goshima
4a90c16927 Supports decoding for null value 2019-10-30 16:57:59 +09:00
Masaaki Goshima
8f10a4bd41 Supports overflow at type conversion 2019-10-29 19:46:55 +09:00
Masaaki Goshima
8475c5e180 Supports binary/octet/hex number literal 2019-10-29 19:08:02 +09:00
Masaaki Goshima
293ee9861c Add document 2019-10-21 12:53:30 +09:00
Masaaki Goshima
5e018028b7 Add document for token package 2019-10-21 02:26:45 +09:00
Masaaki Goshima
4425c92abc Improve coverage for token package 2019-10-21 01:12:02 +09:00
Masaaki Goshima
dce0f43e97 Add Encoder API 2019-10-19 18:29:27 +09:00
Masaaki Goshima
21296931d3 Add ycat command as example lexer and printer 2019-10-17 01:58:26 +09:00
Masaaki Goshima
df57b06aa0 Add token package 2019-10-16 18:19:15 +09:00