jonnyboyC / kos-language-server

A language server for the Kerboscript (kOS) a language for Kerbal Space Program
MIT License
25 stars 6 forks source link

[BUG] Syntax highlighting not working for set to #109

Closed kylehoover closed 5 years ago

kylehoover commented 5 years ago

Describe the bug Syntax highlighting for set and to is not working in the outer file scope, but works fine in any curly-brace block scope.

To Reproduce

  1. Replicate the screenshot below in any .ks file.

Expected behavior Syntax highlighting for set and to should work in any scope.

Screenshots kos-set-to-bug

Editor (please complete the following information):

jonnyboyC commented 5 years ago

Thanks for reporting! should be a quick fix

jonnyboyC commented 5 years ago

So a quick test on my ubuntu machine didn't replicate the issue but let me try later today on my windows machine to see if I can get it reproduced

jonnyboyC commented 5 years ago

This is what appears on my windows 10 machine. Very similar appears in Ubuntu. Did this only start occurring after updating to 0.11.0? I may still look into tightening up the grammar but I'd mostly be working in the dark if I can't reproduce it.

image

kylehoover commented 5 years ago

I just switched the color theme to Default Dark + (which it looks like you're using) and it shows up the exact same as yours, which makes it seem the issue is with the color theme I'm using and not the grammar. Sorry for the false alarm!

jonnyboyC commented 5 years ago

No problem! the grammar files are pretty tricky and I have found like 5-10 little things in the last couple months so no worries. I'll close this for now but if you find this in some other context feel free to reopen it