diff --git a/syntax_files/php.yaml b/syntax_files/php.yaml index a5ab9ea..9f9742b 100644 --- a/syntax_files/php.yaml +++ b/syntax_files/php.yaml @@ -28,7 +28,7 @@ rules: - statement: "(^|[[:space:]])(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: "(=|[[:space:]])(true|false|null|TRUE|FALSE|NULL)" + - constant.bool: "(\\:|\\?|=|[[:space:]])(true|false|null|TRUE|FALSE|NULL)" - constant: "[\\s|=|\\s|\\(|/|+|-|\\*|\\[]" - constant.number: "[0-9]" - identifier: "(\\$this|parent|self|\\$this->)"