mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 11:25:08 +00:00
Improved highlighting of metacommands in comments.
This commit is contained in:
parent
b60fdb780a
commit
997d2bb734
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue