Mercurial > vim
comparison runtime/filetype.vim @ 29326:1f1d99bba06c v9.0.0006
patch 9.0.0006: not all Visual Basic files are recognized
Commit: https://github.com/vim/vim/commit/8b5901e2f9466eb6f38f5b251e871f609f65e252
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 29 14:39:12 2022 +0100
patch 9.0.0006: not all Visual Basic files are recognized
Problem: Not all Visual Basic files are recognized.
Solution: Change detection of *.cls files. (Doug Kearns)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Jun 2022 15:45:03 +0200 |
parents | 71f2af5d8447 |
children | f4f531986753 |
comparison
equal
deleted
inserted
replaced
29325:ef612068880a | 29326:1f1d99bba06c |
---|---|
1796 | 1796 |
1797 " SLRN | 1797 " SLRN |
1798 au BufNewFile,BufRead .slrnrc setf slrnrc | 1798 au BufNewFile,BufRead .slrnrc setf slrnrc |
1799 au BufNewFile,BufRead *.score setf slrnsc | 1799 au BufNewFile,BufRead *.score setf slrnsc |
1800 | 1800 |
1801 " Smalltalk (and TeX) | 1801 " Smalltalk |
1802 au BufNewFile,BufRead *.st setf st | 1802 au BufNewFile,BufRead *.st setf st |
1803 au BufNewFile,BufRead *.cls | 1803 |
1804 \ if getline(1) =~ '^%' | | 1804 " Smalltalk (and Rexx, TeX, and Visual Basic) |
1805 \ setf tex | | 1805 au BufNewFile,BufRead *.cls call dist#ft#FTcls() |
1806 \ elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' | | |
1807 \ setf rexx | | |
1808 \ else | | |
1809 \ setf st | | |
1810 \ endif | |
1811 | 1806 |
1812 " Smarty templates | 1807 " Smarty templates |
1813 au BufNewFile,BufRead *.tpl setf smarty | 1808 au BufNewFile,BufRead *.tpl setf smarty |
1814 | 1809 |
1815 " SMIL or XML | 1810 " SMIL or XML |