From 4203435c48adfec7950f5b9ab745e87c5296e486 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 24 May 2015 23:42:59 +0200 Subject: Update --- ftdetect/polyglot.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 8edb9a9d..e687fb8e 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -130,7 +130,7 @@ function! s:DetectPerl6() endif if line =~ '^\s*\%(use\s\+\)\=v6\%(\.\d\%(\.\d\)\=\)\=;' set filetype=perl6 " we matched a 'use v6' declaration - elseif line =~ '^\s*\%(\%(my\|our\)\s\+\)\=\(module\|class\|role\|enum\|grammar\)' + elseif line =~ '^\s*\%(\%(my\|our\)\s\+\)\=\%(unit\s\+\)\=\(module\|class\|role\|enum\|grammar\)' set filetype=perl6 " we found a class, role, module, enum, or grammar declaration endif break " we either found what we needed, or we found a non-POD, non-comment, -- cgit v1.2.3