Function: ruby-special-char-p
ruby-special-char-p is a byte-compiled function defined in
ruby-mode.el.gz.
Signature
(ruby-special-char-p &optional POS)
Documentation
Return t if the character before POS is a special character.
If omitted, POS defaults to the current point.
Special characters are ?, $, : when preceded by whitespace,
and \ when preceded by ?.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defun ruby-special-char-p (&optional pos)
"Return t if the character before POS is a special character.
If omitted, POS defaults to the current point.
Special characters are `?', `$', `:' when preceded by whitespace,
and `\\' when preceded by `?'."
(setq pos (or pos (point)))
(let ((c (char-before pos)) (b (and (< (point-min) pos)
(char-before (1- pos)))))
(cond ((or (eq c ??) (eq c ?$)))
((and (eq c ?:) (or (not b) (eq (char-syntax b) ? ))))
((eq c ?\\) (eq b ??)))))