Update TextHighlighter_Sh.class

[GB.EVAL.HIGHLIGHT]
* BUG: check first for bracket after function keyword.
This commit is contained in:
Bruce Steers 2022-12-21 17:16:30 +00:00
parent 1076eba4fa
commit e50869e886

View File

@ -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