Merge pull request #3040 from annda/lexer-access

Let plugins access the lexer mode stack
This commit is contained in:
Andreas Gohr 2020-04-09 09:58:03 +02:00 committed by GitHub
commit bdeb339a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -167,6 +167,16 @@ class Lexer
return $this->invokeHandler($raw, DOKU_LEXER_UNMATCHED, $pos);
}
/**
* 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