zls icon indicating copy to clipboard operation
zls copied to clipboard

Highlighting broken after if (condition) continue;

Open SpexGuy opened this issue 3 years ago • 2 comments

Putting the line if (condition) continue; in a file breaks syntax highlighting after that point in the file. Suggestions and other features still seem to work though. Putting braces around the if body fixes highlighting as a workaround. image

SpexGuy avatar Dec 02 '21 16:12 SpexGuy

Are you using vscode? zls doesn't have anything to do with highlighting. I'm guessing you are using the vscode-zig extension. Maybe you should create an issue over there.

MineBill avatar Dec 03 '21 20:12 MineBill

the extension simple acts as a middleman between zls and vscode. zls is definitely responsible for the highlighting

nektro avatar Dec 03 '21 22:12 nektro

The provided reproduction no longer has the issue with latest zls

leecannon avatar Oct 10 '22 22:10 leecannon