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
|
;; -*- mode: emacs-lisp -*-
(("<?php" . php-php-tag)
("\n\n")
("/**\n * Github Issue: " . font-lock-doc-face)
("https://github.com/emacs-php/php-mode/issues/8" link font-lock-doc-face)
("\n *\n * The code below contains annotations in the comments which begin\n * with the '@' character. The highlighting for these annotations\n * should be different from that used for comments. At the very least\n * php-mode should highlight the part up to the first backslash.\n */" . font-lock-doc-face)
("\n\n")
("/**\n * " . font-lock-doc-face)
("@ORM\\Entity" php-doc-annotation-tag font-lock-doc-face)
("\n * " . font-lock-doc-face)
("@ORM\\Table" php-doc-annotation-tag font-lock-doc-face)
("(name=\"product\")\n */" . font-lock-doc-face)
("\n")
("class" . php-class-declaration)
(" ")
("Product" . font-lock-type-face)
("\n{\n ")
("/**\n * " . font-lock-doc-face)
("@ORM\\Id" php-doc-annotation-tag font-lock-doc-face)
("\n * " . font-lock-doc-face)
("@ORM\\Column" php-doc-annotation-tag font-lock-doc-face)
("(type=\"integer\")\n * " . font-lock-doc-face)
("@ORM\\GeneratedValue" php-doc-annotation-tag font-lock-doc-face)
("(strategy=\"AUTO\")\n */" . font-lock-doc-face)
("\n ")
("protected" . php-keyword)
(" ")
("$" . php-variable-sigil)
("id" . php-variable-name)
(";\n\n ")
("/**\n * " . font-lock-doc-face)
("@ORM\\Column" php-doc-annotation-tag font-lock-doc-face)
("(type=\"string\", length=100)\n */" . font-lock-doc-face)
("\n ")
("protected" . php-keyword)
(" ")
("$" . php-variable-sigil)
("name" . php-variable-name)
(";\n\n ")
("/**\n * " . font-lock-doc-face)
("@ORM\\Column" php-doc-annotation-tag font-lock-doc-face)
("(type=\"decimal\", scale=2)\n */" . font-lock-doc-face)
("\n ")
("protected" . php-keyword)
(" ")
("$" . php-variable-sigil)
("price" . php-variable-name)
(";\n\n ")
("/**\n * " . font-lock-doc-face)
("@ORM\\Column" php-doc-annotation-tag font-lock-doc-face)
("(type=\"text\")\n */" . font-lock-doc-face)
("\n ")
("protected" . php-keyword)
(" ")
("$" . php-variable-sigil)
("description" . php-variable-name)
(";\n}"))
|