mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4715: Vagrantfile not recognized (#18052)
Problem: Vagrantfile not recognized.
Solution: Recognize Vagrantfile as ruby. (Julien Voisin, closes vim/vim#10119)
5e1792270a
This commit is contained in:
parent
b259426a25
commit
8055f9857b
@ -2049,6 +2049,9 @@ au BufNewFile,BufRead *.vala setf vala
|
||||
" Vera
|
||||
au BufNewFile,BufRead *.vr,*.vri,*.vrh setf vera
|
||||
|
||||
" Vagrant (uses Ruby syntax)
|
||||
au BufNewFile,BufRead Vagrantfile setf ruby
|
||||
|
||||
" Verilog HDL
|
||||
au BufNewFile,BufRead *.v setf verilog
|
||||
|
||||
|
@ -1061,6 +1061,7 @@ local filename = {
|
||||
Puppetfile = "ruby",
|
||||
[".irbrc"] = "ruby",
|
||||
irbrc = "ruby",
|
||||
Vagrantfile = "ruby",
|
||||
["smb.conf"] = "samba",
|
||||
screenrc = "screen",
|
||||
[".screenrc"] = "screen",
|
||||
|
@ -455,7 +455,7 @@ let s:filename_checks = {
|
||||
\ 'rpl': ['file.rpl'],
|
||||
\ 'rst': ['file.rst'],
|
||||
\ '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', 'Puppetfile'],
|
||||
\ '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', 'Vagrantfile'],
|
||||
\ 'rust': ['file.rs'],
|
||||
\ 'samba': ['smb.conf'],
|
||||
\ 'sas': ['file.sas'],
|
||||
|
Loading…
Reference in New Issue
Block a user