branch: elpa/evil-matchit
commit 304f22100e9c24b733fa0ee75d21850d829dd4c3
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>
handle ruby statement after assign operator
---
evil-matchit-ruby.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/evil-matchit-ruby.el b/evil-matchit-ruby.el
index 5e79b81692..d8d391bba2 100644
--- a/evil-matchit-ruby.el
+++ b/evil-matchit-ruby.el
@@ -32,7 +32,8 @@
(require 'evil-matchit-sdk)
(defvar evilmi-ruby-extract-keyword-howtos
- '(("^[ \t]*\\([a-z]+\\)\\( .*\\| *\\)$" 1)
+ '(("^[ \t]*[^ \t=]+[ \t]*=[ \t]*\\([a-z]+\\)\\( .*\\| *\\)$" 1)
+ ("^[ \t]*\\([a-z]+\\)\\( .*\\| *\\)$" 1)
("^.* \\(do\\) |[a-z0-9A-Z_, ]+|$" 1)
("^.* \\(do\\) *$" 1)
("^.* \\(end\\)\\..*$" 1)