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

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

[elpa] master 47dc8f2 25/38: [feat] add @typedef jsdoc highlighting supp


From: Dmitry Gutov
Subject: [elpa] master 47dc8f2 25/38: [feat] add @typedef jsdoc highlighting support
Date: Wed, 28 Feb 2018 20:12:12 -0500 (EST)

branch: master
commit 47dc8f23c8d2d010bd3c0a0845a9f71c13e7cbad
Author: felipe <address@hidden>
Commit: felipe <address@hidden>

    [feat] add @typedef jsdoc highlighting support
    
    http://usejsdoc.org/tags-typedef.html
---
 js2-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index d70b47f..74ab3e4 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -6909,7 +6909,7 @@ of a simple name.  Called before EXPR has a parent node."
 
 (defconst js2-jsdoc-param-tag-regexp
   (concat "^\\s-*\\*+\\s-*\\(@"
-          "\\(?:param\\|arg\\(?:ument\\)?\\|prop\\(?:erty\\)?\\)"
+          (regexp-opt '("param" "arg" "argument" "prop" "property" "typedef"))
           "\\)"
           "\\s-*\\({[^}]+}\\)?"         ; optional type
           "\\s-*\\[?\\([[:alnum:]_$\.]+\\)?\\]?"  ; name



reply via email to

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