Problem: runtime: crystal scripts not recognised
Solution: Filetype detect Crystal scripts by shebang line
closes: #12935
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
elseif name =~ 'nix-shell'
return 'nix'
+ # Crystal
+ elseif name =~ '^crystal\>'
+ return 'crystal'
+
endif
return ''
fish: [['#!/path/fish']],
forth: [['#!/path/gforth']],
icon: [['#!/path/icon']],
+ crystal: [['#!/path/crystal']],
}
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1807,
/**/
1806,
/**/