]> granicus.if.org Git - vim/commitdiff
patch 8.2.2990: Jupyter Notebook files are not recognized v8.2.2990
authorkompowiec2 <diasp@o2.pl>
Sun, 13 Jun 2021 15:03:06 +0000 (17:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Jun 2021 15:03:06 +0000 (17:03 +0200)
Problem:    Jupyter Notebook files are not recognized.
Solution:   Recognize *.ipynb. (closes #8375)

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

index 8ca6f6a77b927bee52ac9635fcaae8cb81aba869..0f06391de12ae8839155d4430779476feb5223ef 100644 (file)
@@ -855,6 +855,9 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovial  setf jovial
 " JSON
 au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest     setf json
 
+" Jupyter Notebook is also json
+au BufNewFile,BufRead *.ipynb                          setf json
+
 " Kixtart
 au BufNewFile,BufRead *.kix                    setf kix
 
index ac227fee172d5d8e8a5645da134ee7042ff4a39a..0b670acf74bba1f8ba283daec43bb1d9ce1be4cf 100644 (file)
@@ -257,7 +257,7 @@ let s:filename_checks = {
     \ 'jgraph': ['file.jgr'],
     \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
     \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'],
-    \ 'json': ['file.json', 'file.jsonp', 'file.webmanifest', 'Pipfile.lock'],
+    \ 'json': ['file.json', 'file.jsonp', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
     \ 'jsp': ['file.jsp'],
     \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
     \ 'kivy': ['file.kv'],
index ce78fc5e1f210598dea97069e55c64cac6b1608e..dfe1f8b1fb83db7e0e6fc3461897820ce83a4a7d 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2990,
 /**/
     2989,
 /**/