Commit graph

107 commits

Author SHA1 Message Date
Masaaki Goshima
f6e3a46525
Fix comment 2022-01-11 20:43:39 +09:00
Masaaki Goshima
a471550c69
Fix indentState logic for multi-line value 2022-01-11 20:37:31 +09:00
Masaaki Goshima
fe709cd48c Fix parsing of literal with comment 2021-07-19 18:48:09 +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
Masaaki Goshima
560f570250 Fix origin buffer for DocumentHeader and DocumentEnd and Directive 2021-03-01 19:15:44 +09:00
Masaaki Goshima
93e2969397 Fix origin buffer for anchor value 2021-03-01 18:49:34 +09:00
Masaaki Goshima
95509cf791 Fix parsing MergeKey ('<<') characters 2021-03-01 17:32:11 +09: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
David May
918aca63ab fix: force document markers to be at beginning of line 2021-01-18 13:33:07 -06:00
Masaaki Goshima
83af06f0b2 Fix processing of mapping key token 2020-07-02 17:22:04 +09:00
Masaaki Goshima
490240cbf3 Fix processing of mapping value delimiter in flow style 2020-07-02 12:51:30 +09:00
Masaaki Goshima
968a7172a8 Support escape characters in double quoted string 2020-06-20 14:10:17 +09:00
Masaaki Goshima
6071770042 Fix typo 2020-06-17 11:39:08 +09:00
Masaaki Goshima
9565ed166b Fix processing of Literal with NewLineCharacter 2020-06-15 20:16:51 +09:00
Masaaki Goshima
2a15b3d6d1 Fix quoted string with new line character 2020-06-15 17:30:27 +09:00
Masaaki Goshima
1ee2aede3a Fix new line character in string surrounded by double quote 2020-06-02 13:06:46 +09:00
Masaaki Goshima
0c228d5cbc Fix scanning token of number in literal 2020-06-01 12:54:23 +09:00
Masaaki Goshima
c6ffce4dde Fix origin buffer 2020-05-29 18:23:08 +09:00
Masaaki Goshima
abe15e4a1c Fix handling of escape character in quotation 2020-05-29 18:09:51 +09:00
Masaaki Goshima
0204fca738 Fix handling of sequence indicator 2020-03-07 20:17:54 +09:00
Masaaki Goshima
5965e147d2 Fix handling of dash character 2020-03-07 12:03:06 +09:00
Masaaki Goshima
c0dc746a3e Fix release sequence for scanner.Context 2019-12-29 11:47:34 +09:00
Masaaki Goshima
99d949e0cb Revert "Improve performance ( fix Tokenize interface )"
This reverts commit cc226505d0.
2019-12-29 11:37:20 +09:00
Masaaki Goshima
3a9093bd01 Improve performance ( remove strings.TrimLeft from scanner ) 2019-12-29 00:16:35 +09:00
Masaaki Goshima
cc226505d0 Improve performance ( fix Tokenize interface ) 2019-12-28 23:03:53 +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
ea7f31d152 Fix printing logic for token 2019-12-22 17:28:30 +09:00
Masaaki Goshima
0459fbb51e Fix scanner and parser for CR character 2019-12-22 11:59:49 +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
4147f40ae7 Fix handling of literal token include empty line 2019-11-19 18:03:24 +09:00
nasa9084
6db264d96f Comments must be separated from other tokens by white space characters 2019-11-12 19:50:58 +09:00
Songmu
106dca2d2b support CR 2019-11-09 17:20:39 +09:00
Masaaki Goshima
7729266864 Fix parsing of literal token 2019-11-08 16:48:54 +09:00
Masaaki Goshima
208e328951 Include indent to literal token 2019-11-08 01:04:29 +09:00
Masaaki Goshima
c61d2c3981 Refactor condition 2019-11-07 23:54:32 +09:00
Masaaki Goshima
0d1afe3054 Remove not affected code 2019-11-07 23:49:28 +09:00
Masaaki Goshima
62a86c4e5d Fix parsing of literal token 2019-11-07 23:45:39 +09:00
Masaaki Goshima
7bb18bb10a Fix calculating length of multi bytes buffer 2019-11-07 19:16:19 +09:00
Masaaki Goshima
00a1ab9104 Fix handling of quotation character 2019-11-07 18:08:12 +09:00
Masaaki Goshima
41320deceb Fix multi bytes handling 2019-11-07 18:01:45 +09:00
Masaaki Goshima
57e63c374e Fix nested flow style 2019-11-07 13:00:00 +09:00
Masaaki Goshima
aa77b78365 Fix indicator handling 2019-11-06 19:28:47 +09:00
Masaaki Goshima
4a90c16927 Supports decoding for null value 2019-10-30 16:57:59 +09:00
Masaaki Goshima
15aa70adaa Support gopkg.in/go-playground/validator.v9 based validation for YAML document 2019-10-26 10:08:44 +09:00
Masaaki Goshima
a1eb188d2d Remove isMapContext variable 2019-10-25 15:47:02 +09:00
Masaaki Goshima
327a6f39d7 Fix judge whether raw folded value or not 2019-10-25 15:03:08 +09:00
Masaaki Goshima
3882855ddc Fix parser bugs
- double sequence entry
- multiple column based mapping value
2019-10-23 20:22:14 +09:00
Masaaki Goshima
c5db11901c Improve error format
- %v : beautiful syntax error with source code
- %#+v : error with stack trace ( for debugging )
- others : simple syntax error ( without source code )
2019-10-23 03:21:42 +09:00