diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-24 07:11:06 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-24 07:11:06 +0100 |
| commit | c241e7582926b8455f0be469c6c6505d3fb0250d (patch) | |
| tree | 07b0cae21cdf8217d69eacb195d10832b67aeca4 /src | |
| parent | a4a89a27bdcaad6c48f21283bbc8ea9a77ccae2d (diff) | |
[FIX] CompilerKit: Fix syntax checker rule.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp | 4 |
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; } |
