]> git.pld-linux.org Git - packages/vim.git/blob - vim-phpscript.patch
Up to 9.1.0168
[packages/vim.git] / vim-phpscript.patch
1 --- vim-8.2.4726/runtime/autoload/dist/script.vim~      2022-04-09 22:42:10.000000000 +0200
2 +++ vim-8.2.4726/runtime/autoload/dist/script.vim       2022-04-10 12:01:55.436645032 +0200
3 @@ -297,6 +297,10 @@ def DetectFromText(line1: string)
4    elseif line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
5      setl ft=xxd
6  
7 +    # PHP script tag
8 +  elseif line1 =~ '^<?php'
9 +     setl ft=php
10 +
11      # RCS/CVS log output
12    elseif line1 =~ '^RCS file:' || line2 =~ '^RCS file:'
13      setl ft=rcslog
This page took 0.022055 seconds and 3 git commands to generate.