ignore html marking single char constants
authorMichael Wallner <mike@php.net>
Thu, 9 Sep 2021 13:16:11 +0000 (15:16 +0200)
committerMichael Wallner <mike@php.net>
Thu, 9 Sep 2021 13:16:11 +0000 (15:16 +0200)
mdref/Structure.php

index 70233cbbc6fe99914313184e27f1299e762f0f6c..ace780b4d0c62b340be869c124cdefebc3132cda 100644 (file)
@@ -129,7 +129,9 @@ class Structure {
        private function getConstants() : array {
                static $pattern = '/
                        \*\s+
+                       (?:[<]span[ ]class="constant"[>])?
                        (?<name>\w+)
+                       (?:[<]\/span[>])?
                        (?:\s*=\s*(?P<value>.+))?
                        (?P<desc>(?:\s*\n\s*[^\*\n#].*)*)
                /x';