Skip to content

Commit 451fb60

Browse files
author
Demis Balbach
committed
Add sanity check for class declaration (We don't want to match get_class()
1 parent aad24cf commit 451fb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ a completion list."
15401540
;; a different face.
15411541
`(
15421542
;; Class declaration keywords (class, trait, interface)
1543-
("class\\|trait\\|interface" . 'php-class-declaration)
1543+
("\\(class\\|trait\\|interface\\)[^(]" (1 'php-class-declaration))
15441544

15451545
;; Class declaration specification keywords (implements, extends)
15461546
("implements\\|extends" . 'php-class-declaration-spec)

0 commit comments

Comments
 (0)