projects
/
mdref
/
mdref
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d3f229b
)
ignore html marking single char constants
author
Michael Wallner
<mike@php.net>
Thu, 9 Sep 2021 13:16:11 +0000
(15:16 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 9 Sep 2021 13:16:11 +0000
(15:16 +0200)
mdref/Structure.php
patch
|
blob
|
history
diff --git
a/mdref/Structure.php
b/mdref/Structure.php
index 70233cbbc6fe99914313184e27f1299e762f0f6c..ace780b4d0c62b340be869c124cdefebc3132cda 100644
(file)
--- a/
mdref/Structure.php
+++ b/
mdref/Structure.php
@@
-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';