From 33050751144f1aeddec28d7bfd3dd1b076c66f6d Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sat, 12 May 2018 18:27:09 -0400 Subject: [PATCH] add void to php keywords --- php.vim | 4 ++-- todo.vim | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/php.vim b/php.vim index e82112e..ef89a9e 100644 --- a/php.vim +++ b/php.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: php PHP 3/4/5/7 " Maintainer: Jason Woofenden -" 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 " Debian VIM Maintainers @@ -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 diff --git a/todo.vim b/todo.vim index 6f088a4..3f35750 100644 --- 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 -- 1.7.10.4