Skip to content

Multiline string line-ending backslash rejects valid input #382

Description

@gildor

Summary

ktoml throws UnknownEscapeSymbolsException on valid multiline basic strings. The line-ending backslash (\ at end of line, used to trim the next line's leading whitespace) is not handled correctly in all cases.

Affected toml-test cases (3)

Found via toml-lang/toml-test compliance suite:

  • valid/string/ends-in-whitespace-escape.toml — backslash with trailing whitespace before newline
  • valid/string/multiline.toml — various multiline string patterns
  • valid/string/multiline-empty.toml — empty multiline strings

Related: #32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions