diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-31 04:38:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 04:38:28 +0800 |
commit | 64631168188b76bfb5b57fb36e57cfd1114cf7f7 (patch) | |
tree | bbcf4fae0843139ae845ed96ed35e94e414b5bb3 /runtime/lua/vim | |
parent | 497cf996eb1cef54f049e1cca3661c063949be09 (diff) | |
download | rneovim-64631168188b76bfb5b57fb36e57cfd1114cf7f7.tar.gz rneovim-64631168188b76bfb5b57fb36e57cfd1114cf7f7.tar.bz2 rneovim-64631168188b76bfb5b57fb36e57cfd1114cf7f7.zip |
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
https://github.com/vim/vim/commit/9b73902dbe6f7940326bcd8dbc89d010d85d69c5
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 |
1 files changed, 1 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 |