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));