Skip to content

Commit

Permalink
Further refine inf-ruby-prompt-pattern to match various RVM prompts.
Browse files Browse the repository at this point in the history
The new regexp should match the following prompts:

# MRI 1.9.2
ruby-1.9.2-p0 >
RUBY-1.9.2-p0 >
ruby-1.9.2-p0 >>
ruby-1.9.2-p180 :001 >
# jruby
jruby-1.5.2 >
jruby-1.5.2 >>
# MRI 1.8.7
irb(main):001:0>
# Plain
>
>>
  • Loading branch information
purcell committed Jun 19, 2011
1 parent 235f14b commit 77879d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rinari.el
Expand Up @@ -247,7 +247,7 @@ argument allows editing of the console command arguments."
(run-ruby command)
(save-excursion
(set-buffer "*ruby*")
(set (make-local-variable 'inf-ruby-prompt-pattern) "^\\([a-zA-Z0-9.\-]+ :[0-9]+ >\\|>>\\) ")
(set (make-local-variable 'inf-ruby-prompt-pattern) "^\\(j?ruby[^> ]+\\|J?RUBY[^> ]+\\|irb([^> ]+\\)?\\( ?:[0-9]+\\)* ?>>? ")
(set (make-local-variable 'inf-ruby-first-prompt-pattern) inf-ruby-prompt-pattern)
(rinari-launch))))

Expand Down

0 comments on commit 77879d8

Please sign in to comment.