diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-04-23 11:32:40 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-04-23 11:32:40 +0200 |
commit | 4d18a5e5dd427a2962fe34c6a12007cac67ce89c (patch) | |
tree | 1a7cb73806c54fbbdc1e3645e0ee1d7e5559c1a0 /ftplugin/eelixir.vim | |
parent | a55b6aa3aa797c989a4979a13a5bd2ae11cfd4a5 (diff) | |
download | vim-polyglot-4d18a5e5dd427a2962fe34c6a12007cac67ce89c.tar.gz vim-polyglot-4d18a5e5dd427a2962fe34c6a12007cac67ce89c.zip |
Update
Diffstat (limited to 'ftplugin/eelixir.vim')
-rw-r--r-- | ftplugin/eelixir.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index 2e3656c0..7c1b2b9c 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -24,7 +24,10 @@ if !exists("b:eelixir_subtype") let b:eelixir_subtype = matchstr(&filetype,'^eex\.\zs\w\+') endif if b:eelixir_subtype == '' - let b:eelixir_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.eex\|\.eelixir\)\+$','',''),'\.\zs\w\+$') + let b:eelixir_subtype = matchstr(&filetype,'^leex\.\zs\w\+') + endif + if b:eelixir_subtype == '' + let b:eelixir_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.eex\|\.leex\|\.eelixir\)\+$','',''),'\.\zs\w\+$') endif if b:eelixir_subtype == 'ex' let b:eelixir_subtype = 'elixir' |