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.



4064
4065
4066
4067
4068
# File 'ext/ae-editor/ae-editor.rb', line 4064

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



4073
4074
4075
4076
4077
4078
# File 'ext/ae-editor/ae-editor.rb', line 4073

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



4070
4071
# File 'ext/ae-editor/ae-editor.rb', line 4070

def highlight_tags(_row_begin,_code)
end