Skip to content

Commit 3ddbffa

Browse files
author
Demis Balbach
committed
Make position of abstract/final keywords irrelevant in method declaration
1 parent 79096c8 commit 3ddbffa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

php-mode.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,13 +1556,13 @@ a completion list."
15561556
("\\(abstract\\|final\\)[[:space:]]\\(?:class\\)" (1 'php-class-modifiers))
15571557

15581558
;; Method modifiers (abstract, final)
1559-
("\\(abstract\\|final\\)[[:space:]]\\(?:static\\|public\\|private\\|protected\\)" (1 'php-method-modifiers))
1559+
("\\(abstract\\|final\\)[[:space:]]\\(?:static\\|public\\|private\\|protected\\|function\\)" (1 'php-method-modifiers))
15601560

1561-
;; Method access protection
1562-
("\\(private\\|protected\\|public\\)[[:space:]]\\(?:static\\|function\\)" (1 'php-method-access))
1561+
;; Method access protection (public, protected, private)
1562+
("\\(private\\|protected\\|public\\)[[:space:]]\\(?:static\\|function\\|abstract|\\final\\)" (1 'php-method-access))
15631563

15641564
;; Method static modifier
1565-
("\\(static\\)[[:space:]]\\(?:public\\|protected\\|private\\|function\\)" (1 'php-method-static))
1565+
("\\(static\\)[[:space:]]\\(?:public\\|protected\\|private\\|function\\|abstract\\|final\\)" (1 'php-method-static))
15661566

15671567
;; Property access protection
15681568
;("\\(private\\|protected\\|public\\)\\(?:[[:space:]]const[[:space:]][[:word:]]\\|[[:space:]]\$[[:word:]]\\)" (1 'php-property-access))

0 commit comments

Comments
 (0)