bitwisecook / vscode-tcl

Tcl for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=bitwisecook.tcl
MIT License
39 stars 19 forks source link

Syntax highlighting broken when # is used with {} #28

Open SilverGekko opened 1 year ago

SilverGekko commented 1 year ago

image

I have the first regsub code inside a proc. Highlighting breaks when the pound symbol is used after a curly brace. I played around with it, and included some of my observations in the screenshot.

The issue here is that after the proc that encloses the syntax error ends, highlighting is even more broken for the rest of the file. The proc immediately following the proc with the regsub code basically has no highlighting: image

I deleted the [regsub {#this shouldn't be gray}] code from my file and the large swaths of broken syntax fixed themselves.