LiteralRule
extends AbstractInlineRule
in package
FinalYes
Rule for literals such as ``something``
Table of Contents
Methods
- applies() : bool
- apply() : LiteralInlineNode
- getPriority() : int
- rollback() : void
Methods
applies()
public
applies(InlineLexer $lexer) : bool
Parameters
- $lexer : InlineLexer
Return values
boolapply()
public
apply(BlockContext $blockContext, InlineLexer $lexer) : LiteralInlineNode
Parameters
- $blockContext : BlockContext
- $lexer : InlineLexer
Return values
LiteralInlineNodegetPriority()
public
getPriority() : int
Return values
introllback()
protected
rollback(InlineLexer $lexer, int $position) : void
Parameters
- $lexer : InlineLexer
- $position : int