Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66637 - trunk/boost/spirit/home/lex/lexer/lexertl
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-18 11:26:07


Author: hkaiser
Date: 2010-11-18 11:26:06 EST (Thu, 18 Nov 2010)
New Revision: 66637
URL: http://svn.boost.org/trac/boost/changeset/66637

Log:
Spirit: yet another fix for the "*" all-states functionality
Text files modified:
   trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp 2010-11-18 11:26:06 EST (Thu, 18 Nov 2010)
@@ -221,6 +221,8 @@
         {
             add_state(state);
             initialized_dfa_ = false;
+ if (state == all_states())
+ return rules_.add(state, detail::escape(tokendef), token_id, rules_.dot());
             return rules_.add(state, detail::escape(tokendef), token_id, state);
         }
         std::size_t add_token(char_type const* state, string_type const& tokendef,


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