|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78355 - trunk/libs/spirit/test/lex
From: jamin.hanson_at_[hidden]
Date: 2012-05-06 10:45:35
Author: ben_hanson
Date: 2012-05-06 10:45:33 EDT (Sun, 06 May 2012)
New Revision: 78355
URL: http://svn.boost.org/trac/boost/changeset/78355
Log:
whitespace should be + not *.
Text files modified:
trunk/libs/spirit/test/lex/lexertl3.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/spirit/test/lex/lexertl3.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/lexertl3.cpp (original)
+++ trunk/libs/spirit/test/lex/lexertl3.cpp 2012-05-06 10:45:33 EDT (Sun, 06 May 2012)
@@ -31,7 +31,7 @@
{
// initialize lexer
std::string str("def");
- token_def ws_tok ("[\\v\\f\\n\\r]*");
+ token_def ws_tok ("[\\v\\f\\n\\r]+");
lexer_def lex;
lex.self = c_comment;
lex.self += cpp_comment | '1' | '2' | '3' | "abc" | str;
@@ -50,7 +50,7 @@
{
// initialize lexer
lexer_def lex;
- token_def ws_tok ("[\\v\\f\\n\\r]*");
+ token_def ws_tok ("[\\v\\f\\n\\r]+");
lex.self = c_comment;
lex.self += cpp_comment | '1' | '2' | '3';
lex.self("WHITESPACE") = token_def(' ') | '\t' | ws_tok;
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