diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-02-19 10:46:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-19 02:46:27 +0000 |
| commit | e98a6979eee8a0c490d91cf34667f7975b60c3ef (patch) | |
| tree | beb981cc707b034c23accd1b059254bb709b77a6 /runtime/lua/vim/filetype.lua | |
| parent | e142e01d570c8f2532ba586b4086953742cd0f01 (diff) | |
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
https://github.com/vim/vim/commit/68dbb58d5189d1293b0f8e032af6bcb84101bd86
Co-authored-by: tris203 <admin@snappeh.com>
Diffstat (limited to 'runtime/lua/vim/filetype.lua')
| -rw-r--r-- | runtime/lua/vim/filetype.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 501a38856d..8beafe608b 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', |
