Serhioromano / vscode-st

Extension for VS Code to support Structured Text language.
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st#overview
MIT License
142 stars 28 forks source link

Variable with name containing TO is interpreted as a function #47

Closed AndersHogqvist closed 1 year ago

AndersHogqvist commented 2 years ago

When a variable name contains TO the syntax highlighting will interpret and highlight it as a function.

Serhioromano commented 1 year ago

Can you show me an example I cannot reproduce. Also refer to theme you are using.

AndersHogqvist commented 1 year ago

I'm using the dark theme (of course ;-)) and here's some variables we have in one of the files: https://app.box.com/s/i9thn748hh75fwj0xakesicw62ze2nnh

As you can see the first three variables are highlighted as functions and the rest as variables and that's because they contain TO

Serhioromano commented 1 year ago

Now I see what you mean. it is not TO but _TO_ the reason. I'll try to fix it.

Serhioromano commented 1 year ago

I have released 1.12.14 version where I fixed number of things discovered because of your issue. Should be fine now.

Serhioromano commented 1 year ago

@AndersHogqvist please report if it works fine now.

AndersHogqvist commented 1 year ago

Yes sir, it works perfectly fine 🙂