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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
;; -*- mode: emacs-lisp -*-
(("<?php" . php-php-tag)
("\n\n")
("/**\n * File level doc-comment\n *\n * " . font-lock-doc-face)
("@copyright" php-doc-annotation-tag font-lock-doc-face)
(" 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n * " . font-lock-doc-face)
("@copyright" php-doc-annotation-tag font-lock-doc-face)
(" 2008 Aaron S. Hawley\n * " . font-lock-doc-face)
("@copyright" php-doc-annotation-tag font-lock-doc-face)
(" 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\n * " . font-lock-doc-face)
("@author" php-doc-annotation-tag font-lock-doc-face)
(" USAMI Kenta <tadsan@pixiv.com>\n * " . font-lock-doc-face)
("@link" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("https://github.com/emacs-php/php-mode" link font-lock-doc-face)
("\n * " . font-lock-doc-face)
("@package" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("Emacs\\PHPMode" php-string font-lock-doc-face)
("\n */" . font-lock-doc-face)
("\n\n")
("// " . font-lock-comment-delimiter-face)
("one-line comment\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("@annotation This is NOT annotation. 1\n" . font-lock-comment-face)
("\n")
("/*" . font-lock-comment-delimiter-face)
("------------------------------------------------\n Multi-line comment\n\n * @annotation This is NOT annotation. 2\n -------------------------------------------------*/" . font-lock-comment-face)
("\n\n")
("// " . font-lock-comment-delimiter-face)
("/**\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("* Comment outed class implementation\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("*\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("* @annotation This is NOT annotation. 3\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("*/\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("class CommentOuted\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("{\n" . font-lock-comment-face)
("// " . font-lock-comment-delimiter-face)
("}\n" . font-lock-comment-face)
("\n")
("/**\n * Class level doc-comment\n *\n * Description " . font-lock-doc-face)
("{@internal " php-doc-annotation-tag font-lock-doc-face)
("Description" php-string php-doc-annotation-tag font-lock-doc-face)
("}" php-doc-annotation-tag font-lock-doc-face)
(" inline tag.\n *\n * " . font-lock-doc-face)
("@property-read" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("string" font-lock-type-face php-string font-lock-doc-face)
("[]" php-string font-lock-doc-face)
(" " . font-lock-doc-face)
("$" php-doc-variable-sigil font-lock-doc-face)
("name" php-variable-name font-lock-doc-face)
("\n * " . font-lock-doc-face)
("@ORM\\Table" php-doc-annotation-tag font-lock-doc-face)
("(name=\"majormodes\")\n * " . font-lock-doc-face)
("@ORM\\Entity" php-doc-annotation-tag font-lock-doc-face)
("(repositoryClass=\"Emacs\\Repository\\MajorModeRepository\")\n */" . font-lock-doc-face)
("\n")
("final" . php-keyword)
(" ")
("class" . php-class-declaration)
(" ")
("SampleClass" . font-lock-type-face)
("\n{\n ")
("/** Const doc-comment */" . font-lock-doc-face)
("\n ")
("const" . php-keyword)
(" ")
("SAMPLE" . font-lock-type-face)
(" = ")
("'SAMPLE'" . php-string)
(";\n ")
("/** " . font-lock-doc-face)
("@var" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("string" font-lock-type-face php-string font-lock-doc-face)
(" sample property doc-comment */" . font-lock-doc-face)
("\n ")
("private" . php-keyword)
(" ")
("$" . php-variable-sigil)
("name" . php-variable-name)
(";\n\n ")
("/**\n * " . font-lock-doc-face)
("@param" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("string" font-lock-type-face php-string font-lock-doc-face)
(" " . font-lock-doc-face)
("$" php-doc-variable-sigil font-lock-doc-face)
("name" php-variable-name font-lock-doc-face)
("\n */" . font-lock-doc-face)
("\n ")
("public" . php-keyword)
(" ")
("function" . php-keyword)
(" ")
("__construct" . php-function-name)
("(")
("$" . php-variable-sigil)
("name" . php-variable-name)
(")\n {\n ")
("$" . php-$this-sigil)
("this" . php-$this)
("->" . php-object-op)
("name" . php-property-name)
(" = ")
("$" . php-variable-sigil)
("name" . php-variable-name)
("; ")
("// " . font-lock-comment-delimiter-face)
("comment in after code\n" . font-lock-comment-face)
("\n ")
("/** " . font-lock-doc-face)
("@var" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("string" font-lock-type-face php-string font-lock-doc-face)
("|" php-string font-lock-doc-face)
("bool" font-lock-type-face php-string font-lock-doc-face)
("|" php-string font-lock-doc-face)
("array" font-lock-type-face php-string font-lock-doc-face)
("[]|ArrayObject" php-string font-lock-doc-face)
(" */" . font-lock-doc-face)
("\n ")
("$" . php-variable-sigil)
("foo" . php-variable-name)
(" = hoge();\n\n ")
("// " . font-lock-comment-delimiter-face)
("one-line comment\n" . font-lock-comment-face)
(" ")
("// " . font-lock-comment-delimiter-face)
("@annotation This is NOT annotation. 4\n" . font-lock-comment-face)
("\n ")
("/** " . font-lock-doc-face)
("@var" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("int" font-lock-type-face php-string font-lock-doc-face)
(" internal linter variable */" . font-lock-doc-face)
("\n ")
("$" . php-variable-sigil)
("offset" . php-variable-name)
(" = 0;\n }\n\n ")
("/**\n * Summary\n *\n * " . font-lock-doc-face)
("@throws" php-doc-annotation-tag font-lock-doc-face)
(" " . font-lock-doc-face)
("\\RuntimeException" php-string font-lock-doc-face)
("\n */" . font-lock-doc-face)
("\n ")
("public" . php-keyword)
(" ")
("function" . php-keyword)
(" ")
("test" . php-function-name)
("()\n {\n ")
("throw" . php-keyword)
(" ")
("new" . php-keyword)
(" ")
("\\RuntimeException" . font-lock-type-face)
(";\n }\n}\n"))
|