$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r72197 - in trunk/libs/wave: . samples/cpp_tokens samples/cpp_tokens/slex
From: hartmut.kaiser_at_[hidden]
Date: 2011-05-26 18:22:53
Author: hkaiser
Date: 2011-05-26 18:22:52 EDT (Thu, 26 May 2011)
New Revision: 72197
URL: http://svn.boost.org/trac/boost/changeset/72197
Log:
Wave: fixed #5569: slex CONTLINE token works only for LF line endings
Text files modified: 
   trunk/libs/wave/ChangeLog                                  |     1 +                                       
   trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp |     2 +-                                      
   trunk/libs/wave/samples/cpp_tokens/slex_token.hpp          |     2 +-                                      
   3 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/libs/wave/ChangeLog
==============================================================================
--- trunk/libs/wave/ChangeLog	(original)
+++ trunk/libs/wave/ChangeLog	2011-05-26 18:22:52 EDT (Thu, 26 May 2011)
@@ -44,6 +44,7 @@
 - Fixed a problem in teh wave driver tool related to #pragma option(output).
   If wave was invoked in rapid succession this erroneously appended to an
   existing file instead of overwriting that file.
+- Fixed #5569: slex CONTLINE token works only for LF line endings
 
 Boost V1.46.0
 - V2.2.0
Modified: trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp
==============================================================================
--- trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp	(original)
+++ trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp	2011-05-26 18:22:52 EDT (Thu, 26 May 2011)
@@ -382,7 +382,7 @@
 #endif
     TOKEN_DATA(SPACE, "[ \t\v\f]+"),
 //    TOKEN_DATA(SPACE2, "[\\v\\f]+"),
-    TOKEN_DATA(CONTLINE, "\\" "\\n"), 
+    TOKEN_DATA(CONTLINE, Q("\\") "\n"), 
     TOKEN_DATA(NEWLINE, NEWLINEDEF),
     TOKEN_DATA(POUND_POUND, "##"),
     TOKEN_DATA(POUND_POUND_ALT, Q("%:") Q("%:")),
Modified: trunk/libs/wave/samples/cpp_tokens/slex_token.hpp
==============================================================================
--- trunk/libs/wave/samples/cpp_tokens/slex_token.hpp	(original)
+++ trunk/libs/wave/samples/cpp_tokens/slex_token.hpp	2011-05-26 18:22:52 EDT (Thu, 26 May 2011)
@@ -92,7 +92,7 @@
         
         stream << std::setw(16) 
             << std::left << boost::wave::get_token_name(id) << " ("
-            << "#" << token_id(ID_FROM_TOKEN(*this)) 
+            << "#" << token_id(BASEID_FROM_TOKEN(*this)) 
             << ") at " << get_position().get_file() << " (" 
             << std::setw(3) << std::right << get_position().get_line() << "/" 
             << std::setw(2) << std::right << get_position().get_column()