Source

chitin / sample.txt

Diff from to

sample.txt

   val = val.strip == '..' ? 'cd ".."' : val
 end
 
-pre_process do |val|
-  # if there is an unclosed string, close it and run it again.
-  # smart compilers are bad... but this ain't a compiler
-  #
-  # option: make it ask for confirmation first
-  # settable in chitinrc, perjaps?
-  if (e = syntax_error_for(val)) &&
-     e.message =~ /unterminated string meets end of file/
-
-    if syntax_error_for(val + '\'')
-      unless syntax_error_for(val + '"')
-        val << '"'
-      end
-    else
-      val << '\''
-    end
-
-  end
-
-  val
-end
-
-# You can use error classes as a name and if the error comes up,
-# block of code will be run.
-#
-# post_process SyntaxError do |e, val|
-#   # sample
-# end
-
-post_process :color do |val|
-  Wirble::Colorize.colorize val
-end
-
 ari: ~/src/chitin (... # I've got a shortcut there that allows me to do this:
 ari: ~/src/chitin (... ..
  => "/Users/ari/src"