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

Allow ? to be highlighted even if immediately followed by another "word".

Cases like ?myVar% get properly highlighted.
This commit is contained in:
FellippeHeitor 2017-10-07 03:35:51 -03:00
parent 70fd9d872e
commit 7d842c9927

View file

@ -8142,6 +8142,7 @@ SUB ideshowtext
IF INSTR(char.sep$, MID$(a2$, i, 1)) > 0 OR MID$(a2$, i, 1) = "." THEN right.sep$ = MID$(a2$, i, 1): EXIT FOR
checkKeyword$ = checkKeyword$ + MID$(a2$, i, 1)
NEXT
IF comment = 0 AND LEFT$(checkKeyword$, 1) = "?" THEN isKeyword = 1: GOTO setOldChar
checkKeyword$ = UCASE$(checkKeyword$)
IF INSTR(listOfKeywords$, "@" + checkKeyword$ + "@") > 0 THEN
IF checkKeyword$ = "$END" THEN
@ -8223,6 +8224,7 @@ SUB ideshowtext
END IF
END IF
END IF
setOldChar:
oldChar$ = thisChar$
IF isKeyword > 0 AND keywordHighlight THEN