Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65448 - in trunk/tools/quickbook: doc src test
From: dnljms_at_[hidden]
Date: 2010-09-18 13:56:17


Author: danieljames
Date: 2010-09-18 13:56:15 EDT (Sat, 18 Sep 2010)
New Revision: 65448
URL: http://svn.boost.org/trac/boost/changeset/65448

Log:
Nested blocks in document info comments.
Text files modified:
   trunk/tools/quickbook/doc/quickbook.qbk | 1 +
   trunk/tools/quickbook/src/doc_info_grammar.cpp | 10 +++++++---
   trunk/tools/quickbook/test/doc-info-1.quickbook | 1 +
   trunk/tools/quickbook/test/doc-info-2.quickbook | 1 +
   4 files changed, 10 insertions(+), 3 deletions(-)

Modified: trunk/tools/quickbook/doc/quickbook.qbk
==============================================================================
--- trunk/tools/quickbook/doc/quickbook.qbk (original)
+++ trunk/tools/quickbook/doc/quickbook.qbk 2010-09-18 13:56:15 EDT (Sat, 18 Sep 2010)
@@ -230,6 +230,7 @@
 * In docbook, variable list entries can only have one `listitem`, so if an
   entry has multiple values, merge them into one `listitem`.
 * Support nested code snippets.
+* Support nested blocks in document info comments.
 * Revert xml escaping document info, it broke some documentation files
   (now a 1.6 feature).
 * Further work on quickbook 1.6, still not stable.

Modified: trunk/tools/quickbook/src/doc_info_grammar.cpp
==============================================================================
--- trunk/tools/quickbook/src/doc_info_grammar.cpp (original)
+++ trunk/tools/quickbook/src/doc_info_grammar.cpp 2010-09-18 13:56:15 EDT (Sat, 18 Sep 2010)
@@ -32,9 +32,9 @@
         cl::rule<Scanner>
                         doc_info, doc_title, doc_version, doc_id, doc_dirname,
                         doc_copyright, doc_purpose, doc_category, doc_authors,
- doc_author, comment, space, hard_space, doc_license,
+ doc_author, space, hard_space, doc_license,
                         doc_last_revision, doc_source_mode, doc_biblioid,
- phrase, quickbook_version, char_;
+ phrase, quickbook_version, char_, comment, dummy_block;
         phrase_grammar common;
         cl::symbols<> doc_types;
 
@@ -190,7 +190,11 @@
             ;
 
         comment =
- "[/" >> *(cl::anychar_p - ']') >> ']'
+ "[/" >> *(dummy_block | (cl::anychar_p - ']')) >> ']'
+ ;
+
+ dummy_block =
+ '[' >> *(dummy_block | (cl::anychar_p - ']')) >> ']'
             ;
 
         space =

Modified: trunk/tools/quickbook/test/doc-info-1.quickbook
==============================================================================
--- trunk/tools/quickbook/test/doc-info-1.quickbook (original)
+++ trunk/tools/quickbook/test/doc-info-1.quickbook 2010-09-18 13:56:15 EDT (Sat, 18 Sep 2010)
@@ -6,5 +6,6 @@
 [purpose Inline code test: `1 + 2`]
 [category tests]
 [category irrelevance]
+[/ [category commented out] ]
 [biblioid uri http://www.boost.org/tools/quickbook/test/doc-info-1.quickbook]
 ]

Modified: trunk/tools/quickbook/test/doc-info-2.quickbook
==============================================================================
--- trunk/tools/quickbook/test/doc-info-2.quickbook (original)
+++ trunk/tools/quickbook/test/doc-info-2.quickbook 2010-09-18 13:56:15 EDT (Sat, 18 Sep 2010)
@@ -6,6 +6,7 @@
 [purpose Inline code test: `1 + 2`]
 [category tests]
 [category irrelevance]
+[/ [category commented out] ]
 [biblioid uri http://www.boost.org/tools/quickbook/test/doc-info-2.quickbook]
 [biblioid isbn 0-937383-18-X]
 ]


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