diff runtime/filetype.vim @ 482:6f8b578776ab v7.0131

updated for version 7.0131
author vimboss
date Tue, 16 Aug 2005 23:01:50 +0000
parents 66080ac5dab7
children f012c4ed8c38
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:	Bram Moolenaar <Bram@vim.org>
-" Last Change:	2005 Aug 15
+" Last Change:	2005 Aug 16
 
 " Listen very carefully, I will say this only once
 if exists("did_load_filetypes")
@@ -1833,7 +1833,7 @@ au BufNewFile,BufRead *.y			call s:FTy()
 fun! s:FTy()
   let n = 1
   while n < 10 && n < line("$")
-    if getline(n) =~ '^\s*\(#\|class\>\)'
+    if getline(n) =~ '^\s*\(#\|class\>\)' && getline(n) !~ '^\s*#\s*include'
       setf racc
       return
     endif