Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78353 - trunk/libs/spirit/example/lex
From: jamin.hanson_at_[hidden]
Date: 2012-05-06 10:32:19


Author: ben_hanson
Date: 2012-05-06 10:32:18 EDT (Sun, 06 May 2012)
New Revision: 78353
URL: http://svn.boost.org/trac/boost/changeset/78353

Log:
lexertl supports " like flex.
Text files modified:
   trunk/libs/spirit/example/lex/strip_comments.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/example/lex/strip_comments.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/strip_comments.cpp (original)
+++ trunk/libs/spirit/example/lex/strip_comments.cpp 2012-05-06 10:32:18 EDT (Sun, 06 May 2012)
@@ -62,9 +62,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 = "\"*/\""; // '*/'
 
         // The following tokens are associated with the default lexer state
         // (the "INITIAL" state). Specifying 'INITIAL' as a lexer state is


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