JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add void to php keywords
authorJason Woofenden <jason@jasonwoof.com>
Sat, 12 May 2018 22:27:09 +0000 (18:27 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 12 May 2018 22:27:09 +0000 (18:27 -0400)
php.vim
todo.vim

diff --git a/php.vim b/php.vim
index e82112e..ef89a9e 100644 (file)
--- a/php.vim
+++ b/php.vim
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language: php PHP 3/4/5/7
 " Maintainer: Jason Woofenden <jason@jasonwoof.com>
-" Last Change: Jul 14, 2017
+" Last Change: May 12, 2018
 " URL: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blob;f=php.vim;hb=HEAD
 " Former Maintainers: Peter Hodge <toomuchphp-vim@yahoo.com>
 "         Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
@@ -261,7 +261,7 @@ syn keyword phpStatement return break continue exit goto yield contained
 syn keyword phpKeyword var const contained
 
 " Type
-syn keyword phpType bool boolean int integer real double float string array object NULL callable iterable contained
+syn keyword phpType void bool boolean int integer real double float string array object NULL callable iterable contained
 
 " Structure
 syn keyword phpStructure namespace extends implements instanceof parent self contained
index 6f088a4..3f35750 100644 (file)
--- a/todo.vim
+++ b/todo.vim
@@ -2,8 +2,14 @@ highlight done ctermfg=DarkGreen
 highlight maybedone ctermfg=Blue
 highlight headline ctermfg=White cterm=bold,underline
 highlight moot ctermfg=DarkGrey
+highlight indent ctermfg=NONE
 
 syntax match done /^\*\+\t\+\zs\S.*$/
 syntax match maybedone /^\(done\)\??\t\+\zs.*/
 syntax match moot /^[#]\t\+.*/
-syntax match headline /^ \+\zs[^\t]*/
+syntax match indent /^\s\+/
+syn region headline start=/^$\|\%1l/ contains=indent end="\S.*$"
+"syntax match headline /^ \+\zs[^\t]*/
+
+syntax sync minlines=1
+syntax sync maxlines=1