]> granicus.if.org Git - vim/commitdiff
patch 8.2.3814: .csx files and .sln files are not recognized v8.2.3814
authorBram Moolenaar <Bram@vim.org>
Wed, 15 Dec 2021 13:30:43 +0000 (13:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 15 Dec 2021 13:30:43 +0000 (13:30 +0000)
Problem:    .csx files and .sln files are not recognized.
Solution:   Add filetype patterns. (Doug Kearns)

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

index 71709129411f4e27d6ef94d5e48d151dcd387b8c..7b2090ceaa92390f4dc91000276e717d4392b17c 100644 (file)
@@ -260,7 +260,7 @@ au BufNewFile,BufRead *.lpc,*.ulpc          setf lpc
 au BufNewFile,BufRead calendar                 setf calendar
 
 " C#
-au BufNewFile,BufRead *.cs                     setf cs
+au BufNewFile,BufRead *.cs,*.csx               setf cs
 
 " CSDL
 au BufNewFile,BufRead *.csdl                   setf csdl
@@ -1743,6 +1743,9 @@ au BufNewFile,BufRead *.speedup,*.spdata,*.spd    setf spup
 " Slice
 au BufNewFile,BufRead *.ice                    setf slice
 
+" Microsoft Visual Studio Solution
+au BufNewFile,BufRead *.sln                    setf solution
+
 " Spice
 au BufNewFile,BufRead *.sp,*.spice             setf spice
 
index 38941bab4471c4d883e620fb15f4cc21398cb33c..f4204f7e817a981d77b88d6da16a08880391c20f 100644 (file)
@@ -117,7 +117,7 @@ let s:filename_checks = {
     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
     \ 'crm': ['file.crm'],
     \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],
-    \ 'cs': ['file.cs'],
+    \ 'cs': ['file.cs', 'file.csx'],
     \ 'csc': ['file.csc'],
     \ 'csdl': ['file.csdl'],
     \ 'csp': ['file.csp', 'file.fdr'],
@@ -458,6 +458,7 @@ let s:filename_checks = {
     \ 'skill': ['file.il', 'file.ils', 'file.cdf'],
     \ 'slang': ['file.sl'],
     \ 'slice': ['file.ice'],
+    \ 'solution': ['file.sln'],
     \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'],
     \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'],
     \ 'slpspi': ['/etc/slp.spi', 'any/etc/slp.spi'],
index b8f9d9a7900643fc84fa5468c8fe9eaff8af7b43..3395864fe6755abb602aac89201cf436a143e6cd 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3814,
 /**/
     3813,
 /**/