NomicFoundation / slang

Solidity compiler tooling by @NomicFoundation

Home Page:https://nomicfoundation.github.io/slang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error range includes leading trivia, instead of just the offending token

OmarTawfik opened this issue · comments

Originally discovered in #840:

Error: Expected OpenParen.
╭─[crates/solidity/testing/snapshots/cst_output/TupleDeconstructionStatement/with_var/input.sol:1:1]
1 │ ╭─▶ // "var" should be disabled in "0.5.0":
2 │ ├─▶ var (foo, bar) = rhs;
│ │
│ ╰─────────────────────────── Error occurred here.
───╯