jasmin-lang / jasmin

Language for high-assurance and high-speed cryptography
MIT License
271 stars 55 forks source link

Multiline strings break line numbers #943

Closed sarranz closed 2 weeks ago

sarranz commented 1 month ago

This program

#annot="
very
long
annotation
string
"
export fn main(stack u8[1] a) {}

reports

"ble.jazz", line 2 (27-28):
typing error: a has kind stack, only reg or reg ptr are allowed in parameter of non inlined function

but the error is not in line 2. I guess it's difficult to distinguish between this and annot="very\nlong\nannotation\nstring?

vbgl commented 2 weeks ago

Fixed in #959.