diff --git a/syntax_files/php.yaml b/syntax_files/php.yaml index 4b850d6..0d239d2 100644 --- a/syntax_files/php.yaml +++ b/syntax_files/php.yaml @@ -20,12 +20,12 @@ rules: - default: "<\\?(php|=)\" end=\"\\?>" - identifier.class: "([a-zA-Z0-9_-]+)\\(" - preproc: "(require|include|require_once|include_once)" - - type: "\\b(var|class|extends|function|echo|case|default|exit|switch|extends|as|define|do|declare|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)\\b" + - type: "\\b(var|class|extends|function|function_exists|phpinfo|echo|case|default|exit|switch|extends|as|define|do|declare|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)\\b" - identifier.class: "[a-zA-Z\\\\]+::" - identifier: "([A-Z][a-zA-Z0-9_]+)\\s" - identifier: "([A-Z0-9_]+)[;|\\s|\\)|,]" - type.keyword: "(global|public|private|protected|static|const)" - - statement: "(implements|abstract|instanceof|if|else(if)?|endif|namespace|use|as|new|throw|catch|try|while|print|(end)?(foreach)?)\\b" + - statement: "(implements|abstract|instanceof|if|else(if)?|endif|namespace|use|as|new|throw|catch|try|while|print|for|(end)?(foreach)?)\\b" - identifier: "new\\s([a-zA-Z0-9\\\\]+)" - special: "(break|continue|goto|return)" - constant.bool: "(true|false|null|TRUE|FALSE|NULL)"