Some tools (especially bat) check source files for a shebang line and if present use this to assign the according syntax rules. I'm wondering if this would be possible for delta, too.
Currently, a source file seems to be considered a specific language only if its name/extension can be mapped to a known language. Therefore, generically named files (e.g. executable shell scripts without *.sh filename extension) are not being syntax highlighted by delta. Considering a shebang could be an option in addition to filenames or --map-syntax.
Maybe it's even possible to use the algorithm/regexes which bat has already implemented ?
Some tools (especially
bat) check source files for a shebang line and if present use this to assign the according syntax rules. I'm wondering if this would be possible fordelta, too.Currently, a source file seems to be considered a specific language only if its name/extension can be mapped to a known language. Therefore, generically named files (e.g. executable shell scripts without
*.shfilename extension) are not being syntax highlighted bydelta. Considering a shebang could be an option in addition to filenames or--map-syntax.Maybe it's even possible to use the algorithm/regexes which
bathas already implemented ?