diff options
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index 4a7a1cbefe..af6d77ecbf 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -1636,6 +1636,7 @@ local patterns_hashbang = { ['icon\\>'] = { 'icon', { vim_regex = true } }, guile = 'scheme', ['nix%-shell'] = 'nix', + ['crystal\\>'] = { 'crystal', { vim_regex = true } }, } ---@private diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 1c4208d3a4..dfeed25a8d 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -855,6 +855,7 @@ let s:script_checks = { \ 'fish': [['#!/path/fish']], \ 'forth': [['#!/path/gforth']], \ 'icon': [['#!/path/icon']], + \ 'crystal': [['#!/path/crystal']], \ } " Various forms of "env" optional arguments. |