1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
;; -*- mode: emacs-lisp -*-
(("<?php" . php-php-tag)
("\n\n")
("// " . font-lock-comment-delimiter-face)
("Array should be treated like a normal keyword\n" . font-lock-comment-face)
("$" . php-variable-sigil)
("test" . php-variable-name)
(" ")
("=" . php-assignment-op)
(" ")
("array" . php-keyword)
("();\n\n")
("$" . php-variable-sigil)
("test" . php-variable-name)
(" ")
("=" . php-assignment-op)
(" ")
("function" . php-keyword)
("(")
("$" . php-variable-sigil)
("test" . php-variable-name)
(" ")
("=" . php-assignment-op)
(" ")
("array" . php-keyword)
("()) {\n};\n\n")
("// " . font-lock-comment-delimiter-face)
("Array should be treated as a type instead of a keyword in the following situations:\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("- cast, should look like `(int)`\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("- type hint, should look like `int $var`\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("- return type, should look like `: int`\n" . font-lock-comment-face)
("$" . php-variable-sigil)
("test" . php-variable-name)
(" ")
("=" . php-assignment-op)
(" (")
("array" . font-lock-type-face)
(")")
("$" . php-variable-sigil)
("test" . php-variable-name)
(";\n\n")
("$" . php-variable-sigil)
("test" . php-variable-name)
(" ")
("=" . php-assignment-op)
(" ")
("function" . php-keyword)
("(")
("array" . font-lock-type-face)
(" ")
("$" . php-variable-sigil)
("byValue" . php-variable-name)
(", ")
("array" . font-lock-type-face)
(" &")
("$" . php-variable-sigil)
("byReference" . php-variable-name)
("): ")
("array" . font-lock-type-face)
(" {\n};\n"))
|