Skip to content

Commit 749e019

Browse files
authored
Merge pull request #633 from emacs-php/feature/mixed-type
Add mixed type
2 parents 4369c21 + c8f2a5d commit 749e019

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ In that case set to `NIL'."
472472

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

477477
(c-lang-defconst c-class-decl-kwds
478478
"Keywords introducing declarations where the following block (if any)

Diff for: tests/lang/types/keywords.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
string;
1313
object;
1414
resource;
15+
mixed;

Diff for: tests/lang/types/keywords.php.faces

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
("string" . font-lock-type-face)
2121
(";\n")
2222
("object" . font-lock-type-face)
23-
(";\nresource;\n"))
23+
(";\nresource;\n")
24+
("mixed" . font-lock-type-face)
25+
(";\n"))

0 commit comments

Comments
 (0)