DanielGavin / ols

Language server for Odin
MIT License
439 stars 67 forks source link

Parse statements with `or_continue` and `or_break` #382

Closed thetarnav closed 5 months ago

thetarnav commented 5 months ago

It seems that or_else and or_return are supported, but not or_continue and or_break. (no semantic tokens/go to definition/hover) Which is understandable as they were added recently. I'm guessing it should be a simple change to parse them.

DanielGavin commented 5 months ago

Are we talking about the formatter? Is the ast already in core:odin/parser?

thetarnav commented 5 months ago

no, about ols, is it really not in ast? From looking at the ast package there is Or_Branch_Expr node and Token_Kind.Or_Break and Token_Kind.Or_Continue And there is some code in the parser for creating those ...added 7 months ago.

DanielGavin commented 5 months ago

It seems it is. Fixed.