From 7d842c99273f89a4eb27ac65047402e51e431178 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sat, 7 Oct 2017 03:35:51 -0300 Subject: [PATCH] Allow ? to be highlighted even if immediately followed by another "word". Cases like ?myVar% get properly highlighted. --- source/ide/ide_methods.bas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 7664a7b60..e08f2aeba 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -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