From e50869e886e5c44308ab042dda6bf85856a4a7f4 Mon Sep 17 00:00:00 2001 From: Bruce Steers Date: Wed, 21 Dec 2022 17:16:30 +0000 Subject: [PATCH] Update TextHighlighter_Sh.class [GB.EVAL.HIGHLIGHT] * BUG: check first for bracket after function keyword. --- comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class b/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class index 8aaa617f4..4e67b5836 100644 --- a/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class +++ b/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class @@ -102,7 +102,7 @@ Public Sub RunWith(sText As String, cKeyword As Collection, cOperator As Collect Else If InStr(Trim(sText), "function") = 1 Then TextHighlighter.Add(State.Keyword, 9) - TextHighlighter.Add(State.Function, RInStr(sText, "(") - 10) + If InStr(sText,"(") Then TextHighlighter.Add(State.Function, RInStr(sText, "(") - 10) Break Else If sCar = "#" Then