mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
vim-patch:9.0.1807: runtime: crystal scripts not recognised (#24949)
Problem: runtime: crystal scripts not recognised
Solution: Filetype detect Crystal scripts by shebang line
closes: vim/vim#12935
9b73902dbe
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -1636,6 +1636,7 @@ local patterns_hashbang = {
|
|||||||
['icon\\>'] = { 'icon', { vim_regex = true } },
|
['icon\\>'] = { 'icon', { vim_regex = true } },
|
||||||
guile = 'scheme',
|
guile = 'scheme',
|
||||||
['nix%-shell'] = 'nix',
|
['nix%-shell'] = 'nix',
|
||||||
|
['crystal\\>'] = { 'crystal', { vim_regex = true } },
|
||||||
}
|
}
|
||||||
|
|
||||||
---@private
|
---@private
|
||||||
|
|||||||
@@ -855,6 +855,7 @@ let s:script_checks = {
|
|||||||
\ 'fish': [['#!/path/fish']],
|
\ 'fish': [['#!/path/fish']],
|
||||||
\ 'forth': [['#!/path/gforth']],
|
\ 'forth': [['#!/path/gforth']],
|
||||||
\ 'icon': [['#!/path/icon']],
|
\ 'icon': [['#!/path/icon']],
|
||||||
|
\ 'crystal': [['#!/path/crystal']],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Various forms of "env" optional arguments.
|
" Various forms of "env" optional arguments.
|
||||||
|
|||||||
Reference in New Issue
Block a user