|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78356 - trunk/libs/spirit/test/lex
From: jamin.hanson_at_[hidden]
Date: 2012-05-06 10:46:36
Author: ben_hanson
Date: 2012-05-06 10:46:35 EDT (Sun, 06 May 2012)
New Revision: 78356
URL: http://svn.boost.org/trac/boost/changeset/78356
Log:
Whitespace should be + not *.
Text files modified:
trunk/libs/spirit/test/lex/lexertl4.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/spirit/test/lex/lexertl4.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/lexertl4.cpp (original)
+++ trunk/libs/spirit/test/lex/lexertl4.cpp 2012-05-06 10:46:35 EDT (Sun, 06 May 2012)
@@ -25,7 +25,7 @@
token_def c_comment ("\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/", CCOMMENT);
token_def cpp_comment ("\\/\\/[^\\n\\r]*(\\n|\\r|\\r\\n)", CPPCOMMENT);
- token_def ws_tok ("[\\v\\f\\n\\r]*", TOKEN_ID_WS);
+ token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS);
typedef std::string::iterator base_iterator_type;
typedef lex::lexertl::token<base_iterator_type> token_type;
@@ -38,7 +38,7 @@
{
// initialize lexer
lexer_def lex;
- token_def ws_tok ("[\\v\\f\\n\\r]*", TOKEN_ID_WS);
+ token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS);
lex.self.add
(c_comment)(cpp_comment)
('1')('2')('3')
@@ -60,7 +60,7 @@
{
// initialize lexer
lexer_def lex;
- token_def ws_tok ("[\\v\\f\\n\\r]*", TOKEN_ID_WS);
+ token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS);
lex.self.add
(c_comment)(cpp_comment)
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