mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0427: Drupal theme files are not recognized (#20138)
Problem: Drupal theme files are not recognized.
Solution: Use php filetype for Drupl theme files. Remove trailing spaces.
(Rodrigo Aguilera, closes vim/vim#11096)
8995c4cd4e
This commit is contained in:
@@ -1324,7 +1324,7 @@ au BufNewFile,BufRead *.or setf openroad
|
||||
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
|
||||
|
||||
" OpenSCAD
|
||||
au BufNewFile,BufRead *.scad setf openscad
|
||||
au BufNewFile,BufRead *.scad setf openscad
|
||||
|
||||
" Oracle config file
|
||||
au BufNewFile,BufRead *.ora setf ora
|
||||
@@ -1399,7 +1399,8 @@ au BufNewFile,BufRead *.pod setf pod
|
||||
" Also Phtml (was used for PHP 2 in the past).
|
||||
" Also .ctp for Cake template file.
|
||||
" Also .phpt for php tests.
|
||||
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt setf php
|
||||
" Also .theme for Drupal theme files.
|
||||
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt,*.theme setf php
|
||||
|
||||
" PHP config
|
||||
au BufNewFile,BufRead php.ini-* setf dosini
|
||||
|
||||
@@ -746,6 +746,7 @@ local extension = {
|
||||
php = 'php',
|
||||
phpt = 'php',
|
||||
phtml = 'php',
|
||||
theme = 'php',
|
||||
pike = 'pike',
|
||||
pmod = 'pike',
|
||||
rcp = 'pilrc',
|
||||
|
||||
Reference in New Issue
Block a user