class Syntax::Highlighter

Defined in:

syntax.cr
syntax/helpers.cr

Instance Method Summary

Instance Method Detail

def build_spec(actions) #

[View source]
def compile(grammar : String) #

[View source]
def highlight(input : String, grammar : String) #

Given input and grammar, parse input and then style with colors specified in grammar.


[View source]
def highlight(input : String, grammar : Grammar) #

[View source]