Skip to content

Strips inline comment and concatenates lines #564

Description

@chriselrod
julia> using JuliaFormatter

julia> format_text("""
       inds = foo()#= example =#
       loadexpr = bar()
       """)
"inds = foo()loadexpr = bar()\n"

(@v1.7) pkg> st JuliaFormatter
      Status `~/.julia/environments/v1.7/Project.toml`
  [98e50ef6] JuliaFormatter v0.22.7

The transformed code is invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions