branch: elpa/tuareg commit 0f49e65bfc90f6a9d0a0ab05ac48146072d48827 Author: Mattias EngdegÄrd <matti...@acm.org> Commit: Mattias EngdegÄrd <matti...@acm.org>
Only fontify known @-tags in doc-markup face Help the programmer by not fontifying unknown @-tags, likely to be misspellings. --- tuareg.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tuareg.el b/tuareg.el index f8ecab0..088c91c 100644 --- a/tuareg.el +++ b/tuareg.el @@ -801,7 +801,9 @@ delimiting the region of interest. " 'tuareg-font-lock-error-face)) ;; @-tag. - ((rx "@" (group (+ (in "a-z" "_")))) + ((rx "@" (group (or "author" "deprecated" "param" "raise" "return" + "see" "since" "before" "version")) + word-end) (put-text-property start (point) 'face 'tuareg-font-lock-doc-markup-face) ;; Use code face for the first argument of some tags.