new parsing mode of HL Done with success ==> can have some residual errors

TODO : Recursive Hightlight
This commit is contained in:
2011-08-08 10:24:24 +02:00
parent 722dafaaef
commit 2c6f280c58
7 changed files with 90 additions and 1195 deletions

View File

@@ -1889,7 +1889,7 @@ template<class CLASS_TYPE> class EdnRegExp {
|| ( '_' == tmpVal ) )
{
// go on the next char ...
continue;
return false;
}
}
}
@@ -1899,12 +1899,12 @@ template<class CLASS_TYPE> class EdnRegExp {
{
if (escapeChar == (char)SearchIn[startPos-1]) {
//==> detected escape char ==> try find again ...
continue;
return false;
}
}
// Check end :
if (true == m_notEndWithChar) {
if (i+findLen < SearchIn.Size() ) {
if (startPos+findLen < SearchIn.Size() ) {
char tmpVal = SearchIn[startPos+findLen];
if( ( 'a' <= tmpVal
&& 'z' >= tmpVal )
@@ -1915,7 +1915,7 @@ template<class CLASS_TYPE> class EdnRegExp {
|| ( '_' == tmpVal ) )
{
// go on the next char ...
continue;
return false;
}
}
}