Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86686 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2013-11-13 16:48:40


Author: danieljames
Date: 2013-11-13 16:48:40 EST (Wed, 13 Nov 2013)
New Revision: 86686
URL: http://svn.boost.org/trac/boost/changeset/86686

Log:
Save values when parsing attribute value.

Needed in case there's any nested uses of values.

Text files modified:
   trunk/tools/quickbook/src/main_grammar.cpp | 36 +++++++++++++++++++-----------------
   1 files changed, 19 insertions(+), 17 deletions(-)

Modified: trunk/tools/quickbook/src/main_grammar.cpp
==============================================================================
--- trunk/tools/quickbook/src/main_grammar.cpp Wed Nov 13 16:48:18 2013 (r86685)
+++ trunk/tools/quickbook/src/main_grammar.cpp 2013-11-13 16:48:40 EST (Wed, 13 Nov 2013) (r86686)
@@ -972,24 +972,26 @@
 
 
         attribute_value_1_7 =
- +( ~cl::eps_p(']' | cl::space_p | comment)
- >> ( cl::eps_p
- ( cl::ch_p('[')
- >> space
- >> ( cl::eps_p(cl::punct_p)
- >> elements
- | elements
- >> (cl::eps_p - (cl::alnum_p | '_'))
- )
- ) [error("Elements not allowed in attribute values.")]
- >> local.square_brackets
- | local.attribute_template
- | cl::eps_p(cl::ch_p('[')) [error("Unmatched template in attribute value.")]
- >> local.square_brackets
- | raw_escape
- | cl::anychar_p [raw_char]
+ state.values.save() [
+ +( ~cl::eps_p(']' | cl::space_p | comment)
+ >> ( cl::eps_p
+ ( cl::ch_p('[')
+ >> space
+ >> ( cl::eps_p(cl::punct_p)
+ >> elements
+ | elements
+ >> (cl::eps_p - (cl::alnum_p | '_'))
+ )
+ ) [error("Elements not allowed in attribute values.")]
+ >> local.square_brackets
+ | local.attribute_template
+ | cl::eps_p(cl::ch_p('['))[error("Unmatched template in attribute value.")]
+ >> local.square_brackets
+ | raw_escape
+ | cl::anychar_p [raw_char]
+ )
                 )
- )
+ ]
             ;
 
         //


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk