diff runtime/filetype.vim @ 30182:4d3c7b4927f2 v9.0.0427

patch 9.0.0427: Drupal theme files are not recognized Commit: https://github.com/vim/vim/commit/8995c4cd4e697141faf74da9a87e0c1221bfb161 Author: Rodrigo Aguilera <hi@rodrigoaguilera.net> Date: Fri Sep 9 16:10:26 2022 +0100 patch 9.0.0427: Drupal theme files are not recognized Problem: Drupal theme files are not recognized. Solution: Use php filetype for Drupl theme files. Remove trailing spaces. (Rodrigo Aguilera, closes #11096)
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Sep 2022 17:15:03 +0200
parents 042513ec99d7
children 381462ee23fd
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1323,7 +1323,7 @@ au BufNewFile,BufRead *.or				setf openr
 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
@@ -1398,7 +1398,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