Individual array elements could be included from external files prior to this by formatting the original file like so:
array:
-
$include: el0.yml
-
$include: el1.yml
A prettier format like the following would effectively be a no-op b/c the regex for matching the $include tag only allowed for it to be prefixed by white space:
array:
- $include: el0.yml
- $include: el1.yml
This change updates the regex to also allow for the include tag to be prefixed by '-', which allows for the nicer format above to work.
Individual array elements could be included from external files prior to this by formatting the original file like so:
A prettier format like the following would effectively be a no-op b/c the regex for matching the $include tag only allowed for it to be prefixed by white space:
This change updates the regex to also allow for the include tag to be prefixed by '-', which allows for the nicer format above to work.