summaryrefslogtreecommitdiff
path: root/tools/boostbook/test/more/tests/syntax-highlight/comments.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/boostbook/test/more/tests/syntax-highlight/comments.xml')
-rw-r--r--tools/boostbook/test/more/tests/syntax-highlight/comments.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/boostbook/test/more/tests/syntax-highlight/comments.xml b/tools/boostbook/test/more/tests/syntax-highlight/comments.xml
new file mode 100644
index 0000000000..061870db17
--- /dev/null
+++ b/tools/boostbook/test/more/tests/syntax-highlight/comments.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2010 Daniel James.
+
+ Distributed under the Boost Software License, Version 1.0.
+ (See accompanying file LICENSE_1_0.txt or copy at
+ http://www.boost.org/LICENSE_1_0.txt)
+-->
+<header name="example.hpp">
+ <para>
+ Fake reference documentation, so that the syntax highlighter will kick in.
+ </para>
+
+ <macro name="foo">
+ <description>
+ <programlisting>/* C style comment */</programlisting>
+ <programlisting>/* Broken C style comment</programlisting>
+ <programlisting>
+/* Multi-line
+ *comment
+ */</programlisting>
+ <programlisting>/*/ Tricky comment */</programlisting>
+ <programlisting>/**/</programlisting>
+ <programlisting>/***/</programlisting>
+ <programlisting>// Single line comment</programlisting>
+ <programlisting>// Single line comment
+</programlisting>
+ </description>
+ </macro>
+
+</header>