diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-07 15:53:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-07 15:53:15 +0000 |
commit | 360e0b93fdd23e385e26d1fe60822c8779888b87 (patch) | |
tree | 1091f4f9265bf8e07b1d990d66305be958289e30 /misc | |
parent | b50d85ebc6962d8b86c22ec6a095ce4aeb7dd8e1 (diff) |
* misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial): keyword
followed by colon is label.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 0e1e49f22b..3b0103c3a0 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -467,7 +467,7 @@ The variable ruby-indent-level controls the amount of indentation. ruby-block-mid-keywords) 'words)) (goto-char (match-end 0)) - (not (looking-at "\\s_"))) + (not (looking-at "\\s_\\|[!?:]"))) ((eq option 'expr-qstr) (looking-at "[a-zA-Z][a-zA-z0-9_]* +%[^ \t]")) ((eq option 'expr-re) @@ -639,6 +639,7 @@ The variable ruby-indent-level controls the amount of indentation. (not (eq ?_ w)) (not (eq ?! w)) (not (eq ?? w)) + (not (eq ?: w)) (skip-chars-forward " \t") (goto-char (match-beginning 0)) (or (not (looking-at ruby-modifier-re)) |