Skip to content

Commit d45316c

Browse files
committed
Expand (c-lang-defconst c-operators)
1 parent fa002a9 commit d45316c

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

php-mode.el

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,24 @@ In that case set to `NIL'."
445445
(prefix "\\" "::")))
446446

447447
(c-lang-defconst c-operators
448-
php (delete '(postfix-if-paren "<" ">")
449-
(c-lang-const c-operators)))
448+
php `((prefix "#")
449+
,@(c-lang-const c-identifier-ops)
450+
(left-assoc ".")
451+
(postfix "++" "--" "[" "]" "(" ")")
452+
(prefix "++" "--" "+" "-" "!" "~" "new" "(" ")")
453+
(left-assoc "*" "/" "%")
454+
(left-assoc "+" "-")
455+
(left-assoc "<<" ">>" ">>>")
456+
(left-assoc "<" ">" "<=" ">=" "instanceof")
457+
(left-assoc "==" "!=")
458+
(left-assoc "&")
459+
(left-assoc "^")
460+
(left-assoc "|")
461+
(left-assoc "&&")
462+
(left-assoc "||")
463+
(right-assoc-sequence "?" ":")
464+
(right-assoc ,@(c-lang-const c-assignment-operators))
465+
(left-assoc ",")))
450466

451467
;; Allow '\' when scanning from open brace back to defining
452468
;; construct like class

0 commit comments

Comments
 (0)