class Tartrazine::DelegatingLexer
- Tartrazine::DelegatingLexer
- Tartrazine::BaseLexer
- Reference
- Object
Overview
A lexer that takes two lexers as arguments. A root lexer
and a language lexer. Everything is scalled using the
language lexer, afterwards all Other
tokens are lexed
using the root lexer.
This is useful for things like template languages, where you have Jinja + HTML or Jinja + CSS and so on.
Defined in:
lexer.crConstructors
Instance Method Summary
- #language_lexer : BaseLexer
- #language_lexer=(language_lexer : BaseLexer)
- #root_lexer : BaseLexer
- #root_lexer=(root_lexer : BaseLexer)
- #tokenizer(text : String, secondary = false) : DelegatingTokenizer