From 0eec8519424eaea7baebfda979c33dd609a4e3fa Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 4 Aug 2021 17:03:59 +0200 Subject: [PATCH] patch 8.2.3283: Julia filetype is not recognized Problem: Julia filetype is not recognized Solution: Add filetype detection. (Christian Clason, closes #8700) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 2 ++ src/version.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 13f8e942b..e14d80fd8 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -874,6 +874,9 @@ au BufNewFile,BufRead *.ipynb setf json " JSONC au BufNewFile,BufRead *.jsonc setf jsonc +" Julia +au BufNewFile,BufRead *.jl setf julia + " Kixtart au BufNewFile,BufRead *.kix setf kix diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e78a1f4ec..4f94b96e7 100644 --- 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') diff --git a/src/version.c b/src/version.c index 1cddd15cd..35bb3910a 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3283, /**/ 3282, /**/ -- 2.40.0