Skip to content

Box-drawing characters cause error locations to be wrong #742

@Xanewok

Description

@Xanewok

For

unexpected

I get

Error: Expected ConstantKeyword or OpenBracket.
   ╭─[file.sol:1:12]
   │
 1 │ unexpected
   │            │ 
   │            ╰─ Error occurred here.
───╯

However, for

// ╒═══════════════════════════════════════════╕
//               user's functions
// ╘═══════════════════════════════════════════╛
unexpected

I get

Error: Expected ConstantKeyword or OpenBracket.
   ╭─[file.sol:?:?]
   │
   │ 
───╯
Couldn't parse the Solidity source file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions