class Syntax::Highlighter
- Syntax::Highlighter
- Reference
- Object
Defined in:
syntax.crsyntax/helpers.cr
Instance Method Summary
- #build_spec(actions)
- #compile(grammar : String)
-
#highlight(input : String, grammar : String)
Given
inputandgrammar, parse input and then style with colors specified ingrammar. - #highlight(input : String, grammar : Grammar)
Instance Method Detail
def highlight(input : String, grammar : String)
#
Given input and grammar, parse input and then style with colors
specified in grammar.