|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76608 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2012-01-21 06:27:35
Author: danieljames
Date: 2012-01-21 06:27:35 EST (Sat, 21 Jan 2012)
New Revision: 76608
URL: http://svn.boost.org/trac/boost/changeset/76608
Log:
Quickbook: Better handling of brackets in 1.6 link values.
Text files modified:
branches/quickbook-dev/tools/quickbook/src/phrase_element_grammar.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: branches/quickbook-dev/tools/quickbook/src/phrase_element_grammar.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/phrase_element_grammar.cpp (original)
+++ branches/quickbook-dev/tools/quickbook/src/phrase_element_grammar.cpp 2012-01-21 06:27:35 EST (Sat, 21 Jan 2012)
@@ -119,10 +119,13 @@
| qbk_since(106u)
>> actions.to_value()
[ *( raw_escape
- | (cl::anychar_p - (']' | space))
+ | (cl::anychar_p - (cl::ch_p('[') | ']' | space))
[actions.raw_char]
)
]
+ >> !( ~cl::eps_p(comment)
+ >> cl::eps_p('[') [actions.error("Open bracket in link value.")]
+ )
)
>> hard_space
>> local.inner_phrase
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