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.



3823
3824
3825
3826
3827
# File 'ext/ae-editor/ae-editor.rb', line 3823

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

Instance Method Details

#classesObject



3832
3833
3834
3835
3836
3837
# File 'ext/ae-editor/ae-editor.rb', line 3832

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



3829
3830
# File 'ext/ae-editor/ae-editor.rb', line 3829

def highlight_tags(_row_begin,_code)
end