Commit 38f2bf2
Build/Test Tools: Simplify the
`(\S+(?:\s*\|\s*\S+)*)` was over-engineered: it explicitly handled spaced unions like `WP_User | WP_Error` but failed to capture types with internal whitespace such as generics (`array<string, int>`).
`(\S.*?)` — anchored on a non-whitespace start and reluctantly matching up to the next `\s+\$\w+` — is functionally equivalent for every type form the alternation already handled, while also correctly capturing types that contain spaces. Whitespace is still collapsed before storing the type. Net effect: 12 additional `@global` tags are now recognized in the codebase.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>@global type pattern in GlobalDocBlockVisitor.1 parent 24a9df9 commit 38f2bf2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments