From 759229485a232d78f4debc6298a0d72c061e60b4 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 10 Nov 2023 01:07:04 +0300 Subject: [PATCH] Adding dot.name support for extends, implements and RPC names --- parser.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser.inc.php b/parser.inc.php index 0f0a25b..6b0056a 100644 --- a/parser.inc.php +++ b/parser.inc.php @@ -534,7 +534,7 @@ class mtgMetaInfoParser { $this->_next(); $origin = new mtgOrigin($this->file, $this->line); - $parent_name = $this->_checkThenNext(self::T_Identifier); + $parent_name = $this->_parseDotName(); $parent = new mtgTypeRef($parent_name, $this->module, $origin); } @@ -545,7 +545,7 @@ class mtgMetaInfoParser { $this->_next(); $origin = new mtgOrigin($this->file, $this->line); - $if_name = $this->_checkThenNext(self::T_Identifier); + $if_name = $this->_parseDotName(); $implements[] = new mtgTypeRef($if_name, $this->module, $origin); } while($this->token == ord(',')); } @@ -611,7 +611,7 @@ class mtgMetaInfoParser { $this->_next(); $code = $this->_checkThenNext(self::T_IntegerConstant); - $name = $this->_checkThenNext(self::T_Identifier); + $name = $this->_parseDotName(); $this->_checkThenNext('('); $tokens = $this->shared_tokens;