diff --git a/php-mode.el b/php-mode.el index c4dafb79..8ceded8f 100644 --- a/php-mode.el +++ b/php-mode.el @@ -445,8 +445,32 @@ In that case set to `NIL'." (prefix "\\" "::"))) (c-lang-defconst c-operators - php (delete '(postfix-if-paren "<" ">") - (c-lang-const c-operators))) + php `((prefix "new" "clone") + ,@(c-lang-const c-identifier-ops) + (postfix "->") + (postfix "++" "--" "[" "]" "(" ")") + (right-assoc "**") + (prefix "++" "--" "+" "-" "~" "(" ")" "@") + (prefix "instanceof") + (prefix "!") + (left-assoc "*" "/" "%") + (left-assoc "+" "-" ".") + (left-assoc "<<" ">>") + (left-assoc "<" ">" "<=" ">=") + (left-assoc "==" "!=" "===" "!==" "<>" "<=>") + (left-assoc "&") + (left-assoc "^") + (left-assoc "|") + (left-assoc "&&") + (left-assoc "||") + (right-assoc "??") + (left-assoc "?:") + (right-assoc-sequence "?" ":") + (right-assoc ,@(c-lang-const c-assignment-operators)) + (left-assoc "and") + (left-assoc "xor") + (left-assoc "or") + (left-assoc ","))) ;; Allow '\' when scanning from open brace back to defining ;; construct like class