lib/rib/extra/autoindent.rb in rib-1.5.1 vs lib/rib/extra/autoindent.rb in rib-1.5.2
- old
+ new
@@ -1,12 +1,12 @@
require 'rib/core/history' # otherwise the order might be wrong
require 'rib/core/readline' # dependency
require 'rib/core/multiline' # dependency
-module Rib::Autoindent
- extend Rib::Plugin
+module Rib; module Autoindent
+ extend Plugin
Shell.use(self)
# begin block could be simpler, because it should also trigger
# SyntaxError, otherwise indention would be wiped out.
# but end block should be exactly match, because we don't have
@@ -151,10 +151,10 @@
end
def autoindent_stack
@autoindent_stack ||= []
end
-end
+end; end
begin
require 'readline_buffer'
rescue LoadError => e
Rib.warn("Error: #{e}" ,