Skip to content

Commit

Permalink
ftdetect: use case-insensitive matching in all filename patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Dec 3, 2023
1 parent 31a72a2 commit 4e3c322
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ftdetect/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
" Maintainer: Noah Bogart <[email protected]>
" URL: https://github.com/NoahTheDuke/vim-just.git
" Last Change: 2021 Aug 26
au BufNewFile,BufRead \cjustfile,.justfile,*.just setfiletype just
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
15 changes: 15 additions & 0 deletions tests/cases/ftdetect.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@
{
"filename": "Justfile"
},
{
"filename": "JUSTFILE"
},
{
"filename": ".justfile"
},
{
"filename": ".Justfile"
},
{
"filename": ".JUSTFILE"
},
{
"filename": "*.just"
},
{
"filename": "*.JUST"
},
{
"content": "#!/usr/bin/env -S just -f\n"
},
Expand Down

0 comments on commit 4e3c322

Please sign in to comment.