changeset 32168:6bdf843c3023 v9.0.1415

patch 9.0.1415: Crystal files are not recognized Commit: https://github.com/vim/vim/commit/7c4516fe93d865f4ef1877181f8156b8b9331856 Author: Amaan Qureshi <amaanq12@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Mar 2023 21:45:05 +0100
parents 3954e4aec820
children 763fac292d5e
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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'],
--- 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,