emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/tuareg 0f49e65 02/10: Only fontify known @-tags in doc-mar


From: ELPA Syncer
Subject: [nongnu] elpa/tuareg 0f49e65 02/10: Only fontify known @-tags in doc-markup face
Date: Fri, 30 Jul 2021 16:57:26 -0400 (EDT)

branch: elpa/tuareg
commit 0f49e65bfc90f6a9d0a0ab05ac48146072d48827
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Mattias EngdegÄrd <mattiase@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]