Skip to content

Commit 908cfa7

Browse files
author
Demis Balbach
committed
Add property constant regex
1 parent cc050df commit 908cfa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

php-mode.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,11 +1569,10 @@ a completion list."
15691569

15701570
;; Property access protection
15711571
("\\(private\\|protected\\|public\\)\\(?:[[:space:]]static\\|[[:space:]]const\\)?\\(?:[[:space:]]\$?[[:word:]]+\\)\\(?:[[:space:]]*=[[:space:]]*[^;]+\\)?\\(?:;\\)" (1 'php-property-access))
1572-
;("\\(private\\|protected\\|public\\)[[:space:]]\\(?:const[[:space:]][^\$][[:word:]]\\|\$[[:word:]]\\)" (1 'php-property-access))
15731572

15741573
;; Property static modifier
1575-
;;("\\(static\\)[[:space:]]\\(?:public\\|protected\\|private\\)" (1 'php-property-static))
1576-
1574+
("\\(static\\)\\(?:[[:space:]]private\\|[[:space:]]protected\\|[[:space:]]public\\)?\\(?:[[:space:]]\$?[[:word:]]+\\)\\(?:[[:space:]]*=[[:space:]]*[^;]+\\)?\\(?:;\\)" (1 'php-property-static))
1575+
15771576
;; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
15781577
;; not in $obj->var()
15791578
("\\(->\\)\\(\\sw+\\)\\s-*(" (1 'php-object-op) (2 'php-method-call))

0 commit comments

Comments
 (0)