Commit e6aca219 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* progmodes/ruby-mode.el (ruby-match-expression-expansion): Shorten

  previous change.
parent 616c6c36
......@@ -1550,8 +1550,7 @@ See `font-lock-syntax-table'.")
(defun ruby-match-expression-expansion (limit)
(when (re-search-forward "[^\\]\\(\\\\\\\\\\)*\\(#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)\\)" limit 'move)
(or (ruby-in-ppss-context-p 'string)
(and (< (point) limit)
(ruby-match-expression-expansion limit)))))
(ruby-match-expression-expansion limit))))
;;;###autoload
(define-derived-mode ruby-mode prog-mode "Ruby"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment