To: vim_dev@googlegroups.com Subject: Patch 8.2.4826 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4826 Problem: .cshtml files are not recognized. Solution: Use html filetype for .cshtml files. (Julien Voisin, closes #10212) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.4825/runtime/filetype.vim 2022-04-19 19:38:34.381576220 +0100 --- runtime/filetype.vim 2022-04-25 17:37:47.196774642 +0100 *************** *** 821,826 **** --- 821,827 ---- " HTML (.shtml and .stm for server side) au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml() + au BufNewFile,BufRead *.cshtml setf html " HTML with Ruby - eRuby au BufNewFile,BufRead *.erb,*.rhtml setf eruby *** ../vim-8.2.4825/src/testdir/test_filetype.vim 2022-04-19 19:38:34.381576220 +0100 --- src/testdir/test_filetype.vim 2022-04-25 17:38:33.296747028 +0100 *************** *** 258,263 **** --- 258,264 ---- \ 'rnoweb': ['file.rnw', 'file.snw'], \ 'rrst': ['file.rrst', 'file.srst'], \ 'template': ['file.tmpl'], + \ 'html': ['file.html', 'file.htm', 'file.cshtml'], \ 'htmlm4': ['file.html.m4'], \ 'httest': ['file.htt', 'file.htb'], \ 'ibasic': ['file.iba', 'file.ibi'], *** ../vim-8.2.4825/src/version.c 2022-04-25 14:37:42.410308492 +0100 --- src/version.c 2022-04-25 17:34:24.816891897 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4826, /**/ -- hundred-and-one symptoms of being an internet addict: 51. You put a pillow case over your laptop so your lover doesn't see it while you are pretending to catch your breath. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///