Skip to content

Commit 57194a5

Browse files
committed
Expand kwds instead of using c-lang-const from 'java
1 parent 2c2d510 commit 57194a5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

php-mode.el

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -476,29 +476,25 @@ PHP does not have an \"enum\"-like keyword."
476476
php nil)
477477

478478
(c-lang-defconst c-block-stmt-2-kwds
479-
php (append '("elseif" "foreach" "declare")
480-
(remove "synchronized" (c-lang-const c-block-stmt-2-kwds))))
479+
php '("catch" "declare" "elseif" "for" "foreach" "if" "switch" "while"))
481480

482481
(c-lang-defconst c-simple-stmt-kwds
483-
php (append '("include" "include_once" "require" "require_once"
484-
"echo" "print" "die" "exit")
485-
(c-lang-const c-simple-stmt-kwds)))
482+
php '("break" "continue" "die" "echo" "exit" "goto" "return" "throw"
483+
"include" "include_once" "print" "require" "require_once"))
486484

487485
(c-lang-defconst c-constant-kwds
488-
php '("true"
489-
"false"
490-
"null"))
486+
php '("true" "false" "null"))
491487

492488
(c-lang-defconst c-lambda-kwds
493-
php '("function"
494-
"use"))
489+
php '("function" "use"))
495490

496491
(c-lang-defconst c-other-block-decl-kwds
497492
php '("namespace"))
498493

499494
(c-lang-defconst c-other-kwds
500495
"Keywords not accounted for by any other `*-kwds' language constant."
501-
php '(
496+
php
497+
'(
502498
"__halt_compiler"
503499
"and"
504500
"array"

0 commit comments

Comments
 (0)