Mercurial > vim
changeset 25493:224c96c497d3 v8.2.3283
patch 8.2.3283: Julia filetype is not recognized
Commit: https://github.com/vim/vim/commit/0eec8519424eaea7baebfda979c33dd609a4e3fa
Author: Christian Clason <christian.clason@uni-due.de>
Date: Wed Aug 4 17:03:59 2021 +0200
patch 8.2.3283: Julia filetype is not recognized
Problem: Julia filetype is not recognized
Solution: Add filetype detection. (Christian Clason, closes https://github.com/vim/vim/issues/8700)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Aug 2021 17:15:04 +0200 |
parents | fe6fc460a6fc |
children | bdb60211e4d3 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -874,6 +874,9 @@ au BufNewFile,BufRead *.ipynb setf js " JSONC au BufNewFile,BufRead *.jsonc setf jsonc +" Julia +au BufNewFile,BufRead *.jl setf julia + " Kixtart au BufNewFile,BufRead *.kix setf kix
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -263,6 +263,7 @@ let s:filename_checks = { \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'], \ 'jsonc': ['file.jsonc'], \ 'jsp': ['file.jsp'], + \ 'julia': ['file.jl'], \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], \ 'kivy': ['file.kv'], \ 'kix': ['file.kix'], @@ -778,6 +779,7 @@ func Test_pp_file() split Xfile.pp call assert_equal('pascal', &filetype) bwipe! + unlet g:filetype_pp " Test dist#ft#FTpp() call writefile(['{ pascal comment'], 'Xfile.pp')