소스 검색

Fix: lexer string token

AnnulusGames 1 년 전
부모
커밋
500629cadb
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/Lua/CodeAnalysis/Syntax/Lexer.cs
  2. 1 0
      tests/Lua.Tests/LexerTests.cs

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

@@ -299,7 +299,6 @@ public ref struct Lexer
         {
             var quote = c1;
             var stringStartOffset = offset;
-            Advance(1);
 
             while (span.Length > offset)
             {

+ 1 - 0
tests/Lua.Tests/LexerTests.cs

@@ -67,6 +67,7 @@ public class LexerTests
     }
 
     [Test]
+    [TestCase("\"\"")]
     [TestCase("\"hello\"")]
     [TestCase("\"1.23\"")]
     [TestCase("\"1-2-3-4-5\"")]