diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 03:42:00 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 03:42:00 +0000 |
| commit | cbc83d1821cda36a5fa12441d549e04cfd13520c (patch) | |
| tree | 10010a83cb6adca19a6c3a2d598b999b421ea7a4 /lib | |
| parent | 8f082b8c626e3c2fb4c20f84c8ba8834d79e0e61 (diff) | |
| download | ruby-cbc83d1821cda36a5fa12441d549e04cfd13520c.tar.gz ruby-cbc83d1821cda36a5fa12441d549e04cfd13520c.tar.xz ruby-cbc83d1821cda36a5fa12441d549e04cfd13520c.zip | |
* lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
Shirai,Kaoru.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/debug.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index abb068f2c..0a105abab 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -507,21 +507,21 @@ class Context exit! # exit -> exit!: No graceful way to stop threads... end - when /^\s*v(?:ar)?\s+$/ + when /^\s*v(?:ar)?\s+/ debug_variable_info($', binding) - when /^\s*m(?:ethod)?\s+$/ + when /^\s*m(?:ethod)?\s+/ debug_method_info($', binding) - when /^\s*th(?:read)?\s+$/ + when /^\s*th(?:read)?\s+/ if DEBUGGER__.debug_thread_info($', binding) == :cont prompt = false end - when /^\s*pp\s+$/ + when /^\s*pp\s+/ PP.pp(debug_eval($', binding), stdout) - when /^\s*p\s+$/ + when /^\s*p\s+/ stdout.printf "%s\n", debug_eval($', binding).inspect when /^\s*h(?:elp)?$/ |
