alefragnani / vscode-language-pascal

Pascal language extension for Visual Studio Code
MIT License
216 stars 47 forks source link

[BUG] - Nested records mess with syntax highlighting #136

Closed TheWitheredStriker closed 1 year ago

TheWitheredStriker commented 1 year ago

image

As the screenshot shows, it doesn't seem like the extension likes nested records :P

Lazarus has no issue: image

Environment/version

Steps to reproduce

  1. Create a nested record, e.g. let's say you're creating a record Human, and creating a record within that record for their names.
alefragnani commented 1 year ago

Hi @TheWitheredStriker ,

Just tested your scenario, and the extension seems to be working just fine.

image

In fact, it's weird to think this could not work, because the record keyword is just that, a keyword. It has no structure/pattern involved, like when you declare a procedure. So, whenever you find a record in the source code, it should be highlighted. It is even weird that in your screenshot, the Name attribute is not recognized as a keyword, which should be, as you can see on my screenshot.

Are you sure this print was made using the Pascal Extension? Wouldn't you be using OmniPascal or other extension?

Hope this helps

TheWitheredStriker commented 1 year ago

Hi there! I just checked, and indeed, it was the fault of a different extension I had unwittingly installed at the same time. My bad!