ui: fixed multiple multiline comments within one line not correctly highlighted

This commit is contained in:
Eberhard Graether
2018-12-05 00:20:46 +01:00
parent a044e17fdc
commit dc76661a53
3 changed files with 82 additions and 4 deletions
@@ -8,6 +8,7 @@ Test Suites:\n\n
[::\tmSINGLE_FILE_TESTS\ts\tp]\n
[::\tmFILE_BAR_TESTS\ts\tp]\n
[::\tmERROR_TESTS\ts\tp]\n
[::\tmSYNTAX_HIGHLIGHTER_TESTS\ts\tp]\n
</description>
<source_groups>
<source_group_475571d1-b082-4fff-81c5-d099c19f957d>
@@ -0,0 +1,58 @@
namespace SYNTAX_HIGHLIGHTER_TESTS
{
// TEST: multiline comments
// START ----------------------------------------------------------------------
/**/
//*
///*
// /* /*
//* /*
/* comment */
/* comment *//* comment */
/* comment */ /* comment */
/* comment /* inside comment */
/* comment
* comment
* comment
*/
/* start
comment
// end */
/* comment */ int no_comment; /* comment */
int no_comment2; /*
* comment
* comment
*/ int no_comment3;
// /*
int no_comment4;
// */
//*
int no_comment5;
//*
const char no_commentStr1[] = " /* string */ "/* comment */;
const char no_commentStr2[] = " /* "; /* comment */
const char no_commentStr3[] = /* const char[] a = " no string */" this is a string "; // <- highlight broken
// RESULT: All no_comment variable are not highlighted as comment
// END ------------------------------------------------------------------------
}