Skip to content

Commit

Permalink
Add c-paragraph-start for matching annotation and attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Jan 9, 2022
1 parent 010d0f6 commit 5c06130
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lisp/php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5c06130

Please sign in to comment.