BlueBoxWare / LibGDXPlugin

An IntelliJ plugin for use with LibGDX
Apache License 2.0
147 stars 8 forks source link

Incorrect highlighting when JSON contains comment start sequence in string #24

Closed acanthite1855 closed 3 years ago

acanthite1855 commented 3 years ago

I was trying to make some kind of index file, where I could specify whilch paths to ignore and whilch to add to processing. When I wrote some JSON to try it, editor started to highlight it in a weird way. Here is an example:

{
    exclude: ["test/**"]
    include: ["other/**"]
    test: ["*/some"]
}

This is what it looks like in Intellij: image After the / characters in the first field, highlighting breaks until editor reaches / in the third field. It looks like it partialy understands it as multiline comment (the text became italic and squre brackets became gray).

BlueBoxWare commented 3 years ago

The problem is that after adding a closing quote, making it a normal string, the code doesn't get fully re-parsed and the old, now wrong, highlighting remains until the next re-parse. Thanks for the notice, I'm working on a fix.

BlueBoxWare commented 3 years ago

It will be fixed in the next update.