summaryrefslogtreecommitdiffstats
path: root/autoload/polyglot/ft.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/polyglot/ft.vim')
-rw-r--r--autoload/polyglot/ft.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/autoload/polyglot/ft.vim b/autoload/polyglot/ft.vim
index f872bf9c..2e4c1f69 100644
--- a/autoload/polyglot/ft.vim
+++ b/autoload/polyglot/ft.vim
@@ -172,6 +172,17 @@ func polyglot#ft#FTent()
setf dtd
endfunc
+func polyglot#ft#ExCheck()
+ let lines = getline(1, min([line("$"), 100]))
+ if exists('g:filetype_euphoria')
+ exe 'setf ' . g:filetype_euphoria
+ elseif match(lines, '^--\|^ifdef\>\|^include\>') > -1
+ setf euphoria3
+ else
+ setf elixir
+ endif
+endfunc
+
func polyglot#ft#EuphoriaCheck()
if exists('g:filetype_euphoria')
exe 'setf ' . g:filetype_euphoria