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

Adds multiline modifier support #9

Merged
merged 1 commit into from
Dec 6, 2014

Conversation

agjohnson
Copy link
Contributor

The KSS spec is vague on multiline support, but the ruby and node KSS implementations both support multiline modifier statements. I've opened see kneath/kss#105 to address multiline support in the spec. This adds multiline modifier support and required tests to pykss.

This changes the section parsing, adding state to track if a modifier block is being parsed still. If a modifier block has already begun, and a multiline statement match occurs, append to the last modifier description. If the modifier block ends, unmatched content still goes into the description.

seanbrant added a commit that referenced this pull request Dec 6, 2014
@seanbrant seanbrant merged commit a5263b5 into seanbrant:master Dec 6, 2014
@seanbrant
Copy link
Owner

Thanks 👍

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.

2 participants