summaryrefslogtreecommitdiffstats
path: root/syntax/fortran.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/fortran.vim')
-rw-r--r--syntax/fortran.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/fortran.vim b/syntax/fortran.vim
index ea2ccfa5..5acdf58f 100644
--- a/syntax/fortran.vim
+++ b/syntax/fortran.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'syntax/fortran.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('fortran', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fortran') == -1
" Vim syntax file
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
@@ -553,5 +548,3 @@ let b:current_syntax = "fortran"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8 tw=132
-
-endif