Skip to content

Commit

Permalink
给lint加上BE-draw的新用法
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Feb 2, 2025
1 parent deac439 commit a862711
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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.18.2"
version = "0.18.3"
edition = "2021"

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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions tools/logic_lint/src/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ thread_local! {
["draw" "linePoly" v v v v v]
["draw" "triangle" v v v v v v]
["draw" "image" v v v v v]
["draw" "print" v v _]
["draw" "translate" v v]
["draw" "scale" v v]
["draw" "rotate" _ _ v]
["draw" "reset"]
["print" v]
["format" v]
["drawflush" v]
Expand Down Expand Up @@ -445,6 +450,7 @@ make_lints! {
lints.extend(check_oper(mode, &[
"clear", "color", "col", "stroke", "line", "rect",
"lineRect", "poly", "linePoly", "triangle", "image",
"print", "translate", "scale", "rotate", "reset",
]));
lints.extend(check_vars(src, line, args));
}
Expand Down

0 comments on commit a862711

Please sign in to comment.