The syntax highlighting for below shell script is incorrect, the nested parenthesis are not properly handled. No idea if this can be easily fixed...
Gerd
#!/bin/sh
currFolderPath=$( /usr/bin/osascript <<"EOT" tell application "Finder" try set currFolder to (folder of the front window as alias) on error set currFolder to (path to desktop folder as alias) end try POSIX path of currFolder end tell EOT ) cd "$currFolderPath"
On 20/10/2005, at 0.18, Gerd Knops wrote:
The syntax highlighting for below shell script is incorrect, the nested parenthesis are not properly handled. No idea if this can be easily fixed...
It's actually the here-doc which isn't handled. I added: patterns = ( { include = '$self'; } );
To the $( … ) rule, so the interpolated code gets parsed as well.