Skip to content

Commit

Permalink
Fix execShAndGetEnv proc so that Emacs highlighting works
Browse files Browse the repository at this point in the history
Change {"} into \" not to break Emacs highlight mechanism.
  • Loading branch information
Robert McLay authored and xdelaruelle committed Aug 8, 2024
1 parent 75ecbe1 commit 9c25a0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tcl/mfcmd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ proc execShAndGetEnv {elt_ignored_list shell script args} {
set varre {export (\S+?)=["']?(.*?)["']?$}
set funcre {(\S+?) \(\)\s?\n?{\s?\n(.+?)\n}$}
set aliasre {(\S+?)='(.*?)'$}
set varvalmap [list {\"} {"} \\\\ \\]
set varvalmap [list {\"} \" \\\\ \\]
set alvalmap [list {'\''} ' {'"'"'} ']
}
bash {
Expand All @@ -1382,7 +1382,7 @@ proc execShAndGetEnv {elt_ignored_list shell script args} {
set aliasre {alias (\S+?)='(.*?)'$}
set compre {complete (.+?) (\S+?)$}
set comprevar [list match value name]
set varvalmap [list {\"} {"} \\\\ \\]
set varvalmap [list {\"} \" \\\\ \\]
set alvalmap [list {'\''} ']
lappend shellopts --noprofile --norc
}
Expand All @@ -1397,7 +1397,7 @@ proc execShAndGetEnv {elt_ignored_list shell script args} {
set aliasre {alias (\S+?)='(.*?)'$}
set compre {complete (.+?) (\S+?)$}
set comprevar [list match value name]
set varvalmap [list {\"} {"} \\\\ \\]
set varvalmap [list {\"} \" \\\\ \\]
set alvalmap [list {'\''} ']
lappend shellopts --noprofile --norc
}
Expand All @@ -1413,7 +1413,7 @@ proc execShAndGetEnv {elt_ignored_list shell script args} {
set funcre {(\S+?)\(\) {\n?(.+?)}[;\n]?$}
set aliasre {(\S+?)=\$?'?(.*?)'?$}
set varvalmap [list {\'} ']
set alvalmap [list {\"} {"} {\\'} ' {\'} ' {\\\\} {\\}]
set alvalmap [list {\"} \" {\\'} ' {\'} ' {\\\\} {\\}]
}
zsh {
##nagelfar ignore +2 Found constant
Expand Down

0 comments on commit 9c25a0f

Please sign in to comment.