From 6ab0ff977d84d816cefa7a92c15aacd5b6694087 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 28 Nov 2001 14:56:32 +0000 Subject: * eval.c (rb_thread_select): should subtract timeofday() from limit, not reverse. * util.c (scan_hex): x is not a hexadecimal digit. * eval.c (rb_thread_schedule): should treat the case that select(2) returns 0, if a thread is under both WAIT_SELECT and WAIT_TIME. Jakub Travnik actually fixed this bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'misc') diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 7f7cebef75..efd61254f4 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -522,7 +522,14 @@ The variable ruby-indent-level controls the amount of indentation. (re-search-backward "#" (save-excursion (beginning-of-line) (point)) t) + (save-excursion + (forward-char -1) + (not (looking-at "\\?"))) (skip-chars-backward " \t") + (if (save-excursion + (forward-char -1) + (looking-at "\\?")) + (skip-chars-forward " \t")) (setq state (ruby-parse-region parse-start (point))) (nth 0 state) (goto-char pos))) -- cgit v1.2.3