Merge branch 'bsteers4-master-patch-46598' into 'master'

TextHighlighter_Sh.class, fix error after function keyword if bracket does not exist

See merge request gambas/gambas!285
This commit is contained in:
Benoît Minisini 2022-12-28 14:09:36 +00:00
commit 1dd2f4969f

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