mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-28 01:47:47 +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:
parent
231c1b6ec7
commit
c506f7f8fe
1 changed files with 8 additions and 2 deletions
|
@ -8445,8 +8445,14 @@ SUB ideshowtext
|
||||||
|
|
||||||
IF comment THEN
|
IF comment THEN
|
||||||
COLOR 11
|
COLOR 11
|
||||||
IF metacommand AND ((checkKeyword$ = "$INCLUDE" OR checkKeyword$ = "$DYNAMIC" _
|
IF metacommand THEN
|
||||||
OR checkKeyword$ = "$STATIC") AND INSTR(m + 1, UCASE$(a2$), checkKeyword$) = 0) THEN COLOR 10
|
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
|
ELSEIF metacommand THEN
|
||||||
COLOR 10
|
COLOR 10
|
||||||
ELSEIF inquote OR thisChar$ = CHR$(34) THEN
|
ELSEIF inquote OR thisChar$ = CHR$(34) THEN
|
||||||
|
|
Loading…
Reference in a new issue