From 35c915c417c54e29dc72303dd5a67f88af702bb5 Mon Sep 17 00:00:00 2001 From: Bruce Steers Date: Tue, 24 Oct 2023 08:34:39 +0000 Subject: [PATCH 1/2] Update TextHighlighter_Sh.class to fix escaped quotes [GB.EVAL.HIGHLIGHT] * BUG: correctly position pointer after finding escaped quote \" in SH highlighting. # i noticed this glitch when an sh file has escaped quotes \" \" , the closing \" char was not highlighted. --- 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 f86a8c58c..693a243f8 100644 --- a/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class +++ b/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class @@ -246,7 +246,7 @@ Public Sub RunWith(sText As String, cKeyword As Collection, cOperator As Collect TextHighlighter.Add(State.Escape, 2) Inc iPos Else - TextHighlighter.Add(State.Escape, 1) + TextHighlighter.Add(State.Escape, 2) If sCar = "\"" Then Inc ipos Endif 'Inc iPos From 11f03b7f12c333f76b9eaa3d5518a10f5060e38e Mon Sep 17 00:00:00 2001 From: Bruce Steers Date: Tue, 24 Oct 2023 09:18:51 +0000 Subject: [PATCH 2/2] Update TextHighlighter_Sh.class, really fix escaped quotes [GB.EVAL.HIGHLIGHT] * BUG: also fix escaped single quotes --- 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 693a243f8..0a5318c6e 100644 --- a/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class +++ b/comp/src/gb.eval.highlight/.src/TextHighlighter_Sh.class @@ -247,7 +247,7 @@ Public Sub RunWith(sText As String, cKeyword As Collection, cOperator As Collect Inc iPos Else TextHighlighter.Add(State.Escape, 2) - If sCar = "\"" Then Inc ipos + If sCar = "\"" Or If sCar = "'" Then Inc ipos Endif 'Inc iPos Continue