From d4a19ca4129f37aa2ba02027af41a56538f9a7fe Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 20 Sep 2017 07:07:15 +0000 Subject: [PATCH] config: allow the DocComment to start with star git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3953 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 28c2f08..c7490f4 100644 --- a/config.php +++ b/config.php @@ -293,7 +293,7 @@ class config if (is_array ($token)) { list ($id, $text) = $token; - if ($debug) echo "ARRAY : $id, $text\n"; + if ($debug) echo "ARRAY : $id (".token_name ($id)."), $text\n"; if ($foundDefault === "" && $text === "->") $foundDefault = $text; if ($id === T_DOC_COMMENT) @@ -302,7 +302,7 @@ class config if ($debug) echo "DOC_COMMENT : $text\n"; // Append the not completed lines $text = trim (substr ($text, 3, -2)); - $text = preg_replace ("/\n\s+/", " ", $text); + $text = preg_replace ("/\n\s+\*?/", " ", $text); $text = preg_replace ( "/(@(param|description|type|values|default|group|prefix))/", "\n\${1}", $text);