Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/folding/highlight.dox.fold
T

233 lines
19 KiB
Plaintext

This is a pseudo doxygen file to test Kate's doxygen syntax highlighting.
Normal text, no HL.
===================
a multiline comment may begin with a <beginfold id='1'>/*!</beginfold id='1'> <endfold id='1'>*/</endfold id='1'>, too. That should work,
because it is the same "entrance rule".
popping tests:
<beginfold id='1'>/** </beginfold id='1'>multiline <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/*!</beginfold id='1'> multiline <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
//! singleline, where */ should be ignored! still doxygen HL mode
/// singleline, where */ should be ignored! still doxygen HL mode
///< singleline, where */ should be ignored! still doxygen HL mode
begin and end immediately:
/********/ actually no doxygen comment - used for "info boxes" :)
/**/ <-- it really works --- end of doxygen HL mode
<beginfold id='1'>/*!</beginfold id='1'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL
* comment HL mode
<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal comment HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file <endfold id='1'>*/</endfold id='1'>aword <-- pop! no doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal comment HL
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\brief A short description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief <endfold id='1'>*/</endfold id='1'>A <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short description
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\page aword rest of line is string <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page <endfold id='1'>*/</endfold id='1'>aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword rest of line is string
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword <endfold id='1'>*/</endfold id='1'>aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image <endfold id='1'>*/</endfold id='1'>aword aword <-- pop! end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
Tests for HTML tags in doxygen HL mode:
=======================================
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb'> <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blubb<endfold id='1'>*/</endfold id='1'>'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='blub<endfold id='1'>*/</endfold id='1'>b'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='b<endfold id='1'>*/</endfold id='1'>lubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" hre<endfold id='1'>*/</endfold id='1'>f='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb" <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb"> <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb"<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blubb<endfold id='1'>*/</endfold id='1'>"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="blub<endfold id='1'>*/</endfold id='1'>b"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href="<endfold id='1'>*/</endfold id='1'>blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href=<endfold id='1'>*/</endfold id='1'>"blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a href<endfold id='1'>*/</endfold id='1'>="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a <endfold id='1'>*/</endfold id='1'>href="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><a<endfold id='1'>*/</endfold id='1'> href="blubb"> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><<endfold id='1'>*/</endfold id='1'>a href="blubb"> end of doxygen HL mode
//! <a href="blubb" href='blubb'> */ stay in doygen HL mode
//! <a href="blubb" href='blubb'*/> stay in doygen HL mode
//! <a href="blubb" href='blubb*/'> stay in doygen HL mode
//! <a href="blubb" href='blu*/bb'> stay in doygen HL mode
//! <a href="blubb" href='*/blubb'> stay in doygen HL mode
//! <a href="blubb" href=*/'blubb'> stay in doygen HL mode
//! <a href="blubb"> */ stay in doygen HL mode
//! <a href="blubb"*/> stay in doygen HL mode
//! <a href="blubb*/"> stay in doygen HL mode
//! <a href="blub*/b"> stay in doygen HL mode
//! <a href="*/blubb"> stay in doygen HL mode
//! <a href=*/"blubb"> stay in doygen HL mode
//! <a href*/="blubb"> stay in doygen HL mode
//! <a h*/ref="blubb"> stay in doygen HL mode
//! <a */href="blubb"> stay in doygen HL mode
//! <a*/ href="blubb"> stay in doygen HL mode
//! <*/a href="blubb"> stay in doygen HL mode
//! <a href="blubb"> stay in doygen HL <mode
here should be normal HL mode (no doxygen!)
Tests for HTML tags in doxygen HL mode with tags:
=================================================
<tag> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb'> line is normal comment HL <endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb'<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='blubb<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href='<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb"> of </a href=<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href="blubb<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>"> of </a href=*/'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a href=<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <a h<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest <<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'>a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'><beginfold id='2'>\code</beginfold id='2'> rest of line is normal comment HL
* comment HL mode <html> text </html>
<endfold id='2'></endfold id='2'><endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <normal comment HL>
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_ignored_here>rd rest of line is normal comment HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_ignored_here><endfold id='1'>*/</endfold id='1'>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<html_should_be_i<endfold id='1'>*/</endfold id='1'>gnored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file awo<<endfold id='1'>*/</endfold id='1'>html_should_be_ignored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file a<endfold id='1'>*/</endfold id='1'>wo<html_should_be_ignored_here>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\file aword rest of line is normal co<code>mment HL
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'> description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of <<endfold id='1'>*/</endfold id='1'>/a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"<endfold id='1'>*/</endfold id='1'>> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb<endfold id='1'>*/</endfold id='1'>"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="<endfold id='1'>*/</endfold id='1'>blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href=<endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href<endfold id='1'>*/</endfold id='1'>="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\brief A short <a href="blubb"> of </a href='blubb'> description
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'> description <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'<endfold id='1'>*/</endfold id='1'>> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='<endfold id='1'>*/</endfold id='1'>blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href=<endfold id='1'>*/</endfold id='1'>'blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href<endfold id='1'>*/</endfold id='1'>='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a <endfold id='1'>*/</endfold id='1'>href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of <<endfold id='1'>*/</endfold id='1'>/a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"<endfold id='1'>*/</endfold id='1'>> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb<endfold id='1'>*/</endfold id='1'>"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="<endfold id='1'>*/</endfold id='1'>blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href=<endfold id='1'>*/</endfold id='1'>"blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href<endfold id='1'>*/</endfold id='1'>="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a h<endfold id='1'>*/</endfold id='1'>ref="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <<endfold id='1'>*/</endfold id='1'>a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A shor<endfold id='1'>*/</endfold id='1'>t <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page awor<endfold id='1'>*/</endfold id='1'>d A short <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page <endfold id='1'>*/</endfold id='1'>aword A short <a href="blubb"> of </a href='blubb'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\page aword A short <a href="blubb"> of </a href='blubb'> description
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<tag> <word> <word> <rest of line is string>
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL <endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aw<endfold id='1'>*/</endfold id='1'>ord end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword <endfold id='1'>*/</endfold id='1'>aword end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image awo<endfold id='1'>*/</endfold id='1'>rd end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image <endfold id='1'>*/</endfold id='1'>aword end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\ima<endfold id='1'>*/</endfold id='1'>ge end of doxygen HL mode
<beginfold id='1'>/** </beginfold id='1'>\image aword aword rest of line is normal HL
* comment HL mode
<endfold id='1'>*/</endfold id='1'> end of doxygen HL mode
Some further tests for singlelinecomments (* / should not pop!)
===============================================================
/// a singlelinecommment blubb blubb */. stay in doxygen HL mode
/// <beginfold id='2'>\code</beginfold id='2'> a singlelinecommment blubb b*/lubb. stay in doxygen HL mode
<endfold id='2'></endfold id='2'>end of doxygen HL mode
/// \endcode
/// <beginfold id='2'>\code</beginfold id='2'>*/ a singlelinecommment blubb blubb. stay in doxygen HL mode
<endfold id='2'></endfold id='2'>end of doxygen HL mode
/// <beginfold id='2'>\code</beginfold id='2'> a multilinecommment blubb blubb
/// blubb blubb
/// <endfold id='2'>\endcode</endfold id='2'>
/// \brief a descriptive text (string) stay in doxygen HL mode
/// \brief a descriptive text (string)*/ description should go on here
/// \brief a descriptive text */(string) description should go on here
/// \brief */a descriptive text (string) description should go on here
/// \ref aword a descriptive text (string) */ description should go on here
/// \ref aword a descriptive text (str*/ing) description should go on here
/// \ref aword a des*/criptive text (string) description should go on here
/// \ref aword*/ a descriptive text (string) description should go on here
/// \ref aw*/ord a descriptive text (string) description should go on here
/// \ref */aword a descriptive text (string) description should go on here
HTML comment tests:
===================
//! \ref word de<!--*/ -->scriptive text (string)
normal HL mode.
//! \ref w descriptive text (string)
<beginfold id='1'>/** </beginfold id='1'>\ref word de<!--<endfold id='1'>*/</endfold id='1'> -->scriptive text (string)
normal HL mode.
<beginfold id='1'>/** </beginfold id='1'>\ref w <!--
* HTML comments
* -->
* normal doxygen HL mode.
<endfold id='1'>*/</endfold id='1'>
And final tests for a word: a single char:
===========================================
<tag> <word> <rest of line as string>
//! \ref word descriptive text (string)
//! \ref w descriptive text (string)
<tag> <word> <word> <rest is normal HL>
//! \image word1 word2 b descriptive text (string)
//! \image a word b descriptive text (string)
<tag> <rest of line is string>
//! \brief A b c d e description should go on here
<tag> <word> <rest of line is normal doxygen HL mode>
//! \file word rest of line is normal comment HL
//! \file a word rest of line is normal comment HL
no doxygen HL mode here.
== END OF TESTFILE ==