summaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-06 21:36:40 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-06 21:36:40 +0200
commit203d04d76413fb46ada3feb73144f3172b1a9e05 (patch)
treef21c19b07ab9f7f327d2ba4e3df7fbc58cd6d737 /runtime/scripts.vim
parent4cd92d5aae72098baed6e630f548c92dbe54c448 (diff)
downloadvim-git-203d04d76413fb46ada3feb73144f3172b1a9e05.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 459b03064..251e4c8f0 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -152,6 +152,10 @@ if s:line1 =~ "^#!"
elseif s:name =~ 'cfengine'
set ft=cfengine
+ " Erlang scripts
+ elseif s:name =~ 'escript'
+ set ft=erlang
+
endif
unlet s:name
@@ -333,6 +337,11 @@ else
\ && s:line3 =~ '^Each sample counts as .* seconds.$'
set ft=gprof
+ " Erlang terms
+ " (See also: http://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html#Choosing-Modes)
+ elseif s:line1 =~? '-\*-.*erlang.*-\*-'
+ set ft=erlang
+
" CVS diff
else
let s:lnum = 1