From e558a218c6469c37cb17e17fd6789787090e6933 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 Mar 2020 01:03:15 +0100 Subject: Add razor syntax, fixes #450 --- ftdetect/polyglot.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 85259f4f..d8f2679c 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1174,6 +1174,13 @@ au BufRead,BufNewFile *.raml set ft=raml augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'razor') == -1 + augroup filetypedetect + " razor, from razor.vim in adamclerk/vim-razor +autocmd BufNewFile,BufRead *.cshtml setf razor + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 augroup filetypedetect " reason, from reason.vim in reasonml-editor/vim-reason-plus -- cgit v1.2.3