From 543b7ef7000d08d77409478315d68b607bb8bad8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Jun 2013 14:50:56 +0200 Subject: Updated runtime files and translations. --- runtime/scripts.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'runtime/scripts.vim') diff --git a/runtime/scripts.vim b/runtime/scripts.vim index bb5a492512..459b03064b 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: 2012 Aug 30 +" Last change: 2013 May 24 " 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 @@ -327,6 +327,12 @@ else elseif s:line1 =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' set ft=git + " Gprof (gnu profiler) + elseif s:line1 == 'Flat profile:' + \ && s:line2 == '' + \ && s:line3 =~ '^Each sample counts as .* seconds.$' + set ft=gprof + " CVS diff else let s:lnum = 1 -- cgit v1.2.3