Skip to content

Instantly share code, notes, and snippets.

@dmj
dmj / gist:3889487
Created October 14, 2012 18:59
Highlight annotations in PHP
(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)
@jasonrudolph
jasonrudolph / about.md
Last active May 2, 2025 12:20
Programming Achievements: How to Level Up as a Developer