From 794ddcdd8bc02fcb2107ba12159532f11501d473 Mon Sep 17 00:00:00 2001 From: Roman Kotov Date: Thu, 21 Mar 2019 16:50:04 +0200 Subject: [PATCH] Syntax highlighted properly for *.leex filex --- ftplugin/eelixir.vim | 2 +- syntax/eelixir.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index c115429f..5ab1dc37 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -20,7 +20,7 @@ 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(substitute(expand("%:t"),'\c\%(\.eex\|\.eelixir\|\.leex\)\+$','',''),'\.\zs\w\+$') endif if b:eelixir_subtype == 'ex' let b:eelixir_subtype = 'elixir' diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index 18c98635..52d0424c 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -20,7 +20,7 @@ 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(substitute(expand("%:t"),'\c\%(\.eex\|\.eelixir\|\.leex\)\+$','',''),'\.\zs\w\+$') endif if b:eelixir_subtype == 'ex' let b:eelixir_subtype = 'elixir'