Closed canatella closed 11 months ago
The specification says as below.
ns-ns-document-header | ::= | ns-ns-document-start( s-char+ c-ns-directive )*
Shouldn't we consider directives?
Ah yes, didn't catch that. I'll update using "^---\\([ \t].*\\)\n"
Alright, updated the PR, tested against
---
--- %YAML:1.0
...
outside document
--- %YAML:1.0 %FOO:BAR
--- %YAML:1.0 %FOO:BAR
I have some YAML files which supports multiple documents.
Emacs support navigating between page using
C-x [
andC-x ]
which maps tobackward-page
andforward-page
. This commit setspage-delimiter
to the YAML document delimiter---
to map Emacs notion of page to YAML documents.