diff --git a/src/Type/Lexer.php b/src/Type/Lexer.php index 80dd048db..50aeeab5b 100644 --- a/src/Type/Lexer.php +++ b/src/Type/Lexer.php @@ -36,7 +36,7 @@ public function parse(string $type) protected function getCatchablePatterns(): array { return [ - '[a-z][a-z_\\\\0-9]*', // identifier or qualified name + '[a-z][a-z_\\\\0-9\\x{0400}-\\x{04FF}]*', // identifier or qualified name "'(?:[^']|'')*'", // single quoted strings '(?:[0-9]+(?:[\.][0-9]+)*)(?:e[+-]?[0-9]+)?', // numbers '"(?:[^"]|"")*"', // double quoted strings