From 5c06130cad44380f9b59306c99af370470462e52 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 7bff8504..953fd2c3 100644 --- a/lisp/php-mode.el +++ b/lisp/php-mode.el @@ -550,6 +550,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.