Skip to content

Commit b250000

Browse files
committed
[TASK] Allow numbers in tags
Relates: phpstan#59
1 parent a2f1a1f commit b250000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lexer/Lexer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function initialize(): void
141141

142142
self::TOKEN_OPEN_PHPDOC => '/\\*\\*(?=\\s)',
143143
self::TOKEN_CLOSE_PHPDOC => '\\*/',
144-
self::TOKEN_PHPDOC_TAG => '@[a-z-]++',
144+
self::TOKEN_PHPDOC_TAG => '@[a-z][a-z0-9-]*+',
145145
self::TOKEN_PHPDOC_EOL => '\\r?+\\n[\\x09\\x20]*+(?:\\*(?!/))?',
146146

147147
self::TOKEN_FLOAT => '(?:-?[0-9]++\\.[0-9]*+(?:e-?[0-9]++)?)|(?:-?[0-9]*+\\.[0-9]++(?:e-?[0-9]++)?)|(?:-?[0-9]++e-?[0-9]++)',

0 commit comments

Comments
 (0)