@@ -122,6 +122,24 @@ describe('block collections', () => {
122
122
}
123
123
] )
124
124
} )
125
+
126
+ test ( 'key after long comment on empty value (eemeli/yaml#413)' , ( ) => {
127
+ const doc = YAML . parseDocument ( source `
128
+ one:
129
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
130
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
131
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
132
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
133
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
134
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
135
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
136
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
137
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
138
+ # large block of text, large block of text, large block of text, large block of text, large block of text,
139
+ two: b
140
+ ` )
141
+ expect ( doc . errors ) . toMatchObject ( [ ] )
142
+ } )
125
143
} )
126
144
127
145
describe ( 'flow collections' , ( ) => {
0 commit comments