summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-01 14:43:59 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-01 14:43:59 +0200
commit2891459b81a21dbd2802ef1ae106c6680f085899 (patch)
treeb2e1aa33f595db8878d0114058b9e2eb4e0ebea0 /runtime
parentf15c8b6eb32fcfea88fd9ca42ef87bbee2c8fe2b (diff)
downloadvim-git-2891459b81a21dbd2802ef1ae106c6680f085899.tar.gz
patch 8.2.0873: a .jl file can be sawfish (lisp) or Juliav8.2.0873
Problem: A .jl file can be sawfish (lisp) or Julia. Solution: Do not recognize *.jl as lisp, since it might be Julia. (closes #6178)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index e12c8ee77..8616a71f2 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -887,11 +887,12 @@ au BufNewFile,BufRead *.ll setf lifelines
" Lilo: Linux loader
au BufNewFile,BufRead lilo.conf setf lilo
-" Lisp (*.el = ELisp, *.cl = Common Lisp, *.jl = librep Lisp)
+" Lisp (*.el = ELisp, *.cl = Common Lisp)
+" *.jl was removed, it's also used for Julia, better skip than guess wrong.
if has("fname_case")
- au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.jl,*.L,.emacs,.sawfishrc setf lisp
+ au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.L,.emacs,.sawfishrc setf lisp
else
- au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.jl,.emacs,.sawfishrc setf lisp
+ au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,.emacs,.sawfishrc setf lisp
endif
" SBCL implementation of Common Lisp