diff --git a/php-mode.el b/php-mode.el index 65beeb16..7ba0383f 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1513,7 +1513,14 @@ a completion list." ;; Highlight static method calls as such. This is necessary for method ;; names which are identical to keywords to be highlighted correctly. ("\\sw+::\\(\\sw+\\)(" 1 'php-static-method-call) - + ;; Multiple catch (FooException | BarException $e) + (,(rx symbol-start "catch" symbol-end + (* (syntax whitespace)) "(" (* (syntax whitespace)) + (group (+ (or (syntax word) (syntax symbol))))) + (1 font-lock-type-face) + (,(rx (* (syntax whitespace)) "|" (* (syntax whitespace)) + (group (+ (or (syntax word) (syntax symbol))) symbol-end)) + nil nil (1 font-lock-type-face))) ;; While c-opt-cpp-* highlights the