class Icr::Highlighter

Defined in:

icr/highlighter.cr

Constant Summary

KEYWORDS = Set {"new", :abstract, :alias, :as, :"as?", :asm, :begin, :break, :case, :class, :def, :do, :else, :elsif, :end, :ensure, :enum, :extend, :for, :fun, :if, :in, :include, :instance_sizeof, :"is_a?", :lib, :macro, :module, :next, :"nil?", :of, :out, :pointerof, :private, :protected, :require, :rescue, :"responds_to?", :return, :select, :sizeof, :struct, :super, :then, :type, :typeof, :undef, :union, :uninitialized, :unless, :until, :when, :while, :with, :yield}
OPERATORS = Set {:+, :-, :*, :/, :"=", :==, :<, :<=, :>, :>=, :!, :!=, :=~, :!~, :&, :|, :^, :~, :**, :>>, :<<, :%, :[], :[]?, :[]=, :<=>, :===}
SPECIAL_VALUES = Set {:true, :false, :nil, :self, :__FILE__, :__DIR__, :__LINE__, :__END_LINE__}

Constructors

Instance Method Summary

Constructor Detail

def self.new(invitation : String) #

[View source]

Instance Method Detail

def highlight(code) #

[View source]
def highlight_stack : Array(Highlight) #

[View source]