This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| (defface php-annotations-annotation-face '((t . (:inherit 'font-lock-constant-face))) | |
| "Face used to highlight annotations.") | |
| (defconst php-annotations-re "\\(\\s-\\|{\\)\\(@[[:alpha:]]+\\)") | |
| (defmacro php-annotations-inside-comment-p (pos) | |
| "Return non-nil if POS is inside a comment." | |
| `(eq (get-char-property ,pos 'face) 'font-lock-comment-face)) | |
| (defun php-annotations-font-lock-find-annotation (limit) |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer