!1 优化条件判断

Merge pull request !1 from Joker2770/master
This commit is contained in:
爬山虎 2022-11-06 12:32:33 +00:00 committed by Gitee
commit 5ac07739af
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -255,10 +255,7 @@ static void ColouriseAU3Doc(Sci_PositionU startPos,
if (sc.atLineEnd) {
ci=0;
if (strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0) {
if (sc.atLineEnd)
sc.SetState(SCE_AU3_DEFAULT);
else
sc.SetState(SCE_AU3_COMMENTBLOCK);
}
break;
}

View File

@ -175,6 +175,9 @@ static void ColouriseMETAPOSTDoc(
if (currentInterface != 0) {
extraInterface = currentInterface ;
}
else {
extraInterface = 1;
}
WordList &keywords = *keywordlists[0] ;
WordList &keywords2 = *keywordlists[extraInterface-1] ;