[Script Support] Check for script executability instead of comparing extensions by remi6397 · Pull Request #525 · Codeux-Software/Textual (original) (raw)

Currently only several scripting languages are "supported" (files with unrecognised extensions are filtered out), but there are no reasons to prevent loading scripts written in other languages (e.g. JavaScript), or having alternative extensions (e.g. .php5), or even compiled binaries.

This PR adds execute permission check instead of filtering files by known extensions.