Eric Niebler wrote:
Joel de Guzman wrote:
Eric Niebler wrote:
Joel de Guzman wrote:
Quickbook now allows escaping back to QuickBook from code,
code blocks and inline code using a language specific
delimiter (in C++ and Python -- the triple-dot "...").
Nice, but the triple-dot is valid C++ syntax.
Haha. Yah! I was too sleepy when I wrote that. Any suggestion
welcome.
How about two square brackets? That's not legal C++ or python, AFAIK.
void [EMAIL PROTECTED]://tinyurl.com/48x24 foo]]()
{
}
Haha! Like minds :) Alas, it can cause conflict with QuickBook :(
I can make that work, but would require a bit of work -- the parser
in the syntax-highlighter is a simple greedy scanner that searches
for an end delimeter. Then in the semantic action, the phrase is
re-parsed using QuickBook's phrase grammar. If we use the square
bracket as delimeter, I have to write a recursive rule that matches
brackets. That's a nice syntax though.
In the end, I settled for the double percent: %%. I hope that's ok?
Keep it simple?
... ok disregard that ...
I did it anyway. Can't resist the challenge. Your code above
lacks a pair of brackets though. Corrected:
void [EMAIL PROTECTED]://tinyurl.com/48x24 foo]]]()
{
}
Everything inside the double brackets are interpreted as valid
QuickBook phrase. Committed to CVS.
Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs