Merge pull request #3040 from annda/lexer-access
Let plugins access the lexer mode stack
This commit is contained in:
commit
bdeb339a56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue