# HG changeset patch # User Bram Moolenaar # Date 1679258705 -3600 # Node ID 6bdf843c30231851efbb85a230e9e5e5d9cacd34 # Parent 3954e4aec820b1b2594a60e9f5ff53a3127a953e patch 9.0.1415: Crystal files are not recognized Commit: https://github.com/vim/vim/commit/7c4516fe93d865f4ef1877181f8156b8b9331856 Author: Amaan Qureshi Date: Sun Mar 19 20:43:26 2023 +0000 patch 9.0.1415: Crystal files are not recognized Problem: Crystal files are not recognized. Solution: Add a pattern for Crystal files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12175) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -439,6 +439,9 @@ au BufNewFile,BufRead *.cook setf cook " needs to be inspected. au BufNewFile,BufRead *.cql setf cqlang +" Crystal +au BufNewFile,BufRead *.cr setf crystal + " CSV Files au BufNewFile,BufRead *.csv setf csv diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -131,6 +131,7 @@ let s:filename_checks = { \ 'cqlang': ['file.cql'], \ 'crm': ['file.crm'], \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], + \ 'crystal': ['file.cr'], \ 'cs': ['file.cs', 'file.csx'], \ 'csc': ['file.csc'], \ 'csdl': ['file.csdl'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1415, +/**/ 1414, /**/ 1413,