Browse Source

Fix: lexer

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

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

@@ -223,7 +223,7 @@ public ref struct Lexer
         }
         }
 
 
         // numeric literal
         // numeric literal
-        if (IsNumeric(c1))
+        if (c1 is '.' || IsNumeric(c1))
         {
         {
             if (c1 is '0' && c2 is 'x' or 'X') // hex 0x
             if (c1 is '0' && c2 is 'x' or 'X') // hex 0x
             {
             {