]> granicus.if.org Git - vim/commitdiff
patch 9.0.0566: Nim files are not recognized v9.0.0566
authorNbiba Bedis <bedisnbiba@gmail.com>
Sat, 24 Sep 2022 10:04:38 +0000 (11:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 24 Sep 2022 10:04:38 +0000 (11:04 +0100)
Problem:    Nim files are not recognized.
Solution:   Add patterns for Nim files. (Nbiba Bedis, closes #11205)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 17697a1297bbc0ebf154da44ade3221729de7f98..e537d93311f479a4653669f3b791b4e1e88065d7 100644 (file)
@@ -1278,6 +1278,9 @@ au BufNewFile,BufRead .netrc                      setf netrc
 " Nginx
 au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf                    setf nginx
 
+" Nim file
+au BufNewFile,BufRead *.nim,*.nims,*.nimble    setf nim
+
 " Ninja file
 au BufNewFile,BufRead *.ninja                  setf ninja
 
index e66fd0c3077080942cfb5d04073662df168b7d75..e2177e50372b3cbfbb3f933e64c63b118d0d3251 100644 (file)
@@ -387,6 +387,7 @@ let s:filename_checks = {
     \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'],
     \ 'netrc': ['.netrc'],
     \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
+    \ 'nim': ['file.nim', 'file.nims', 'file.nimble'],
     \ 'ninja': ['file.ninja'],
     \ 'nix': ['file.nix'],
     \ 'nqc': ['file.nqc'],
index 386babf5c8798155410c1db4a2eb8c2c8dde3523..26eada3463fcd6d840824121e57199be71e20013 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    566,
 /**/
     565,
 /**/