Browse Source

Fix: lexer ('"' escape)

AnnulusGames 1 year ago
parent
commit
68f3bef37e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Lua/CodeAnalysis/Syntax/Lexer.cs

+ 1 - 3
src/Lua/CodeAnalysis/Syntax/Lexer.cs

@@ -325,10 +325,8 @@ public ref struct Lexer
                 {
                 {
                     Advance(1);
                     Advance(1);
                     if (span.Length <= offset) break;
                     if (span.Length <= offset) break;
-                    c = span[offset];
                 }
                 }
-
-                if (c == quote)
+                else if (c == quote)
                 {
                 {
                     isTerminated = true;
                     isTerminated = true;
                     break;
                     break;