vim-patch:9.2.0025: filetype: cshtml incorrectly recognized (#37957)

Problem:  filetype: cshtml incorrectly recognized, razor files are not
          recognized
Solution: Detect *.cshtml and *.razor files as razor filetype
          (tris203)

Reference:
https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-10.0

closes: vim/vim#19207

68dbb58d51

Co-authored-by: tris203 <admin@snappeh.com>
This commit is contained in:
zeertzjq
2026-02-19 10:46:27 +08:00
committed by GitHub
parent e142e01d57
commit e98a6979ee
2 changed files with 4 additions and 2 deletions

View File

@@ -372,7 +372,6 @@ local extension = {
cs = 'cs',
csc = 'csc',
csdl = 'csdl',
cshtml = 'html',
fdr = 'csp',
csp = 'csp',
css = 'css',
@@ -1068,6 +1067,8 @@ local extension = {
MODx = 'rapid',
rasi = 'rasi',
rasinc = 'rasi',
cshtml = 'razor',
razor = 'razor',
rbs = 'rbs',
rego = 'rego',
rem = 'remind',