Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e6aca219
Commit
e6aca219
authored
Sep 08, 2012
by
Dmitry Gutov
Browse files
* progmodes/ruby-mode.el (ruby-match-expression-expansion): Shorten
previous change.
parent
616c6c36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+1
-2
No files found.
lisp/progmodes/ruby-mode.el
View file @
e6aca219
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment