Hi,
while using quickbook (thanks for this great tool!), I noticed that
preprocessor directives are not highlighted if there's a space after the hash
(e.g. "# define SOMETHING"). Please consider the enclosed patch fixing this.
Thanks,
Chris
Index: syntax_highlight.hpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/syntax_highlight.hpp,v
retrieving revision 1.9
diff -d -u -r1.9 syntax_highlight.hpp
--- syntax_highlight.hpp 1 Nov 2005 08:51:53 -0000 1.9
+++ syntax_highlight.hpp 27 Nov 2006 10:59:58 -0000
@@ -78,7 +78,7 @@
;
preprocessor
- = '#' >> ((alpha_p | '_') >> *(alnum_p | '_'))
+ = '#' >> *space_p >> ((alpha_p | '_') >> *(alnum_p | '_'))
;
comment
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs