Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit b9196a9

Browse files
experimental fix #29 / #41
1 parent 4424dd1 commit b9196a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SourcepawnCondenser/SourcepawnCondenser/CondenserFunctions/SMFunctionConsumer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ public static List<SMVariable> ConsumeSMVariableLocal(Token[] t, string FileName
379379
continueNext = true;
380380
break;
381381
// Assign var match: "int x = 5"
382-
case TokenKind.Assignment when t[position + 4].Kind == TokenKind.Semicolon &&
383-
(t[position + 3].Kind == TokenKind.Number ||
384-
t[position + 3].Kind == TokenKind.Quote ||
385-
t[position + 3].Kind == TokenKind.Identifier):
382+
case TokenKind.Assignment when (t[position + 3].Kind == TokenKind.Number ||
383+
t[position + 3].Kind == TokenKind.Quote ||
384+
t[position + 3].Kind == TokenKind.Identifier)
385+
&& t[position + 4].Kind == TokenKind.Semicolon:
386386
variables.Add(new SMVariable
387387
{
388388
Index = startIndex, Length = t[position + 4].Index - startIndex, File = FileName,

0 commit comments

Comments
 (0)