1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 10:30:36 +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$
IF isKeyword > 0 AND keywordHighlight THEN
IF LEFT$(checkKeyword$, 1) = "$" THEN metacommand = -1 ELSE COLOR 12
isKeyword = isKeyword - 1
COLOR 12
IF LEFT$(checkKeyword$, 1) = "$" THEN metacommand = -1
END IF
IF link_idecx > 0 AND m > link_idecx AND metacommand THEN metacommand = 0 'back to default color
IF comment THEN
COLOR 11
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
IF l = idecy THEN COLOR , 6
IF isKeyword > 0 THEN isKeyword = isKeyword - 1
if isKeyword = 0 THEN checkKeyword$ = ""
NEXT m
'### END OF STEVE EDIT