[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 30f8b8feb4 122/222: Merge pull request #87
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 30f8b8feb4 122/222: Merge pull request #87 from Ailrun/add-jsdoc-tags |
Date: |
Sun, 6 Feb 2022 16:59:25 -0500 (EST) |
branch: elpa/typescript-mode
commit 30f8b8feb45516e2c20ef984ca15e076b41b97f7
Merge: 39b7ba9e54 a1cdb7a1ec
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: GitHub <noreply@github.com>
Merge pull request #87 from Ailrun/add-jsdoc-tags
Add more jsdoc tags
---
typescript-mode.el | 76 +++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 58 insertions(+), 18 deletions(-)
diff --git a/typescript-mode.el b/typescript-mode.el
index 1718419df5..9d2ef766bc 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
@@ -430,9 +436,10 @@ Match group 1 is MUMBLE.")
"Matches jsdoc tags with optional type and optional param name.")
;; This was taken from js2-mode.
+;; and extended with tags in http://usejsdoc.org/
(defconst typescript-jsdoc-typed-tag-regexp
(concat typescript-jsdoc-before-tag-regexp
- "\\(@\\(?:"
+ "\\(@"
(regexp-opt
'("enum"
"extends"
@@ -446,55 +453,75 @@ Match group 1 is MUMBLE.")
"returns"
"throw"
"throws"
- "type"))
- "\\)\\)\\s-*\\({[^}]+}\\)?")
+ "type"
+ "yield"
+ "yields"))
+ "\\)\\s-*\\({[^}]+}\\)?")
"Matches jsdoc tags with optional type.")
;; This was taken from js2-mode.
+;; and extended with tags in http://usejsdoc.org/
(defconst typescript-jsdoc-arg-tag-regexp
(concat typescript-jsdoc-before-tag-regexp
- "\\(@\\(?:"
+ "\\(@"
(regexp-opt
- '("alias"
+ '("access"
+ "alias"
"augments"
+ "base"
"borrows"
- "callback"
"bug"
- "base"
+ "callback"
"config"
"default"
"define"
"emits"
"exception"
+ "extends"
+ "external"
"fires"
"func"
"function"
+ "host"
+ "kind"
+ "listens"
"member"
- "memberOf"
+ "memberof"
"method"
+ "mixes"
+ "module"
"name"
"namespace"
+ "requires"
"since"
"suppress"
"this"
"throws"
+ "var"
+ "variation"
"version"))
- "\\)\\)\\s-+\\([^ \t]+\\)")
+ "\\)\\s-+\\([^ \t]+\\)")
"Matches jsdoc tags with a single argument.")
-;; This was taken from js2-mode.
+;; This was taken from js2-mode
+;; and extended with tags in http://usejsdoc.org/
(defconst typescript-jsdoc-empty-tag-regexp
(concat typescript-jsdoc-before-tag-regexp
- "\\(@\\(?:"
+ "\\(@"
(regexp-opt
- '("addon"
+ '("abstract"
+ "addon"
+ "async"
"author"
"class"
+ "classdesc"
"const"
"constant"
"constructor"
"constructs"
"copyright"
+ "default"
+ "defaultvalue"
"deprecated"
"desc"
"description"
@@ -502,32 +529,45 @@ Match group 1 is MUMBLE.")
"example"
"exec"
"export"
+ "exports"
+ "file"
"fileoverview"
"final"
"func"
"function"
+ "generator"
+ "global"
"hidden"
+ "hideconstructor"
"ignore"
- "implicitCast"
- "inheritDoc"
+ "implicitcast"
+ "inheritdoc"
"inner"
+ "instance"
"interface"
"license"
"method"
+ "mixin"
"noalias"
"noshadow"
"notypecheck"
"override"
+ "overview"
"owner"
+ "package"
"preserve"
- "preserveTry"
+ "preservetry"
"private"
"protected"
"public"
+ "readonly"
"static"
+ "summary"
"supported"
- ))
- "\\)\\)\\s-*")
+ "todo"
+ "tutorial"
+ "virtual"))
+ "\\)\\s-*")
"Matches empty jsdoc tags.")
;; Note that this regexp by itself would match tslint flags that appear inside
- [nongnu] elpa/typescript-mode 361564c4a9 057/222: typescript-current-column: Dont cause side-effects., (continued)
- [nongnu] elpa/typescript-mode 361564c4a9 057/222: typescript-current-column: Dont cause side-effects., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode d155a4b623 063/222: Revert indent of complex parameters., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e0b4a6cb31 055/222: Merge pull request #36 from lddubeau/feature/improved-tslint-regex, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bce2e73cf2 107/222: Remove unused dependencies, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7172a23d86 072/222: Add a custom predicate for flyspell-prog-mode., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode d8501770f6 103/222: Fix indentation of multiple curly braces in sequence., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a09e9c78f9 108/222: Highlight class names., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7c6fd0f4a8 115/222: Document how to handle ANSI codes in error messages., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 9796425fdb 113/222: Add support for new type "unknown"., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 39b7ba9e54 117/222: Distinguish type arguments from lesser/greater than. (Fixes #81), ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 30f8b8feb4 122/222: Merge pull request #87 from Ailrun/add-jsdoc-tags,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 29282a32b7 124/222: add never type, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 8910e12525 129/222: Add autoload cookie with safe-local-var for typescript-indent-level, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode fbaad515c9 132/222: Merge pull request #89 from Ailrun/update-jsdoc-tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 32146510b8 147/222: Pin our dist to Trusty., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 706f938aef 155/222: force generic regex to include symbol before it (#119), ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e38492f1cd 179/222: Extend Type-name to support namespace-prefixes., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7040961735 166/222: Highlight type-names in type-casts too., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode de1a696c3c 174/222: Ignore errors from backward-list, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a7cd7a92a5 167/222: fix(font-lock): prefer fontifying constants over keywords, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1767de1095 180/222: Merge pull request #129 from emacs-typescript/feature/types-in-declarations, ELPA Syncer, 2022/02/06