diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 01:03:15 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 01:03:15 +0100 |
commit | e558a218c6469c37cb17e17fd6789787090e6933 (patch) | |
tree | 6d9f9e90e624a67335418e1bbdec0c62e02db65f /ftdetect | |
parent | 16774887a3fe26a09326585f871748ddf158905e (diff) | |
download | vim-polyglot-e558a218c6469c37cb17e17fd6789787090e6933.tar.gz vim-polyglot-e558a218c6469c37cb17e17fd6789787090e6933.zip |
Add razor syntax, fixes #450
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 7 |
1 files changed, 7 insertions, 0 deletions
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 |