mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
--lsp sometimes does not emit end tag #2194.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user