bitwisecook / vscode-tcl

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

fix command substitutions embedded in strings terminated with escaped backslashes #23

Closed cshorler closed 1 year ago

cshorler commented 1 year ago

this line breaks subsequent formatting, after a bit of digging - it's because of the escaped backslash before the closing square bracket

set parent_prefix "^[re_escape ${parent_path}\\].*"
puts {hello, world}

one possible fix attached (tests okay)