Skip to content

Commit

Permalink
Add mixed type
Browse files Browse the repository at this point in the history
"mixed" type declare is added in PHP 8.0.

https://wiki.php.net/rfc/mixed_type_v2
  • Loading branch information
zonuexe committed Jul 25, 2020
1 parent 4369c21 commit c8f2a5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ In that case set to `NIL'."

(c-lang-defconst c-primitive-type-kwds
php '("int" "integer" "bool" "boolean" "float" "double" "real"
"string" "object" "void"))
"string" "object" "void" "mixed"))

(c-lang-defconst c-class-decl-kwds
"Keywords introducing declarations where the following block (if any)
Expand Down
1 change: 1 addition & 0 deletions tests/lang/types/keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
string;
object;
resource;
mixed;
4 changes: 3 additions & 1 deletion tests/lang/types/keywords.php.faces
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@
("string" . font-lock-type-face)
(";\n")
("object" . font-lock-type-face)
(";\nresource;\n"))
(";\nresource;\n")
("mixed" . font-lock-type-face)
(";\n"))

0 comments on commit c8f2a5d

Please sign in to comment.