|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78354 - trunk/libs/spirit/example/lex
From: jamin.hanson_at_[hidden]
Date: 2012-05-06 10:34:16
Author: ben_hanson
Date: 2012-05-06 10:34:15 EDT (Sun, 06 May 2012)
New Revision: 78354
URL: http://svn.boost.org/trac/boost/changeset/78354
Log:
lexertl supports " like flex.
Text files modified:
trunk/libs/spirit/example/lex/strip_comments_lexer.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/spirit/example/lex/strip_comments_lexer.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/strip_comments_lexer.cpp (original)
+++ trunk/libs/spirit/example/lex/strip_comments_lexer.cpp 2012-05-06 10:34:15 EDT (Sun, 06 May 2012)
@@ -112,9 +112,9 @@
: strip_comments_tokens::base_type(lex::match_flags::match_default)
{
// define tokens and associate them with the lexer
- cppcomment = "\\/\\/[^\n]*"; // '//[^\n]*'
- ccomment = "\\/\\*"; // '/*'
- endcomment = "\\*\\/"; // '*/'
+ cppcomment = "\"//\"[^\n]*"; // '//[^\n]*'
+ ccomment = "\"/*\""; // '/*'
+ endcomment = "\"*/\""; // '*/'
any = std::string(".");
eol = "\n";
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