Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

request: shebang matching by pattern #86

Closed
baodrate opened this issue Jul 14, 2022 · 1 comment
Closed

request: shebang matching by pattern #86

baodrate opened this issue Jul 14, 2022 · 1 comment

Comments

@baodrate
Copy link

Could the shebang map be defined as to use patterns? It shouldn't break any common usages (only pattern character in common use in executable names is ., which would still match). The motivation is that it's not uncommon for python scripts to have (e.g.) /usr/bin/python2.7 or /usr/bin/python3.10 as their shebang (this is the case for /usr/bin/pydoc and /usr/bin/idle on my system)

@baodrate
Copy link
Author

I just realized that I already have core neovim's filetype.lua (#36), which natively handles this case well

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant