diff --git a/php-mode.el b/php-mode.el index 364a4486..65beeb16 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1436,7 +1436,7 @@ a completion list." "return" "throws" "var")) (defconst php-phpdoc-font-lock-doc-comments - `(("{@[-[:alpha:]]+\\s-\\([^}]*\\)}" ; "{@foo ...}" markup. + `(("{@[-[:alpha:]]+\\s-*\\([^}]*\\)}" ; "{@foo ...}" markup. (0 'php-doc-annotation-tag prepend nil) (1 'php-string prepend nil)) (,(rx (group "$") (group (in "A-Za-z_") (* (in "0-9A-Za-z_")))) diff --git a/tests/doc-comment/inheritdoc.php b/tests/doc-comment/inheritdoc.php new file mode 100644 index 00000000..e2000a82 --- /dev/null +++ b/tests/doc-comment/inheritdoc.php @@ -0,0 +1,5 @@ +