Class: HighlightScanner

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-editor/ae-editor.rb

Instance Method Summary collapse

Constructor Details

#initialize(_langs_conf) ⇒ HighlightScanner

Returns a new instance of HighlightScanner.



3709
3710
3711
3712
# File 'ext/ae-editor/ae-editor.rb', line 3709

def initialize(_langs_conf)
  @langs_conf = _langs_conf
  @lang=@langs_conf['language'].to_sym if @langs_conf['language']
end

Instance Method Details

#classesObject



3717
3718
3719
3720
3721
3722
# File 'ext/ae-editor/ae-editor.rb', line 3717

def classes
  if !defined?(@h_classes)
    @h_classes = @langs_conf["#{@langs_conf['scanner']}.classes"].split(',')
  end
  @h_classes
end

#highlight_tags(_row_begin, _code) ⇒ Object



3714
3715
# File 'ext/ae-editor/ae-editor.rb', line 3714

def highlight_tags(_row_begin,_code)
end