]> granicus.if.org Git - vim/commitdiff
patch 8.2.3283: Julia filetype is not recognized v8.2.3283
authorChristian Clason <christian.clason@uni-due.de>
Wed, 4 Aug 2021 15:03:59 +0000 (17:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2021 15:03:59 +0000 (17:03 +0200)
Problem:    Julia filetype is not recognized
Solution:   Add filetype detection. (Christian Clason, closes #8700)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 13f8e942bb7919dcd7bf03c2fc672c771dfc96b2..e14d80fd8ed4c541fdfbdb197cf1501eca7aa50d 100644 (file)
@@ -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
 
index e78a1f4ec0ed0df0b3554a03a3f7e8ff0437e3d7..4f94b96e7a32e86131d9b102be5056e18583e705 100644 (file)
@@ -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')
index 1cddd15cd4c66d5184882afcb503a5e36e684ce9..35bb3910a33a1543f45e813014f15c68fa9880cc 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3283,
 /**/
     3282,
 /**/