summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-01 23:02:36 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-01 23:02:36 +0200
commitf2ef4cedecf554c0c9f0694f93df1d53a57bf70c (patch)
treeee95ac48f56aee9607aa3c92fe478cf63f9c26b7 /ftdetect
parent45c1923f43f2bb2e626fe910654d4395a0e50a04 (diff)
downloadvim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.tar.gz
vim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.zip
Fix reason filetype detection, closes #532v4.7.1
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 974aa924..9e86a7ad 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -218,6 +218,11 @@ if !has_key(s:disabled_packages, 'awk')
au BufNewFile,BufRead *.awk setf awk
endif
+if !has_key(s:disabled_packages, 'reason')
+ au BufNewFile,BufRead *.rei setf reason
+ au! BufNewFile,BufRead *.re call polyglot#DetectReFiletype()
+endif
+
if !has_key(s:disabled_packages, 'c/c++')
au BufNewFile,BufRead *.c setf c
au BufNewFile,BufRead *.cats setf c
@@ -237,9 +242,9 @@ if !has_key(s:disabled_packages, 'c/c++')
au BufNewFile,BufRead *.inl setf cpp
au BufNewFile,BufRead *.ino setf cpp
au BufNewFile,BufRead *.ipp setf cpp
- au BufNewFile,BufRead *.re setf cpp
au BufNewFile,BufRead *.tcc setf cpp
au BufNewFile,BufRead *.tpp setf cpp
+ au! BufNewFile,BufRead *.re call polyglot#DetectReFiletype()
endif
if !has_key(s:disabled_packages, 'caddyfile')
@@ -1045,11 +1050,6 @@ if !has_key(s:disabled_packages, 'razor')
au BufNewFile,BufRead *.razor setf razor
endif
-if !has_key(s:disabled_packages, 'reason')
- au BufNewFile,BufRead *.re setf reason
- au BufNewFile,BufRead *.rei setf reason
-endif
-
if !has_key(s:disabled_packages, 'rst')
au BufNewFile,BufRead *.rest setf rst
au BufNewFile,BufRead *.rest.txt setf rst