Mercurial > vim
comparison runtime/scripts.vim @ 2437:aaa953373c91 vim73
Dectect Perl6.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 29 Jul 2010 23:12:43 +0200 |
parents | 7bc41231fbc7 |
children | fae782ef63dd |
comparison
equal
deleted
inserted
replaced
2436:e1c84b92c881 | 2437:aaa953373c91 |
---|---|
1 " Vim support file to detect file types in scripts | 1 " Vim support file to detect file types in scripts |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last change: 2009 Dec 24 | 4 " Last change: 2010 Jul 29 |
5 | 5 |
6 " This file is called by an autocommand for every file that has just been | 6 " This file is called by an autocommand for every file that has just been |
7 " loaded into a buffer. It checks if the type of file can be recognized by | 7 " loaded into a buffer. It checks if the type of file can be recognized by |
8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim. | 8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim. |
9 | 9 |
97 set ft=make | 97 set ft=make |
98 | 98 |
99 " Lua | 99 " Lua |
100 elseif s:name =~ 'lua' | 100 elseif s:name =~ 'lua' |
101 set ft=lua | 101 set ft=lua |
102 | |
103 " Perl 6 | |
104 elseif s:name =~ 'perl6' | |
105 set ft=perl6 | |
102 | 106 |
103 " Perl | 107 " Perl |
104 elseif s:name =~ 'perl' | 108 elseif s:name =~ 'perl' |
105 set ft=perl | 109 set ft=perl |
106 | 110 |