summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-29 14:39:12 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-29 14:39:12 +0100
commit8b5901e2f9466eb6f38f5b251e871f609f65e252 (patch)
tree430a9eae50338cd4685c7b542b51049bd2b8da5b /runtime/filetype.vim
parent040674129f3382822eeb7b590380efa5228124a8 (diff)
patch 9.0.0006: not all Visual Basic files are recognizedv9.0.0006
Problem: Not all Visual Basic files are recognized. Solution: Change detection of *.cls files. (Doug Kearns)
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim13
1 files changed, 4 insertions, 9 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 6280d32e53..1648e82ab7 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1798,16 +1798,11 @@ au BufNewFile,BufRead *.il,*.ils,*.cdf setf skill
au BufNewFile,BufRead .slrnrc setf slrnrc
au BufNewFile,BufRead *.score setf slrnsc
-" Smalltalk (and TeX)
+" Smalltalk
au BufNewFile,BufRead *.st setf st
-au BufNewFile,BufRead *.cls
- \ if getline(1) =~ '^%' |
- \ setf tex |
- \ elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' |
- \ setf rexx |
- \ else |
- \ setf st |
- \ endif
+
+" Smalltalk (and Rexx, TeX, and Visual Basic)
+au BufNewFile,BufRead *.cls call dist#ft#FTcls()
" Smarty templates
au BufNewFile,BufRead *.tpl setf smarty