class

Obelisk::SmartLexerSelector

Inherits Reference < Object

High-level lexer selector with multiple strategies

Constructors

new(registry : PriorityLexerRegistry, fallback_lexer : Lexer)
Source

Instance methods

select(text : String, strategy : SelectionStrategy = SelectionStrategy::Auto, lexer_name : String | Nil = nil, filename : String | Nil = nil, mime_type : String | Nil = nil) : Lexer
Source