--lsp sometimes does not emit end tag #2194.

This commit is contained in:
Christoffer Lerno
2025-06-08 00:30:11 +02:00
parent 40554192b1
commit 1dcd40aa5f
2 changed files with 10 additions and 1 deletions

View File

@@ -415,7 +415,15 @@ void compiler_parse(void)
if (!parse_stdin()) has_error = true;
}
if (has_error) exit_compiler(EXIT_FAILURE);
if (has_error)
{
if (compiler.build.lsp_output)
{
eprintf("> ENDLSP-ERROR\n");
exit_compiler(COMPILER_SUCCESS_EXIT);
}
exit_compiler(EXIT_FAILURE);
}
compiler_parsing_time = bench_mark();
}