Files
test-repo/tests/yaml_block_folded/__snapshots__/jsfmt.spec.js.snap
T
Ika dcf44ffbdc feat: support YAML (#4563)
* feat: support YAML

* fix: do not indent sequence in mappingValue

* docs: add yaml to index.md

* fix: reduce `SyntaxError: Node#parse consumed no characters`

* chore: remove old-build and new-worker.js

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fix: no space after `<<`

* fix: add yaml to standalone test

* test: add tests

* fix: next empty line in flow collection

* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/

* fix: update parser

* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id

* chore: fix node 4

* chore: add tools_yaml.svg

* chore: remove resolved TODO

* refactor: remove unnecessary workaround

* chore(worker): importScriptOnce

* chore(build): rename with babelPlugins

* make it rollup compatible

* feat: support singleQuote

* refactor
2018-06-21 10:29:42 +08:00

329 lines
3.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`clip.yml 1`] = `
>
123
456
789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
123 456 789
`;
exports[`indent.yml 1`] = `
>2-
123
456
789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>2-
123
456
789
`;
exports[`keep.yml 1`] = `
>+
123
456
789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>+
123 456 789
`;
exports[`map.yml 1`] = `
a: >
123
456
789
b: >1
123
456
789
d: >
123
456
789
c: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a: >
123 456 789
b: >1
123
456
789
d: >
123 456 789
c: 0
`;
exports[`middle-comment.yml 1`] = `
!!str #comment
>
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!str #comment
>
123
`;
exports[`middle-comments.yml 1`] = `
!!str # comment 1
# comment 2
>
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!str
# comment 1
# comment 2
>
123
`;
exports[`newline.yml 1`] = `
- >+
123
456
789
123
456
789
123
456
789
- >2+
123
456
789
123
456
789
123
456
789
- 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >+
123 456 789
123 456 789
123 456 789
- >2+
123 456 789
123 456 789
123 456 789
- 0
`;
exports[`newline-unaligned.yml 1`] = `
>
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
1 2
3
4
5 6
1 2
3
4
5 6
1 2
3
4
5 6
1 2
3
4
5 6
`;
exports[`props.yml 1`] = `
!!str &anchor >
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!str &anchor >
123
`;
exports[`props-in-map.yml 1`] = `
a: !!str &anchor >
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a: !!str &anchor >
123
`;
exports[`prose.yml 1`] = `
>
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
---
>
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
123 456 789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
123 456 789 123 456 789 123 456 789 123 456 789 123 456 789 123 456 789 123
456 789 123 456 789 123 456 789 123 456 789 123 456 789 123 456 789 123 456
789 123 456 789 123 456 789 123 456 789 123 456 789 123 456 789 123 456 789
...
>
123 456 789 123 456 789 123 456 789 123 456 789
123 456 789 123 456 789 123 456 789 123 456 789
123 456 789 123 456 789 123 456 789 123 456 789
123 456 789 123 456 789 123 456 789 123 456 789
123 456 789 123 456 789 123 456 789
`;
exports[`seq.yml 1`] = `
- >
123
456
789
- >1
123
456
789
- 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >
123 456 789
- >1
123
456
789
- 0
`;
exports[`strip.yml 1`] = `
>-
123
456
789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>-
123 456 789
`;
exports[`trailing-comment.yml 1`] = `
a: !!str > # hello
hello
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a: !!str > # hello
hello
`;