From efa24f5a8db04341fc776a6468b89503fbcd534e Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Tue, 6 Sep 2016 18:25:08 +0900 Subject: [PATCH] Add PHP Keywords - trait (PHP 5.5) - iterable (PHP 7.1) - void (PHP 7.1) see https://github.com/ejmr/php-mode/pull/317 --- runtime/syntax/php.micro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/syntax/php.micro b/runtime/syntax/php.micro index 2ae7deb5..9208a634 100644 --- a/runtime/syntax/php.micro +++ b/runtime/syntax/php.micro @@ -3,7 +3,7 @@ color default start="<\?(php|=)?" end="\?>" color special "([a-zA-Z0-9_-]+)\(" -color identifier "(var|class|goto|extends|function|echo|case|break|default|exit|switch|foreach|endforeach|while|const|static|extends|as|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|interface|[E|e]xception|array|int|string|bool)[\s|\)]" +color identifier "(var|class|goto|extends|function|echo|case|break|default|exit|switch|foreach|endforeach|while|const|static|extends|as|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)[\s|\)]" color identifier "[a-zA-Z\\]+::" @@ -27,4 +27,4 @@ color default "[\(|\)|/|+|-|\*|\[|,|;]" color constant.string "('.*?'|\".*?\")" color comment start="/\*" end="\*/" -color comment "(#.*|//.*)$" \ No newline at end of file +color comment "(#.*|//.*)$"