Update of /cvsroot/boost/boost/tools/quickbook
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24914

Modified Files:
        code_snippet.hpp 
Log Message:
Added ignored import code feature

Index: code_snippet.hpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/code_snippet.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- code_snippet.hpp    28 Feb 2007 10:20:36 -0000      1.4
+++ code_snippet.hpp    7 Mar 2007 01:29:25 -0000       1.5
@@ -49,6 +49,7 @@
 
                 code_elements =
                         escaped_comment
+                    |   ignore
                     |   line_callout
                     |   inline_callout
                     |   (anychar_p - "//]")         
[boost::bind(&self_type::pass_thru, &self, _1, _2)]
@@ -67,6 +68,15 @@
                     >> *space_p
                     ;
 
+                ignore =
+                        "//<-"
+                        >> (*(anychar_p - "//->"))
+                        >> "//->" >> *blank_p >> eol_p
+                    |    "/*<-"
+                        >> (*(anychar_p - "->*/"))
+                        >> "->*/"
+                    ;
+
                 escaped_comment =
                         *space_p >> "//`" >> *space_p
                         >> ((*(anychar_p - eol_p))
@@ -79,7 +89,7 @@
 
             rule<Scanner>
                 start_, snippet, identifier, code_elements, escaped_comment,
-                inline_callout, line_callout;
+                inline_callout, line_callout, ignore;
 
             rule<Scanner> const&
             start() const { return start_; }


-------------------------------------------------------------------------
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-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to