DanielGavin / ols

Language server for Odin
MIT License
382 stars 58 forks source link

Major improvements to the textmate grammar #287

Closed thetarnav closed 6 months ago

thetarnav commented 6 months ago

I've been making a lot of small changes to the grammar since last time, but only now I think they are stable enough to share.

More and more tokens have their proper scopes guessed from just the syntax. I think that almost every token could be guessed accurately, with few exceptions to leave to semantic tokens.

Here are few changes:

image

image

image

And few small fixes and improvements, like using --- in forgein code blocks.

image

I've been vscode with those changes for a while and tried to go over odin and old codebases to see if there are some bugs with highlighting, but it seems to be working pretty well. But it probably would be smart for someone else to try them as well.

DanielGavin commented 6 months ago

Sweet thanks.

I'll try and get it on my computer locally and use it for a while.