Skip to content

Formatted output is lexically different from the input (inside comment). #2424

Open
@daniel-s-larsen

Description

@daniel-s-larsen

Test case

//   ____  ____
//  /   /\/   /
// /___/  \  /
// \   \   \/
//  \   \
//  /   /
// /___/   /\
// \   \  /  \
//  \___\/\___\

(standard Xilinx header for IP they're sharing)

Include any options or configuration used.
--wrap_spaces 2 was used, but is not relevant here.

Actual output

-: Formatted output is lexically different from the input.    Please file a bug.  Details:
Mismatch in token sequence lengths: 10 vs. 14
First mismatched token [4]: ("// end of line comment") (#714: "//  \\   \\") vs. ("// end of line comment") (#714: "//  \\   ")
; problematic formatter output is
//   ____  ____
//  /   /\/   /
// /___/  \  /
// \   \   \/
//  \   \
//  /   /
// /___/   /\
// \   \  /  \
//  \___\/\___\
<<EOF>>

Include any possible diagnostic messages from the formatter.

Expected or suggested output
Comment line should not have been adjusted at all, as this is just line art.

Citations to published style guides would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterVerilog code formatter issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions