Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Fix #345 #403

Merged
merged 1 commit into from
Sep 1, 2016
Merged

Fix #345 #403

merged 1 commit into from
Sep 1, 2016

Conversation

klokane
Copy link
Contributor

@klokane klokane commented Sep 1, 2016

MSON aligned parameter parser trips up when inline description contains round brackets

@@ -403,6 +403,32 @@ namespace snowcrash {
}
}

static size_t matchBracket(const mdp::ByteBuffer& text) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There should already be a function like this somewhere in snowcrash. We can use that.

Copy link
Member

Choose a reason for hiding this comment

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

I think this function? Not sure if it does the same thing though.

https://github.com/apiaryio/snowcrash/blob/master/src/SignatureSectionProcessor.h#L363

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, that one. It has more logic for matching brackets, and we can use the output here to get the last bracket pos. So, it should be okay to use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adressed

MSON aligned parameter parser trips up when inline description contains round brackets
@pksunkara pksunkara merged commit 2457827 into master Sep 1, 2016
@pksunkara pksunkara deleted the klokane/fix-345 branch September 1, 2016 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants