]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(just): Correct filetype detection pattern and style (#13284)
authordundargoc <33953936+dundargoc@users.noreply.github.com>
Thu, 5 Oct 2023 18:11:55 +0000 (20:11 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2023 18:11:55 +0000 (20:11 +0200)
See https://github.com/vim/vim/pull/13271#discussion_r1347279686 and
https://github.com/NoahTheDuke/vim-just/blob/main/ftdetect/just.vim.

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim

index f3049636f45f9c21db0a51bc6e14013d859b74c3..3e7036cbbc90492f2c7a73811c8ce76ee74ac092 100644 (file)
@@ -1094,7 +1094,7 @@ au BufNewFile,BufRead *.jsonnet,*.libsonnet       setf jsonnet
 au BufNewFile,BufRead *.jl                     setf julia
 
 " Just
-autocmd BufNewFile,BufRead *[jJ]ustfile,.justfile,*.just setfiletype just
+au BufNewFile,BufRead [jJ]ustfile,.justfile,*.just setf just
 
 " KDL
 au BufNewFile,BufRead *.kdl                    setf kdl