From 1f435dafff2452e0b55d1ca457ce7402e526e92a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 25 Apr 2022 17:40:56 +0100 Subject: [PATCH] patch 8.2.4826: .cshtml files are not recognized Problem: .cshtml files are not recognized. Solution: Use html filetype for .cshtml files. (Julien Voisin, closes #10212) --- runtime/filetype.vim | 1 + src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9dcca898c..f69ede488 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -821,6 +821,7 @@ au BufNewFile,BufRead *.t.html setf tilde " 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 888ff7a92..75674da72 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -258,6 +258,7 @@ let s:filename_checks = { \ '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'], diff --git a/src/version.c b/src/version.c index daca23c2c..8017f830b 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4826, /**/ 4825, /**/ -- 2.50.1