onyx-lang/onyx

KDL parsing bug when a final new-line isn't present

Closed this issue · 0 comments

When parsing a KDL file with the standard library (used by onyx-lsp), parsing infinitely loops if there not a newline after the last element in the document.

Here is an example that breaks. Make sure your editor does not add a newline automatically.

lsp {
    mode "file"
}