Mercurial > vim
changeset 20863:69cd83562725 v8.2.0983
patch 8.2.0983: SConstruct file type not recognized
Commit: https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 15 20:24:58 2020 +0200
patch 8.2.0983: SConstruct file type not recognized
Problem: SConstruct file type not recognized.
Solution: Use python for SConstruct files. (Roland Hieber)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 15 Jun 2020 20:30:04 +0200 |
parents | 0fa77548997b |
children | 186ff32aed7b |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1296,7 +1296,8 @@ au BufNewFile,BufRead *.pyx,*.pxd setf " 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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'],