diff options
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 9 |
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 |