Explorar o código

zkas: Replace tabs in source with spaces when reading file.

Luther Blissett %!s(int64=4) %!d(string=hai) anos
pai
achega
086a618a05
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      bin/zkas/src/main.rs

+ 1 - 0
bin/zkas/src/main.rs

@@ -51,6 +51,7 @@ fn main() {
             exit(1);
         }
     };
+    let source = source.replace("\t", "    ");
 
     let lexer = Lexer::new(filename, source.chars());
     let tokens = lexer.lex();