Skip to content

Commit c9b39d1

Browse files
committed
Fixed bug: infinite loop
1 parent 97f7cf7 commit c9b39d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VBAexpressions.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ Private Function IsSymbolInLiteralString(ByRef Expression As String, SymbolPos A
16931693

16941694
tmpPos = InStrB(1, Expression, d_Apostrophe)
16951695
If tmpPos Then
1696-
Do While tmpPos < SymbolPos
1696+
Do While tmpPos < SymbolPos And tmpPos > 0
16971697
flagCounter = flagCounter + 1
16981698
tmpPos = InStrB(tmpPos + 2, Expression, d_Apostrophe)
16991699
Loop

0 commit comments

Comments
 (0)