From f7d1468cc0fe4237b702252f9bbaae5ba61b6bfd Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Dec 2010 00:45:11 +0100 Subject: 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. --- src/parser/text_p.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/parser/text_p.h') diff --git a/src/parser/text_p.h b/src/parser/text_p.h index 83ef54f..3b99ab2 100644 --- a/src/parser/text_p.h +++ b/src/parser/text_p.h @@ -21,13 +21,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "../elements.h" namespace qi = boost::spirit::qi; +namespace ph = boost::phoenix; -struct text_p : qi::grammar { - qi::rule text_; - qi::rule stext_; - qi::rule ptext_; +struct text_p : qi::grammar { + qi::rule text_; + qi::rule stext_; + qi::rule ptext_; qi::rule echar_; - qi::rule rchar_; + qi::rule rchar_; text_p(); }; -- cgit v1.2.3-70-g09d2