diff --git a/ftdetect/just.vim b/ftdetect/just.vim index 93a55ff..536d6ee 100644 --- a/ftdetect/just.vim +++ b/ftdetect/just.vim @@ -4,4 +4,4 @@ " URL: https://github.com/NoahTheDuke/vim-just.git " Last Change: 2024 Mar 03 au BufNewFile,BufRead \c{,*.}justfile,\c*.just setfiletype just -au BufNewFile,BufRead * if getline(1) =~# '\v^#!//@!%(\w|-|//@!)*/%(env%(\s+-S)?\s+)?just\A' | setfiletype just | endif +au BufNewFile,BufRead * if getline(1) =~# '\v^#!/%(\w|[-/])*/%(env%(\s+-S)?\s+)?just\A' | setfiletype just | endif diff --git a/tests/cases/ftdetect.yml b/tests/cases/ftdetect.yml index 3eb2cc6..231b0ca 100644 --- a/tests/cases/ftdetect.yml +++ b/tests/cases/ftdetect.yml @@ -82,7 +82,5 @@ not_justfile: true - content: "#!/usr//bin/env just -f\n" - not_justfile: true - content: "#!//usr/local/bin/just -f\n" - not_justfile: true