From: Bram Moolenaar Date: Thu, 29 Jul 2010 21:12:43 +0000 (+0200) Subject: Dectect Perl6. X-Git-Tag: v7.3~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b72f1d2aa702c6df0d093b39be646a96c11dfb7;p=vim Dectect Perl6. --- diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 0b3b13579..e30b5c43f 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar -" Last change: 2009 Dec 24 +" Last change: 2010 Jul 29 " This file is called by an autocommand for every file that has just been " loaded into a buffer. It checks if the type of file can be recognized by @@ -100,6 +100,10 @@ if s:line1 =~ "^#!" elseif s:name =~ 'lua' set ft=lua + " Perl 6 + elseif s:name =~ 'perl6' + set ft=perl6 + " Perl elseif s:name =~ 'perl' set ft=perl