summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-02-24 02:51:51 +0100
committerBram Moolenaar <Bram@vim.org>2014-02-24 02:51:51 +0100
commit251835e14f6fb4134a041c2ba9d3e7b84b783e86 (patch)
tree7cde7fafc2eb2735e0491f7fc085f27320b07d6e /runtime/filetype.vim
parent26df092843de91ea0c5c5c130d0d0695d2d81c07 (diff)
Update runtime files. Add Euphoria syntax files.
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim18
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 96207e0b27..b2d34de0ba 100644
--- 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: 2014 Feb 11
+" Last Change: 2014 Feb 23
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -539,6 +539,20 @@ au BufNewFile,BufRead *enlightenment/*.cfg setf c
" Eterm
au BufNewFile,BufRead *Eterm/*.cfg setf eterm
+" Euphoria 3 or 4
+au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call s:EuphoriaCheck()
+if has("fname_case")
+ au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call s:EuphoriaCheck()
+endif
+
+func! s:EuphoriaCheck()
+ if exists('g:filetype_euphoria')
+ exe 'setf ' . g:filetype_euphoria
+ else
+ setf euphoria3
+ endif
+endfunc
+
" Lynx config files
au BufNewFile,BufRead lynx.cfg setf lynx
@@ -2244,7 +2258,7 @@ au BufNewFile,BufRead *.v setf verilog
au BufNewFile,BufRead *.va,*.vams setf verilogams
" SystemVerilog
-au BufNewFile,BufRead *.sv setf systemverilog
+au BufNewFile,BufRead *.sv,*.svh setf systemverilog
" VHDL
au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst setf vhdl