1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-17 00:45:15 +00:00

Improved highlighting of metacommands in comments.

This commit is contained in:
FellippeHeitor 2017-10-03 21:12:22 -03:00
parent b60fdb780a
commit 997d2bb734

View file

@ -8131,12 +8131,10 @@ SUB ideshowtext
oldChar$ = thisChar$ oldChar$ = thisChar$
IF isKeyword > 0 AND keywordHighlight THEN IF isKeyword > 0 AND keywordHighlight THEN
IF LEFT$(checkKeyword$, 1) = "$" THEN metacommand = -1 ELSE COLOR 12 COLOR 12
isKeyword = isKeyword - 1 IF LEFT$(checkKeyword$, 1) = "$" THEN metacommand = -1
END IF END IF
IF link_idecx > 0 AND m > link_idecx AND metacommand THEN metacommand = 0 'back to default color
IF comment THEN IF comment THEN
COLOR 11 COLOR 11
IF metacommand AND (checkKeyword$ = "$INCLUDE" OR checkKeyword$ = "$DYNAMIC" _ IF metacommand AND (checkKeyword$ = "$INCLUDE" OR checkKeyword$ = "$DYNAMIC" _
@ -8172,6 +8170,8 @@ SUB ideshowtext
'Restore BG color in case a matching bracket was printed with different BG 'Restore BG color in case a matching bracket was printed with different BG
IF l = idecy THEN COLOR , 6 IF l = idecy THEN COLOR , 6
IF isKeyword > 0 THEN isKeyword = isKeyword - 1
if isKeyword = 0 THEN checkKeyword$ = ""
NEXT m NEXT m
'### END OF STEVE EDIT '### END OF STEVE EDIT