Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colon syntax for directive options. #50

Merged
merged 5 commits into from Feb 19, 2020
Merged

Conversation

chrisjsewell
Copy link
Member

Also add error reporting for YAML block parsing.

self.current_node += [msg_node]
return
# TODO check options are an un-nested dict / json serialize ?
elif content.startswith(":"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we lstrip here and in the while loop? I believe @jstac said he'd imagine indenting the : lines

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOW you come in and review, after I removed the review restriction and went ahead and merged this PR 😆 Yeh this makes sense, especially in case the directives are nested, probably also need to handle indentations in the --- YAML blocks.
If you could add an issue for it or make a new PR ta.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HAH I knew you were gonna say that ;-)

I'll make it a PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI I’ve added #54, so a PR would close that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants