[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/php-mode fa8a969bb1 2/4: Support prefixed tags in phpstan-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/php-mode fa8a969bb1 2/4: Support prefixed tags in phpstan- and psalm- |
Date: |
Thu, 27 Oct 2022 11:59:33 -0400 (EDT) |
branch: elpa/php-mode
commit fa8a969bb1e7e2a2723a0d146fb71a2602662877
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@zonu.me>
Support prefixed tags in phpstan- and psalm-
---
lisp/php-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/php-mode.el b/lisp/php-mode.el
index 82ee54dbcb..e1ee50d8b9 100644
--- a/lisp/php-mode.el
+++ b/lisp/php-mode.el
@@ -1301,7 +1301,7 @@ for \\[find-tag] (which see)."
(1 'php-doc-variable-sigil prepend nil)
(2 'php-variable-name prepend nil))
("\\(\\$\\)\\(this\\)\\>" (1 'php-doc-$this-sigil prepend nil) (2
'php-doc-$this prepend nil))
- (,(concat "\\s-@" (regexp-opt php-phpdoc-type-tags) "\\s-+"
+ (,(concat "\\s-@" (rx (? (or "phpstan" "psalm") "-")) (regexp-opt
php-phpdoc-type-tags) "\\s-+"
"\\(" (rx (+ (? "?") (? "\\") (+ (in "0-9A-Z_a-z")) (? "[]") (?
"|"))) "\\)+")
1 'php-string prepend nil)
(,(concat "\\(?:|\\|\\?\\|\\s-\\)\\("