Skip to content

Instantly share code, notes, and snippets.

@sbryant
Created August 8, 2012 19:28
Show Gist options
  • Save sbryant/3297891 to your computer and use it in GitHub Desktop.
Save sbryant/3297891 to your computer and use it in GitHub Desktop.
(defun ruby-syntax-general-delimiters-goto-beg ()
(let ((state (syntax-ppss)))
;; Move to the start of the literal, in case it's multiline.
;; TODO: determine the literal type more reliably here?
(when (eq t (nth 3 state))
(goto-char (nth 8 state))
(beginning-of-line))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment