aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-06-15 22:58:29 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-06-18 18:01:44 -0400
commitb4e4c2ad95bc305a894ad78c6880d9017ae69f8f (patch)
treec46cfcb42d43717c05fce2c291c4d3d3f5ea53a0
parent954aed886ec2416e810c534fbd95818c99cdb71e (diff)
downloadrneovim-b4e4c2ad95bc305a894ad78c6880d9017ae69f8f.tar.gz
rneovim-b4e4c2ad95bc305a894ad78c6880d9017ae69f8f.tar.bz2
rneovim-b4e4c2ad95bc305a894ad78c6880d9017ae69f8f.zip
vim-patch:8.2.0983: SConstruct file type not recognized
Problem: SConstruct file type not recognized. Solution: Use python for SConstruct files. (Roland Hieber) https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
-rw-r--r--runtime/filetype.vim3
-rw-r--r--src/nvim/testdir/test_filetype.vim2
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index f24352323d..12a5ca729d 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1292,7 +1292,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
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
index 442f4a3c26..5d75d1aa57 100644
--- a/src/nvim/testdir/test_filetype.vim
+++ b/src/nvim/testdir/test_filetype.vim
@@ -360,7 +360,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'],