aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-09 18:48:12 +0200
committerGitHub <noreply@github.com>2022-09-09 18:48:12 +0200
commit9b0e1256e25d387bf65cb9baa1edd99fbc128724 (patch)
tree216990519c62fb6f877e2781987d3303049009c1 /runtime
parentad2d6a624b10a52cdcfb7fdd9d8b1be24b13ed83 (diff)
downloadrneovim-9b0e1256e25d387bf65cb9baa1edd99fbc128724.tar.gz
rneovim-9b0e1256e25d387bf65cb9baa1edd99fbc128724.tar.bz2
rneovim-9b0e1256e25d387bf65cb9baa1edd99fbc128724.zip
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) https://github.com/vim/vim/commit/8995c4cd4e697141faf74da9a87e0c1221bfb161
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim5
-rw-r--r--runtime/lua/vim/filetype.lua1
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index b74905416a..c98bc737af 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 12e6fa837b..6aa765ebaf 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -746,6 +746,7 @@ local extension = {
php = 'php',
phpt = 'php',
phtml = 'php',
+ theme = 'php',
pike = 'pike',
pmod = 'pike',
rcp = 'pilrc',