It seems the following two lines of code are breaking the syntax coloring in TCL.
regsub -all {/} $original {\\\\} target # The last } is being escaped
set grep_keyword [string trim $grep_keyword {"}] # The " character is starting a new quote
This code was like this when I opened the files. Is there a way to fix this?
So, I came back to this and put some effort into solving my problem. I altered the tmLangauge file for TCL. The } character is recognized as the ending brace. I just added \} to this definition as well.
In the above, I made a modification to the RegEx to look like so: