A BBEdit codeless language module for fish, the friendly interactive shell.
BBEdit's built-in "Unix shell script" language module doesn't fold or index fish functions, or highlight some fish commands. This language module does.
On the other hand it has its own limitations because it is codeless: it relies on dumb and fragile indentation-matching to match the beginning and end of functions, and it currently behaves undesirably if you use things that look like a fish command but aren't, such as 'time' in set time
.
A proper codeful language module with intelligent parsing would be a much better alternative. If this tempts you to write one, please do.
Thanks to BBEdit’s deservedly famous and amazing technical support for helping me iron out some issues.
LICENSE: MIT, but honestly, do whatever.