testcase:
# block layout
# not captured
foo: # comment here
bar:
- 123 # another comment
flow: # another comment
indexing:
- abc
- def
# comment doesn't interfere with indexing
- ghi
queries:
- query:
expected: " foo: # comment here\n bar:\n - 123 # another comment"
- query:
# TODO: ideally would be "- 123 # another comment"
expected: "123"
- query:
# TODO: ideally would be "flow: [1, 2, 3] # another comment"
expected: " flow: [1, 2, 3]"
- query:
expected: "ghi"