@@ -1556,16 +1556,23 @@ a completion list."
1556
1556
(" \\ (abstract\\ |final\\ )[[:space:]]\\ (?:class\\ )" (1 'php-class-modifiers ))
1557
1557
1558
1558
; ; Method modifiers (abstract, final)
1559
- (" \\ (abstract\\ |final\\ )[[:space:]]\\ (?: static\\ |public\\ |private\\ |protected\\ | function\\ )" (1 'php-method-modifiers ))
1559
+ (" \\ (abstract\\ |final\\ )\\ (?: [[:space:]]static\\ |[[:space:]] public\\ |[[:space:]] private\\ |[[:space:]] protected\\ )* \\ (?:[[:space:]] function\\ )" (1 'php-method-modifiers ))
1560
1560
1561
1561
; ; Method access protection (public, protected, private)
1562
- (" \\ (private\\ |protected\\ |public\\ )[[:space:]]\\ (?: static\\ |function \\ |abstract| \\ final \\ )" (1 'php-method-access ))
1562
+ (" \\ (private\\ |protected\\ |public\\ )\\ (?: [[:space:]]static\\ |[[:space:]]final \\ |[[:space:]] abstract\\ )* \\ (?:[[:space:]]function \\ )" (1 'php-method-access ))
1563
1563
1564
1564
; ; Method static modifier
1565
- (" \\ (static\\ )[[:space:]]\\ (?:public\\ |protected\\ |private\\ |function\\ |abstract\\ |final\\ )" (1 'php-method-static ))
1565
+ (" \\ (static\\ )\\ (?:[[:space:]]private\\ |[[:space:]]protected\\ |[[:space:]]public\\ |[[:space:]]final\\ |[[:space:]]abstract\\ )*\\ (?:[[:space:]]function\\ )" (1 'php-method-static ))
1566
+
1567
+ ; ; Property constants
1568
+ (" \\ (const\\ )[[:space:]]\\ (?:[^\$ ][[:word:]]\\ )" (1 'php-property-const ))
1566
1569
1567
1570
; ; Property access protection
1568
- ; ("\\ (private\\ |protected\\ |public\\ )\\ (?:[[:space:]]const[[:space:]][[:word:]]\\ |[[:space:]]\$[[:word:]]\\ )" (1 'php-property-access))
1571
+ (" \\ (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))
1573
+
1574
+ ; ; Property static modifier
1575
+ ; ;("\\ (static\\ )[[:space:]]\\ (?:public\\ |protected\\ |private\\ )" (1 'php-property-static))
1569
1576
1570
1577
; ; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
1571
1578
; ; not in $obj->var()
0 commit comments