Created
August 8, 2012 19:28
-
-
Save sbryant/3297891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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