Skip to content

Commit fa8a969

Browse files
committed
Support prefixed tags in phpstan- and psalm-
1 parent 6abc996 commit fa8a969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ for \\[find-tag] (which see)."
13011301
(1 'php-doc-variable-sigil prepend nil)
13021302
(2 'php-variable-name prepend nil))
13031303
("\\(\\$\\)\\(this\\)\\>" (1 'php-doc-$this-sigil prepend nil) (2 'php-doc-$this prepend nil))
1304-
(,(concat "\\s-@" (regexp-opt php-phpdoc-type-tags) "\\s-+"
1304+
(,(concat "\\s-@" (rx (? (or "phpstan" "psalm") "-")) (regexp-opt php-phpdoc-type-tags) "\\s-+"
13051305
"\\(" (rx (+ (? "?") (? "\\") (+ (in "0-9A-Z_a-z")) (? "[]") (? "|"))) "\\)+")
13061306
1 'php-string prepend nil)
13071307
(,(concat "\\(?:|\\|\\?\\|\\s-\\)\\("

0 commit comments

Comments
 (0)