diff options
author | Christian Clason <christian.clason@uni-due.de> | 2021-08-04 17:03:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-04 17:03:59 +0200 |
commit | 0eec8519424eaea7baebfda979c33dd609a4e3fa (patch) | |
tree | 43b4918ac18f8db9f4acbf5bfa6c4430a93fcc9b | |
parent | 41a3485dd638a09e4c463b1a1da231f4290454f2 (diff) | |
download | vim-git-8.2.3283.tar.gz |
patch 8.2.3283: Julia filetype is not recognizedv8.2.3283
Problem: Julia filetype is not recognized
Solution: Add filetype detection. (Christian Clason, closes #8700)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 7 insertions, 0 deletions
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 @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3283, +/**/ 3282, /**/ 3281, |