Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55920 - trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser
From: jamin.hanson_at_[hidden]
Date: 2009-08-31 11:17:46


Author: ben_hanson
Date: 2009-08-31 11:17:45 EDT (Mon, 31 Aug 2009)
New Revision: 55920
URL: http://svn.boost.org/trac/boost/changeset/55920

Log:
Bug fix for bol/eol flag setting.
Text files modified:
   trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp 2009-08-31 11:17:45 EDT (Mon, 31 Aug 2009)
@@ -152,6 +152,7 @@
                     if (state_._curr - 1 == state_._start)
                     {
                         token_.set (num_token::CHARSET, bol_token);
+ state_._seen_BOL_assertion = true;
                     }
                     else
                     {
@@ -159,12 +160,12 @@
                             map_, token_);
                     }
 
- state_._seen_BOL_assertion = true;
                     break;
                 case '$':
                     if (state_._curr == state_._end)
                     {
                         token_.set (num_token::CHARSET, eol_token);
+ state_._seen_EOL_assertion = true;
                     }
                     else
                     {
@@ -172,7 +173,6 @@
                             map_, token_);
                     }
 
- state_._seen_EOL_assertion = true;
                     break;
                 case '.':
                 {


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