]> granicus.if.org Git - vim/commitdiff
patch 8.2.0983: SConstruct file type not recognized v8.2.0983
authorBram Moolenaar <Bram@vim.org>
Mon, 15 Jun 2020 18:24:58 +0000 (20:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 15 Jun 2020 18:24:58 +0000 (20:24 +0200)
Problem:    SConstruct file type not recognized.
Solution:   Use python for SConstruct files. (Roland Hieber)

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

index cc3c01fbdca7b4294f79ac55b542577d0cdfe17e..b94951c54907ae5f594de631ac69b750bf89226a 100644 (file)
@@ -1296,7 +1296,8 @@ au BufNewFile,BufRead *.pyx,*.pxd         setf pyrex
 
 " Python, Python Shell Startup and Python Stub Files
 " Quixote (Python-based web framework)
-au BufNewFile,BufRead *.py,*.pyw,.pythonstartup,.pythonrc,*.ptl,*.pyi  setf python
+au BufNewFile,BufRead *.py,*.pyw,.pythonstartup,.pythonrc  setf python
+au BufNewFile,BufRead *.ptl,*.pyi,SConstruct              setf python
 
 " Radiance
 au BufNewFile,BufRead *.rad,*.mat              setf radiance
index 331260d34371f46b755ffe365a9cd5575a2182f6..9d5bc6782ea8d03c2ff860ab855a9f45f473c94d 100644 (file)
@@ -361,7 +361,7 @@ let s:filename_checks = {
     \ 'protocols': ['/etc/protocols'],
     \ 'psf': ['file.psf'],
     \ 'pyrex': ['file.pyx', 'file.pxd'],
-    \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi'],
+    \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
     \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg'],
     \ 'radiance': ['file.rad', 'file.mat'],
     \ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
index 0866fcc830a2c3a3183da81fa65060f16632873f..7d7b965f031fff6a209225cd9bd37e05c0a92b34 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    983,
 /**/
     982,
 /**/