DanielGavin / ols

Language server for Odin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse statements with `or_continue` and `or_break`

thetarnav opened this issue · comments

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.

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

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.

It seems it is. Fixed.