diff options
-rw-r--r-- | inc/Parsing/Lexer/Lexer.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/Parsing/Lexer/Lexer.php b/inc/Parsing/Lexer/Lexer.php index c164f4ffe..c37e3fe4c 100644 --- a/inc/Parsing/Lexer/Lexer.php +++ b/inc/Parsing/Lexer/Lexer.php @@ -168,6 +168,16 @@ class Lexer } /** + * Gives plugins access to the mode stack + * + * @return StateStack + */ + public function getModeStack() + { + return $this->modeStack; + } + + /** * Sends the matched token and any leading unmatched * text to the parser changing the lexer to a new * mode if one is listed. |