diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2010-12-05 00:45:11 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2010-12-05 00:45:11 +0100 |
| commit | f7d1468cc0fe4237b702252f9bbaae5ba61b6bfd (patch) | |
| tree | b2f2417a552d0c9385997a042417afdab81c7391 /src/parser/document_p.h | |
| parent | dc0ac72c987ec48c6b2a90d0056b4e79a3be092b (diff) | |
Bug inside the inline code text rule fixed.
It turned out that the inline code text rule was not honoring the
verbatim constraint either. This issue is now solved.
Also, I made the text_p parser more flexible by adding an inherited
attribute to it.
Diffstat (limited to 'src/parser/document_p.h')
| -rw-r--r-- | src/parser/document_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/document_p.h b/src/parser/document_p.h index fc6530e..d2a7c44 100644 --- a/src/parser/document_p.h +++ b/src/parser/document_p.h @@ -15,8 +15,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _MPPDOWN_DOCUMENT_P #define _MPPDOWN_DOCUMENT_P +#include <boost/spirit/include/qi.hpp> #include "text_p.h" +namespace qi = boost::spirit::qi; +namespace ph = boost::phoenix; + struct document_p : qi::grammar<iiterator, document_t()> { qi::rule<iiterator, document_t()> document_; text_p text_; |
