Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59742 - trunk/boost/spirit/home/qi/nonterminal
From: joel_at_[hidden]
Date: 2010-02-17 16:47:55


Author: djowel
Date: 2010-02-17 16:47:54 EST (Wed, 17 Feb 2010)
New Revision: 59742
URL: http://svn.boost.org/trac/boost/changeset/59742

Log:
fixed missing pre-skip in other parse branch
Text files modified:
   trunk/boost/spirit/home/qi/nonterminal/rule.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/qi/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/rule.hpp 2010-02-17 16:47:54 EST (Wed, 17 Feb 2010)
@@ -262,10 +262,12 @@
           , Context& caller_context, Skipper const& skipper
           , Attribute& attr, Params const& params) const
         {
- //$$$ do a preskip if this is an implied lexeme $$$
-
             if (f)
             {
+ // do a preskip if this is an implied lexeme
+ if (is_same<skipper_type, unused_type>::value)
+ qi::skip_over(first, last, skipper);
+
                 typedef traits::make_attribute<attr_type, Attribute> make_attribute;
 
                 // do down-stream transformation, provides attribute for


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