Wrap the template info in a struct.

So that I can add extra scoping info.

svn path=/branches/quickbook-1.5/; revision=53449
Add a couple of tests for quickbook 1.4 behaviour to try to preserve it.

svn path=/branches/quickbook-1.5/; revision=53450
Implement static/lexical scoping for 1.5. Refs #2034.

svn path=/branches/quickbook-1.5/; revision=53451
Move all the syntax highlighting code into a single class.

svn path=/branches/quickbook-1.5/; revision=53452
Move the code actions a bit later in actions.hpp so they can use 'plain_char_action'.

svn path=/branches/quickbook-1.5/; revision=53453
Teletype source mode. Refs #1202.

svn path=/branches/quickbook-1.5/; revision=53454
Make sure that a template expansion ends with a ']'.

{{{
[template foo 1]
[fool]
}}}

was generating `1[fool]` - the template would be expanded but then when it
didn't match the `]` it would fail and just get copied to the output. This
change checks for `]` before expanding the template. So it now generates
`[fool]` which is an improvement.

I'm not including a version switch as I see this as a plain bug fix - I can't
imagine this change ever being anything but beneficial.

svn path=/branches/quickbook-1.5/; revision=53503
In quickbook 1.5 don't mix '..' and whitespace seperators for template arguments. Refs #1174

svn path=/branches/quickbook-1.5/; revision=53504
I got a bit confused by this comment, so try to make it clearer.

svn path=/branches/quickbook-1.5/; revision=53732
Put the quickbook version numbers in a single header, along with convenience
functions for using them in spirit grammars.

svn path=/branches/quickbook-1.5/; revision=53733
Ignore spaces after 'section:' for quickbook 1.5+ Refs #2712

And warn when section id is empty after colon.

svn path=/branches/quickbook-1.5/; revision=53734
Introduce temporary id variable.

svn path=/branches/quickbook-1.5/; revision=53735
Table ids. Refs #1194.

svn path=/branches/quickbook-1.5/; revision=53736
Separate out the current version of the template argument parser, as I want to create a new one for 1.5

svn path=/branches/quickbook-1.5/; revision=53737
Don't use seperators that are in brackets, or are escaped. Refs #2036.

svn path=/branches/quickbook-1.5/; revision=53738
Add missing table tests.

svn path=/branches/quickbook-1.5/; revision=54137
Support image attributes. Refs #1157.

svn path=/branches/quickbook-1.5/; revision=54138