branch: elpa/typescript-mode
commit 5d5c611e2defaeba95b486f53024a8683c7e3361
Author: Junyoung Clare Jang <[email protected]>
Commit: Junyoung Clare Jang <[email protected]>
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"