Skip to content

Support "commenting out" / ignoring nodes easily #198

Description

@ingydotnet

It should be possible to ignore any given node (or mapping pair) with a minimal change in the file.

I think a tag is likely the way to go. Something like !X maybe.
The std comment function returns nil which is not the same as ignoring.

Uses I can see right away:

  • Ignore a mapping pair.
  • Ignore a sequence entry
  • Ignore remaining pairs in mapping
  • Ignore remaining entries in sequence
  • Ignore the next n pairs or entries
  • Ignore an entire document in a multi-doc stream

Idea inspired by yaml/yaml-spec#330

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions