branch: elpa/inf-ruby
commit 03f3b202d7368992855d5fd3b5486b855fb37e05
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Allow statement counter in Rails prompt (for Rails 8.1)
Resolves #192
---
inf-ruby.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index c22ebc00a31..2c98971c4e2 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -165,7 +165,7 @@ commands as `ruby-send-last-stmt' or `ruby-switch-to-inf'."
"\\(^(rdb:1) *\\)" ; Debugger
"\\(^(rdbg[^)]*) *\\)" ; Ruby Debug Gem
"\\(^(byebug) *\\)" ; byebug
- "\\(^[a-z0-9-_]+([a-z0-9-_]+)%s *\\)" ; Rails 7+: project name and
environment
+ "\\(^[a-z0-9-_]+([a-z0-9-_]+)\\)" ; Rails 7+: project name and
environment
"\\(^\\(irb([^)]+)" ; IRB default
"\\([[0-9]+] \\)?[Pp]ry ?([^)]+)" ; Pry
"\\(jruby-\\|JRUBY-\\)?[1-9]\\.[0-9]\\(\\.[0-9]+\\)*\\(-?p?[0-9]+\\)?" ;
RVM
@@ -177,7 +177,7 @@ commands as `ruby-send-last-stmt' or `ruby-switch-to-inf'."
Two placeholders: first char in the Simple prompt, and the last
graphical char in all other prompts.")
-(defvar inf-ruby-first-prompt-pattern (format inf-ruby-prompt-format ">" ">"
">")
+(defvar inf-ruby-first-prompt-pattern (format inf-ruby-prompt-format ">" ">")
"First prompt regex pattern of Ruby interpreter.")
(defvar inf-ruby-prompt-pattern