DanielGavin / ols

Language server for Odin
MIT License
425 stars 66 forks source link

Handle '==' and '!=' for 'when' directive #211

Closed ryuukk closed 1 year ago

ryuukk commented 1 year ago

Previously the following wasn't allowed:


when ODIN_OS != .Freestanding {

  test :: proc() {}

}

With this change, if i'm on Linux or Windows, i will get the symbol in the completion items

Ideally it should also support else, but i can't figure out how to do that