Skip to content

Commit

Permalink
给编译错误信息中显示已编译行的增加缩进
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Sep 16, 2024
1 parent fe83cf4 commit 5a7c89d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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 = "mindustry_logic_bang_lang"
version = "0.17.2"
version = "0.17.3"
edition = "2021"

authors = ["A4-Tacks <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tools/syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "syntax"
version = "0.2.39"
version = "0.2.40"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion tools/syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4164,7 +4164,7 @@ impl CompileMeta {

pub fn debug_tag_codes(&self) -> Vec<String> {
self.parse_lines().lines().iter()
.map(ToString::to_string)
.map(|line| format!("{line:#}"))
.collect()
}

Expand Down

0 comments on commit 5a7c89d

Please sign in to comment.