summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index a6d0c4cec3e..e244ae48271 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -448,7 +448,7 @@ Emacs to Ruby."
((progn
(forward-char -1)
(and (looking-at "\\?")
- (or (eq (char-syntax (preceging-char)) ?w)
+ (or (eq (char-syntax (preceding-char)) ?w)
(ruby-special-char-p))))
nil)
((and (eq option 'heredoc) (< space 0))