@@ -496,10 +496,10 @@ PHP does not have an C-like \"enum\" keyword."
496
496
php nil )
497
497
498
498
(c-lang-defconst c-typeless-decl-kwds
499
- php (append (c-lang-const c-class-decl-kwds) '(" function" )))
499
+ php (append (c-lang-const c-class-decl-kwds php ) '(" function" " const " )))
500
500
501
501
(c-lang-defconst c-modifier-kwds
502
- php '(" abstract" " const " " final" " static" " case" " readonly" ))
502
+ php '(" abstract" " final" " static" " case" " readonly" ))
503
503
504
504
(c-lang-defconst c-protection-kwds
505
505
" Access protection label keywords in classes."
@@ -1396,11 +1396,6 @@ for \\[find-tag] (which see)."
1396
1396
(" \\ _<\\ (?:implements\\ |extends\\ )\\ _>" . 'php-class-declaration-spec )
1397
1397
; ; Namespace declaration
1398
1398
(" \\ _<namespace\\ _>" . 'php-namespace-declaration )
1399
- ; ; import constant statement
1400
- (,(rx symbol-start (group " use" (+ (syntax whitespace)) " const" )
1401
- (+ (syntax whitespace)))
1402
- (1 'php-import-declaration )
1403
- (,(rx (group (+ (or (syntax word) (syntax symbol) " \\ " " {" " }" )))) nil nil (1 'php-constant-assign )))
1404
1399
; ; import statement
1405
1400
(" \\ _<use\\ _>" . 'php-import-declaration )
1406
1401
; ; Class modifiers (abstract, final)
@@ -1488,6 +1483,11 @@ for \\[find-tag] (which see)."
1488
1483
(+ (syntax whitespace)))
1489
1484
(1 'php-import-declaration )
1490
1485
(,(rx (group (+ (or (syntax word) (syntax symbol) " \\ " " {" " }" )))) nil nil (1 'php-function-name t )))
1486
+ ; ; import constant statement
1487
+ (,(rx symbol-start (group " use" (+ (syntax whitespace)) " const" )
1488
+ (+ (syntax whitespace)))
1489
+ (1 'php-import-declaration )
1490
+ (,(rx (group (+ (or (syntax word) (syntax symbol) " \\ " " {" " }" )))) nil nil (1 'php-constant-assign t )))
1491
1491
; ; Highlight function calls
1492
1492
(" \\ (\\ _<\\ (?:\\ sw\\ |\\ s_\\ )+?\\ _>\\ )\\ s-*(" 1 'php-function-call )
1493
1493
; ; Highlight all upper-cased symbols as constant
0 commit comments