1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00

Improves IDE highlighting of trailing $DYNAMIC/$STATIC metacommands

Only one of $DYNAMIC or $STATIC is processed, the last appearing in a
metacommand line, so highlight only that rather than the last appearance
of each.

Improves commmit af2752602f.
This commit is contained in:
Doug Kearns 2021-02-23 00:15:13 +11:00
parent 231c1b6ec7
commit c506f7f8fe

View file

@ -8445,8 +8445,14 @@ SUB ideshowtext
IF comment THEN
COLOR 11
IF metacommand AND ((checkKeyword$ = "$INCLUDE" OR checkKeyword$ = "$DYNAMIC" _
OR checkKeyword$ = "$STATIC") AND INSTR(m + 1, UCASE$(a2$), checkKeyword$) = 0) THEN COLOR 10
IF metacommand THEN
SELECT CASE checkKeyword$
CASE "$INCLUDE"
IF INSTR(m + 1, UCASE$(a2$), checkKeyword$) = 0 THEN COLOR 10
CASE "$DYNAMIC", "$STATIC"
IF INSTR(m + 1, UCASE$(a2$), "$DYNAMIC") = 0 AND INSTR(m + 1, UCASE$(a2$), "$STATIC") = 0 THEN COLOR 10
END SELECT
END IF
ELSEIF metacommand THEN
COLOR 10
ELSEIF inquote OR thisChar$ = CHR$(34) THEN