lib/bond/completion.rb in bond-0.2.2 vs lib/bond/completion.rb in bond-0.3.0

- old
+ new

@@ -5,12 +5,12 @@ complete :all_operator_methods=>true # classes and constants complete(:name=>:constants, :anywhere=>'([A-Z][^. \(]*)::([^: .]*)') {|e| receiver = e.matched[2] candidates = eval("#{receiver}.constants | #{receiver}.methods") || [] - normal_search(e.matched[3], candidates).map {|e| receiver + "::" + e} + normal_search(e.matched[3], candidates).map {|e| "#{receiver}::#{e}" } } # absolute constants complete(:prefix=>'::', :anywhere=>'[A-Z][^:\.\(]*') {|e| Object.constants } complete(:anywhere=>':[^:\s.]*') {|e| Symbol.all_symbols.map {|f| ":#{f}" } rescue [] } complete(:anywhere=>'\$[^\s.]*') {|e| global_variables } -complete(:name=>:quoted_files, :on=>/[\s(]["']([^'"]*)$/, :search=>false, :place=>:last) {|e| files(e.matched[1]) } \ No newline at end of file +complete(:name=>:quoted_files, :on=>/[\s(]["']([^'"]*)$/, :search=>false, :place=>:last) {|e| files(e.matched[1]) }