@@ -496,10 +496,10 @@ PHP does not have an C-like \"enum\" keyword."
496496 php nil)
497497
498498(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 ")))
500500
501501(c-lang-defconst c-modifier-kwds
502- php '("abstract" "const" " final" "static" "case" "readonly"))
502+ php '("abstract" "final" "static" "case" "readonly"))
503503
504504(c-lang-defconst c-protection-kwds
505505 "Access protection label keywords in classes."
@@ -1396,11 +1396,6 @@ for \\[find-tag] (which see)."
13961396 ("\\_<\\(?:implements\\|extends\\)\\_>" . 'php-class-declaration-spec)
13971397 ;; Namespace declaration
13981398 ("\\_<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)))
14041399 ;; import statement
14051400 ("\\_<use\\_>" . 'php-import-declaration)
14061401 ;; Class modifiers (abstract, final)
@@ -1488,6 +1483,11 @@ for \\[find-tag] (which see)."
14881483 (+ (syntax whitespace)))
14891484 (1 'php-import-declaration)
14901485 (,(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)))
14911491 ;; Highlight function calls
14921492 ("\\(\\_<\\(?:\\sw\\|\\s_\\)+?\\_>\\)\\s-*(" 1 'php-function-call)
14931493 ;; Highlight all upper-cased symbols as constant
0 commit comments