Mercurial > vim
comparison runtime/filetype.vim @ 30023:87063bfe81cd v9.0.0349
patch 9.0.0349: filetype of *.sil files not well detected
Commit: https://github.com/vim/vim/commit/be807d582499acbe314ead3891481cba6ca136df
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 15:01:25 2022 +0100
patch 9.0.0349: filetype of *.sil files not well detected
Problem: Filetype of *.sil files not well detected.
Solution: Inspect the file contents to guess the filetype.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 16:15:03 +0200 |
parents | 32e35a6d4292 |
children | 01919e5a070c |
comparison
equal
deleted
inserted
replaced
30022:b8bc697bb6a1 | 30023:87063bfe81cd |
---|---|
1820 | 1820 |
1821 " Smalltalk | 1821 " Smalltalk |
1822 au BufNewFile,BufRead *.st setf st | 1822 au BufNewFile,BufRead *.st setf st |
1823 | 1823 |
1824 " Smalltalk (and Rexx, TeX, and Visual Basic) | 1824 " Smalltalk (and Rexx, TeX, and Visual Basic) |
1825 au BufNewFile,BufRead *.cls call dist#ft#FTcls() | 1825 au BufNewFile,BufRead *.cls call dist#ft#FTcls() |
1826 | 1826 |
1827 " Smarty templates | 1827 " Smarty templates |
1828 au BufNewFile,BufRead *.tpl setf smarty | 1828 au BufNewFile,BufRead *.tpl setf smarty |
1829 | 1829 |
1830 " SMIL or XML | 1830 " SMIL or XML |
1927 | 1927 |
1928 " Swift | 1928 " Swift |
1929 au BufNewFile,BufRead *.swift setf swift | 1929 au BufNewFile,BufRead *.swift setf swift |
1930 au BufNewFile,BufRead *.swift.gyb setf swiftgyb | 1930 au BufNewFile,BufRead *.swift.gyb setf swiftgyb |
1931 | 1931 |
1932 " Swift Intermediate Language | 1932 " Swift Intermediate Language or SILE |
1933 au BufNewFile,BufRead *.sil setf sil | 1933 au BufNewFile,BufRead *.sil call dist#ft#FTsil() |
1934 | 1934 |
1935 " Sysctl | 1935 " Sysctl |
1936 au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl | 1936 au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl |
1937 | 1937 |
1938 " Systemd unit files | 1938 " Systemd unit files |