diff --git a/Cargo.lock b/Cargo.lock index 5c53592..bf906f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ dependencies = [ [[package]] name = "heraclitus-compiler" -version = "1.8.0" +version = "1.8.1" dependencies = [ "capitalize", "colored", diff --git a/Cargo.toml b/Cargo.toml index 1757e17..c167f09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "heraclitus-compiler" -version = "1.8.0" +version = "1.8.1" edition = "2021" description = "Compiler frontend for developing great programming languages" license = "MIT" diff --git a/README.md b/README.md index 0b3b710..ed15ef9 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,10 @@ let tokens = cc.tokenize()?; # Change log 🚀 +## Version 1.8.1 +### Fix: +- Now prints newline on text errors as well as syntax errors + ## Version 1.8.0 ### Feature: - Lexer is now better separated from the compiler thus easier to integrate in other projects like LSP servers diff --git a/src/compiling/failing/message.rs b/src/compiling/failing/message.rs index 04f087f..bd0a5f5 100644 --- a/src/compiling/failing/message.rs +++ b/src/compiling/failing/message.rs @@ -164,7 +164,7 @@ impl Message { else { Logger::new(self.kind.clone(), &self.trace) .header(self.kind.clone()) - .text(self.message.clone()) + .line(self.message.clone()) .padded_line(self.comment.clone()); } }