summaryrefslogtreecommitdiffhomepage
path: root/src/CompilerKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-24 07:11:06 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-24 07:11:06 +0100
commitc241e7582926b8455f0be469c6c6505d3fb0250d (patch)
tree07b0cae21cdf8217d69eacb195d10832b67aeca4 /src/CompilerKit
parenta4a89a27bdcaad6c48f21283bbc8ea9a77ccae2d (diff)
[FIX] CompilerKit: Fix syntax checker rule.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit')
-rw-r--r--src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp
index f42ad0a..da7af9a 100644
--- a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp
+++ b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp
@@ -48,8 +48,8 @@ CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input) {
}
}
- if (input.find("(") != CompilerKit::STLString::npos && !input.ends_with(";")) {
- if (input.find(":=") == CompilerKit::STLString::npos) {
+ if (input.find("(") != CompilerKit::STLString::npos) {
+ if (input.find(";") == CompilerKit::STLString::npos) {
Detail::print_error("A function call must always end with ';'", "check");
return false;
}