diff options
author | Doug Kearns <dougkearns@gmail.com> | 2023-08-27 19:51:37 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-27 19:51:37 +0200 |
commit | 9b73902dbe6f7940326bcd8dbc89d010d85d69c5 (patch) | |
tree | d2f8c60f8e1ea8c6f535880315684a32b9e4bad4 /runtime/autoload | |
parent | 73aba18eb7f06ffe05d6e9f8cd6e260bb01d3d44 (diff) |
patch 9.0.1807: runtime: crystal scripts not recognisedv9.0.1807
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>
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/script.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index 5f3ae4aecc..6163003aa4 100644 --- a/runtime/autoload/dist/script.vim +++ b/runtime/autoload/dist/script.vim @@ -209,6 +209,10 @@ export def Exe2filetype(name: string, line1: string): string elseif name =~ 'nix-shell' return 'nix' + # Crystal + elseif name =~ '^crystal\>' + return 'crystal' + endif return '' |