From 4f5388350be1052f610b830c8fce8fbc17370ec6 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 27 Jun 2021 10:07:29 +0200 Subject: Update --- autoload/polyglot/ft.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'autoload/polyglot/ft.vim') 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 -- cgit v1.2.3