mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.2402: some filetypes not detected
Problem: Some filetypes not detected. Solution: Detect Ruby Signature and Puppet related files. (Doug Kearns)
This commit is contained in:
@@ -1176,9 +1176,10 @@ au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
|
|||||||
" Password file
|
" Password file
|
||||||
au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd
|
au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd
|
||||||
|
|
||||||
" Pascal (also *.p)
|
" Pascal (also *.p, *.pp, *.inc)
|
||||||
au BufNewFile,BufRead *.pas setf pascal
|
au BufNewFile,BufRead *.pas setf pascal
|
||||||
|
|
||||||
|
" Pascal or Puppet manifest
|
||||||
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
||||||
|
|
||||||
" Delphi or Lazarus program file
|
" Delphi or Lazarus program file
|
||||||
@@ -1269,7 +1270,7 @@ au BufNewFile,BufRead *.pov setf pov
|
|||||||
" Povray configuration
|
" Povray configuration
|
||||||
au BufNewFile,BufRead .povrayrc setf povini
|
au BufNewFile,BufRead .povrayrc setf povini
|
||||||
|
|
||||||
" Povray, PHP or assembly
|
" Povray, Pascal, PHP or assembly
|
||||||
au BufNewFile,BufRead *.inc call dist#ft#FTinc()
|
au BufNewFile,BufRead *.inc call dist#ft#FTinc()
|
||||||
|
|
||||||
" Printcap and Termcap
|
" Printcap and Termcap
|
||||||
@@ -1278,13 +1279,19 @@ au BufNewFile,BufRead *printcap
|
|||||||
au BufNewFile,BufRead *termcap
|
au BufNewFile,BufRead *termcap
|
||||||
\ let b:ptcap_type = "term" | setf ptcap
|
\ let b:ptcap_type = "term" | setf ptcap
|
||||||
|
|
||||||
" PCCTS / ANTRL
|
" PCCTS / ANTLR
|
||||||
"au BufNewFile,BufRead *.g setf antrl
|
"au BufNewFile,BufRead *.g setf antlr
|
||||||
au BufNewFile,BufRead *.g setf pccts
|
au BufNewFile,BufRead *.g setf pccts
|
||||||
|
|
||||||
" PPWizard
|
" PPWizard
|
||||||
au BufNewFile,BufRead *.it,*.ih setf ppwiz
|
au BufNewFile,BufRead *.it,*.ih setf ppwiz
|
||||||
|
|
||||||
|
" Puppet
|
||||||
|
au BufNewFile,BufRead Puppetfile setf ruby
|
||||||
|
|
||||||
|
" Embedded Puppet
|
||||||
|
au BufNewFile,BufRead *.epp setf epuppet
|
||||||
|
|
||||||
" Obj 3D file format
|
" Obj 3D file format
|
||||||
" TODO: is there a way to avoid MS-Windows Object files?
|
" TODO: is there a way to avoid MS-Windows Object files?
|
||||||
au BufNewFile,BufRead *.obj setf obj
|
au BufNewFile,BufRead *.obj setf obj
|
||||||
@@ -1427,8 +1434,8 @@ au BufNewFile,BufRead *.rb,*.rbw setf ruby
|
|||||||
" RubyGems
|
" RubyGems
|
||||||
au BufNewFile,BufRead *.gemspec setf ruby
|
au BufNewFile,BufRead *.gemspec setf ruby
|
||||||
|
|
||||||
" Rust
|
" RBS (Ruby Signature)
|
||||||
au BufNewFile,BufRead *.rs setf rust
|
au BufNewFile,BufRead *.rbs setf rbs
|
||||||
|
|
||||||
" Rackup
|
" Rackup
|
||||||
au BufNewFile,BufRead *.ru setf ruby
|
au BufNewFile,BufRead *.ru setf ruby
|
||||||
@@ -1442,6 +1449,9 @@ au BufNewFile,BufRead *.builder,*.rxml,*.rjs setf ruby
|
|||||||
" Rantfile and Rakefile is like Ruby
|
" Rantfile and Rakefile is like Ruby
|
||||||
au BufNewFile,BufRead [rR]antfile,*.rant,[rR]akefile,*.rake setf ruby
|
au BufNewFile,BufRead [rR]antfile,*.rant,[rR]akefile,*.rake setf ruby
|
||||||
|
|
||||||
|
" Rust
|
||||||
|
au BufNewFile,BufRead *.rs setf rust
|
||||||
|
|
||||||
" S-lang (or shader language, or SmallLisp)
|
" S-lang (or shader language, or SmallLisp)
|
||||||
au BufNewFile,BufRead *.sl setf slang
|
au BufNewFile,BufRead *.sl setf slang
|
||||||
|
|
||||||
|
@@ -162,6 +162,7 @@ let s:filename_checks = {
|
|||||||
\ 'elinks': ['elinks.conf'],
|
\ 'elinks': ['elinks.conf'],
|
||||||
\ 'elm': ['file.elm'],
|
\ 'elm': ['file.elm'],
|
||||||
\ 'elmfilt': ['filter-rules'],
|
\ 'elmfilt': ['filter-rules'],
|
||||||
|
\ 'epuppet': ['file.epp'],
|
||||||
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
|
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
|
||||||
\ 'eruby': ['file.erb', 'file.rhtml'],
|
\ 'eruby': ['file.erb', 'file.rhtml'],
|
||||||
\ 'esmtprc': ['anyesmtprc', 'esmtprc', 'some-esmtprc'],
|
\ 'esmtprc': ['anyesmtprc', 'esmtprc', 'some-esmtprc'],
|
||||||
@@ -391,6 +392,7 @@ let s:filename_checks = {
|
|||||||
\ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
|
\ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
|
||||||
\ 'radiance': ['file.rad', 'file.mat'],
|
\ 'radiance': ['file.rad', 'file.mat'],
|
||||||
\ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
|
\ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
|
||||||
|
\ 'rbs': ['file.rbs'],
|
||||||
\ 'rc': ['file.rc', 'file.rch'],
|
\ 'rc': ['file.rc', 'file.rch'],
|
||||||
\ 'rcs': ['file,v'],
|
\ 'rcs': ['file,v'],
|
||||||
\ 'readline': ['.inputrc', 'inputrc'],
|
\ 'readline': ['.inputrc', 'inputrc'],
|
||||||
@@ -407,7 +409,7 @@ let s:filename_checks = {
|
|||||||
\ 'rpl': ['file.rpl'],
|
\ 'rpl': ['file.rpl'],
|
||||||
\ 'rst': ['file.rst'],
|
\ 'rst': ['file.rst'],
|
||||||
\ 'rtf': ['file.rtf'],
|
\ 'rtf': ['file.rtf'],
|
||||||
\ 'ruby': ['.irbrc', 'irbrc', 'file.rb', 'file.rbw', 'file.gemspec', 'file.ru', 'Gemfile', 'file.builder', 'file.rxml', 'file.rjs', 'file.rant', 'file.rake', 'rakefile', 'Rakefile', 'rantfile', 'Rantfile', 'rakefile-file', 'Rakefile-file'],
|
\ 'ruby': ['.irbrc', 'irbrc', 'file.rb', 'file.rbw', 'file.gemspec', 'file.ru', 'Gemfile', 'file.builder', 'file.rxml', 'file.rjs', 'file.rant', 'file.rake', 'rakefile', 'Rakefile', 'rantfile', 'Rantfile', 'rakefile-file', 'Rakefile-file', 'Puppetfile'],
|
||||||
\ 'rust': ['file.rs'],
|
\ 'rust': ['file.rs'],
|
||||||
\ 'samba': ['smb.conf'],
|
\ 'samba': ['smb.conf'],
|
||||||
\ 'sas': ['file.sas'],
|
\ 'sas': ['file.sas'],
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2402,
|
||||||
/**/
|
/**/
|
||||||
2401,
|
2401,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user