Skip to content

Commit

Permalink
Merge pull request #65 from hdwalters/add-error-message-newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0enixKM authored Oct 15, 2024
2 parents d687e7d + fc16ad2 commit 444f125
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/compiling/failing/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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());
}
}
Expand Down

0 comments on commit 444f125

Please sign in to comment.