diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-26 13:42:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 13:42:38 -0400 |
commit | bb4fc69e93d45e539057e62e71a818e5fce0b378 (patch) | |
tree | 1b6f0c557c930ea9d95ce765dd8c967b9d349a7c /runtime/autoload | |
parent | 5c0b01fd887ff5043e196a0e21f03d547e65a98b (diff) | |
parent | 7a239a8a9affc2bac215dec1d08e55e1b065a4c4 (diff) | |
download | rneovim-bb4fc69e93d45e539057e62e71a818e5fce0b378.tar.gz rneovim-bb4fc69e93d45e539057e62e71a818e5fce0b378.tar.bz2 rneovim-bb4fc69e93d45e539057e62e71a818e5fce0b378.zip |
Merge pull request #14914 from janlazo/vim-8.2.3050
vim-patch:8.2.{2954,3049,3050}
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 1ac74b5785..ac80659113 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -172,6 +172,17 @@ func dist#ft#FTent() setf dtd endfunc +func dist#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 dist#ft#EuphoriaCheck() if exists('g:filetype_euphoria') exe 'setf ' . g:filetype_euphoria |