[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115685: * lisp/progmodes/ruby-mode.el (ruby-smie--i
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] trunk r115685: * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t |
Date: |
Sun, 22 Dec 2013 06:04:45 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115685
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Gutov <address@hidden>
branch nick: trunk
timestamp: Sun 2013-12-22 08:04:40 +0200
message:
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after `{'. We need it after block openers, and it doesn't seem
to hurt after hash openers.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/progmodes/ruby-mode.el
rubymode.el-20091113204419-o5vbwnq5f7feedwu-8804
test/indent/ruby.rb ruby.rb-20120424165921-h044139hbrd7snvw-1
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-12-22 04:57:00 +0000
+++ b/lisp/ChangeLog 2013-12-22 06:04:40 +0000
@@ -1,5 +1,11 @@
2013-12-22 Dmitry Gutov <address@hidden>
+ * progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
+ after `{'. We need it after block openers, and it doesn't seem
+ to hurt after hash openers.
+
+2013-12-22 Dmitry Gutov <address@hidden>
+
* progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el 2013-12-22 04:57:00 +0000
+++ b/lisp/progmodes/ruby-mode.el 2013-12-22 06:04:40 +0000
@@ -402,7 +402,7 @@
(skip-chars-backward " \t")
(not (or (bolp)
(and (memq (char-before)
- '(?\; ?- ?+ ?* ?/ ?: ?. ?, ?\[ ?\( ?\{ ?\\ ?& ?> ?< ?%
+ '(?\; ?- ?+ ?* ?/ ?: ?. ?, ?\[ ?\( ?\\ ?& ?> ?< ?%
?~ ?^))
;; Not the end of a regexp or a percent literal.
(not (memq (car (syntax-after (1- (point)))) '(7 15))))
=== modified file 'test/indent/ruby.rb'
--- a/test/indent/ruby.rb 2013-12-22 02:31:21 +0000
+++ b/test/indent/ruby.rb 2013-12-22 06:04:40 +0000
@@ -228,6 +228,7 @@
it("is too!") {
bar
+ .qux
}
and_this_one(has) { |block, parameters|
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115685: * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t,
Dmitry Gutov <=