From 591142dde8aea618e543bc61d9dc425d31bdcce7 Mon Sep 17 00:00:00 2001 From: A4-Tacks Date: Sat, 20 Apr 2024 09:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAsensor=E6=B7=BB=E5=8A=A0lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- tools/logic_lint/Cargo.toml | 2 +- tools/logic_lint/src/lints.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a95f1d9..e4efa01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -286,7 +286,7 @@ checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" [[package]] name = "logic_lint" -version = "0.1.5" +version = "0.1.6" dependencies = [ "lazy-regex", "tag_code", @@ -301,7 +301,7 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "mindustry_logic_bang_lang" -version = "0.15.7" +version = "0.15.8" dependencies = [ "display_source", "logic_lint", diff --git a/Cargo.toml b/Cargo.toml index bd66c8d..bc5b141 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mindustry_logic_bang_lang" -version = "0.15.7" +version = "0.15.8" edition = "2021" authors = ["A4-Tacks "] diff --git a/tools/logic_lint/Cargo.toml b/tools/logic_lint/Cargo.toml index f3fbad0..240a1d9 100644 --- a/tools/logic_lint/Cargo.toml +++ b/tools/logic_lint/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "logic_lint" -version = "0.1.5" +version = "0.1.6" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/tools/logic_lint/src/lints.rs b/tools/logic_lint/src/lints.rs index 29b1942..126b36a 100644 --- a/tools/logic_lint/src/lints.rs +++ b/tools/logic_lint/src/lints.rs @@ -386,7 +386,7 @@ make_lints! { lints.extend(check_vars(src, line, args)); } } - "read" (3) { + "read" | "sensor" (3) { if let [_, result, args @ ..] = line.args() { lints.extend(check_assign_var(src, line, result)); lints.extend(check_vars(src, line, args));