comparison runtime/filetype.vim @ 7299:e31e803a2910 v7.4.955

commit https://github.com/vim/vim/commit/3b8fcd945c5f0ee104eaabcf969fb6f973e79c77 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 3 20:14:12 2015 +0100 patch 7.4.955 Problem: Vim doesn't recognize .pl6 and .pod6 files. Solution: Recognize them as perl6 and pod6. (Mike Eve, closes https://github.com/vim/vim/issues/511)
author Christian Brabandt <cb@256bit.org>
date Thu, 03 Dec 2015 20:15:04 +0100
parents 30042ddff503
children 514f51fa1966
comparison
equal deleted inserted replaced
7298:472706259af6 7299:e31e803a2910
1398 au BufNewFile,BufRead *.pl,*.PL call s:FTpl() 1398 au BufNewFile,BufRead *.pl,*.PL call s:FTpl()
1399 else 1399 else
1400 au BufNewFile,BufRead *.pl call s:FTpl() 1400 au BufNewFile,BufRead *.pl call s:FTpl()
1401 endif 1401 endif
1402 au BufNewFile,BufRead *.plx,*.al setf perl 1402 au BufNewFile,BufRead *.plx,*.al setf perl
1403 au BufNewFile,BufRead *.p6,*.pm6 setf perl6 1403 au BufNewFile,BufRead *.p6,*.pm6,*.pl6 setf perl6
1404 1404
1405 func! s:FTpl() 1405 func! s:FTpl()
1406 if exists("g:filetype_pl") 1406 if exists("g:filetype_pl")
1407 exe "setf " . g:filetype_pl 1407 exe "setf " . g:filetype_pl
1408 else 1408 else
1427 \ setf perl | 1427 \ setf perl |
1428 \ endif 1428 \ endif
1429 1429
1430 " Perl POD 1430 " Perl POD
1431 au BufNewFile,BufRead *.pod setf pod 1431 au BufNewFile,BufRead *.pod setf pod
1432 au BufNewFile,BufRead *.pod6 setf pod6
1432 1433
1433 " Php, php3, php4, etc. 1434 " Php, php3, php4, etc.
1434 " Also Phtml (was used for PHP 2 in the past) 1435 " Also Phtml (was used for PHP 2 in the past)
1435 " Also .ctp for Cake template file 1436 " Also .ctp for Cake template file
1436 au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php 1437 au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php