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

builtin_map does not exists and makes shabang detection to fail #48

Closed
leiserfg opened this issue Nov 25, 2021 · 3 comments
Closed

builtin_map does not exists and makes shabang detection to fail #48

leiserfg opened this issue Nov 25, 2021 · 3 comments

Comments

@leiserfg
Copy link
Contributor

shebang = builtin_map.shebang[shebang] or shebang

@leiserfg leiserfg changed the title builtin_map does not exists and makes shabang detection to fails builtin_map does not exists and makes shabang detection to fail Nov 25, 2021
@leiserfg
Copy link
Contributor Author

leiserfg commented Nov 25, 2021

While trying to fix this I noticed that there are several instances of dead code (redefined functions/functions that are never called...), should I correct them or are they WIP code?
For instance try_all_maps is not called and has errors, analyze_shebang has two definitions.

@leiserfg leiserfg mentioned this issue Nov 25, 2021
@nathom
Copy link
Owner

nathom commented Nov 27, 2021

This issue, along with the dead code was the result of a pretty bad merge that I made. Thanks for the fix.

@nathom nathom closed this as completed Nov 27, 2021
@leiserfg
Copy link
Contributor Author

It will be nice to have something like https://github.com/vitalk/vim-shebang as in some cases the program and the filetype name don't match.

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

2 participants