|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2007-10-03 09:18:24
Author: hkaiser
Date: 2007-10-03 09:18:23 EDT (Wed, 03 Oct 2007)
New Revision: 39673
URL: http://svn.boost.org/trac/boost/changeset/39673
Log:
Wave: Fixed a regex definition problem in the Slex lexer.
Text files modified:
trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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 2007-10-03 09:18:23 EDT (Wed, 03 Oct 2007)
@@ -151,14 +151,14 @@
#define FLOAT_SUFFIX "(" "[fF][lL]?" OR "[lL][fF]?" ")"
#define CHAR_SPEC "L?"
-#define BACKSLASH "(" "\\" OR TRI(Q("/")) ")"
+#define BACKSLASH "(" Q("\\") OR TRI(Q("/")) ")"
#define ESCAPESEQ "(" BACKSLASH "(" \
"[abfnrtv?'\"]" OR \
BACKSLASH OR \
"x" HEXDIGIT "+" OR \
OCTALDIGIT OCTALDIGIT "?" OCTALDIGIT "?" \
"))"
-#define HEXQUAD HEXDIGIT HEXDIGIT HEXDIGIT HEXDIGIT
+#define HEXQUAD "(" HEXDIGIT HEXDIGIT HEXDIGIT HEXDIGIT ")"
#define UNIVERSALCHAR "(" BACKSLASH "(" \
"u" HEXQUAD OR \
"U" HEXQUAD HEXQUAD \
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