From 4359c6ce6efa7b206a0091db48b1dff343c5a345 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Mon, 10 Jan 2022 01:50:43 +0900 Subject: [PATCH] Add c-paragraph-start for matching annotation and attributes --- lisp/php-mode.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/php-mode.el b/lisp/php-mode.el index dc854675..a09b60e2 100644 --- a/lisp/php-mode.el +++ b/lisp/php-mode.el @@ -591,6 +591,15 @@ PHP does not have an C-like \"enum\" keyword." (c-lang-defconst c-enums-contain-decls php nil) +(c-lang-defconst c-paragraph-start + php (eval-when-compile + (rx (group (or (: "@" (in "a-zA-Z" "\\") word-end) + (: "#[") + eol))))) + +(c-lang-defconst c-other-decl-kwds + php nil) + (c-lang-defconst c-nonlabel-token-key "Regexp matching things that can't occur in generic colon labels.