Skip to content

Improve diagnostics for unclosed strings, heredocs, atoms and sigils #13183

@viniciusmuller

Description

@viniciusmuller

Elixir and Erlang/OTP versions

main

Operating system

any

Current behavior

  • Unclosed atoms with string content
a = :"Elixir.UnclosedModule

String.to_atom(a)
  • Unclosed heredocs
a = """
test string

IO.inspect(10 + 20)
  • Unclosed sigils
a = ~s[test string
[IO.inspect(10 + 20)

IO.inspect(a)
  • Unclosed strings
a = "test string

IO.inspect(10 + 20)

Expected behavior

Formatting similar to the 'unclosed delimiter' diagnostic for these cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions