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

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

[nongnu] elpa/typescript-mode 5d5c611e2d 119/222: Add tags in js2-mode


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 5d5c611e2d 119/222: Add tags in js2-mode
Date: Sun, 6 Feb 2022 16:59:24 -0500 (EST)

branch: elpa/typescript-mode
commit 5d5c611e2defaeba95b486f53024a8683c7e3361
Author: Junyoung Clare Jang <jjc9310@gmail.com>
Commit: Junyoung Clare Jang <jjc9310@gmail.com>

    Add tags in js2-mode
---
 typescript-mode.el | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 1718419df5..f4b8a649eb 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -422,7 +422,13 @@ Match group 1 is MUMBLE.")
 (defconst typescript-jsdoc-param-tag-regexp
   (concat typescript-jsdoc-before-tag-regexp
           "\\(@"
-          "\\(?:param\\|arg\\(?:ument\\)?\\|prop\\(?:erty\\)?\\)"
+          (regexp-opt
+           '("arg"
+             "argument"
+             "param"
+             "prop"
+             "property"
+             "typedef"))
           "\\)"
           "\\s-*\\({[^}]+}\\)?"         ; optional type
           "\\s-*\\[?\\([[:alnum:]_$\.]+\\)?\\]?"  ; name
@@ -446,7 +452,9 @@ Match group 1 is MUMBLE.")
              "returns"
              "throw"
              "throws"
-             "type"))
+             "type"
+             "yield"
+             "yields"))
           "\\)\\)\\s-*\\({[^}]+}\\)?")
   "Matches jsdoc tags with optional type.")
 
@@ -457,10 +465,10 @@ Match group 1 is MUMBLE.")
           (regexp-opt
            '("alias"
              "augments"
+             "base"
              "borrows"
-             "callback"
              "bug"
-             "base"
+             "callback"
              "config"
              "default"
              "define"
@@ -472,6 +480,7 @@ Match group 1 is MUMBLE.")
              "member"
              "memberOf"
              "method"
+             "module"
              "name"
              "namespace"
              "since"



reply via email to

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