diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 22:32:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 22:32:38 +0000 |
commit | a8609b1ed14f9f383c73c6a3ec3a9a5df5bef23b (patch) | |
tree | 859f1cdf40c0a9d8a89189cbf81acc4f29758437 /misc/ruby-mode.el | |
parent | 5e389092a70d92641b6376bc9c62d58af7eaaa49 (diff) | |
download | ruby-a8609b1ed14f9f383c73c6a3ec3a9a5df5bef23b.tar.gz ruby-a8609b1ed14f9f383c73c6a3ec3a9a5df5bef23b.tar.xz ruby-a8609b1ed14f9f383c73c6a3ec3a9a5df5bef23b.zip |
* misc/ruby-mode.el: don't crash the whole mode if the Subversion
$ keyword isn't interpolated.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r-- | misc/ruby-mode.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index a2755f44e..e37cc4eab 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -9,9 +9,8 @@ "Ruby mode revision string.") (defconst ruby-mode-version - (progn - (string-match "[0-9.]+" ruby-mode-revision) - (substring ruby-mode-revision (match-beginning 0) (match-end 0))) + (and (string-match "[0-9.]+" ruby-mode-revision) + (substring ruby-mode-revision (match-beginning 0) (match-end 0))) "Ruby mode version number.") (defconst ruby-block-beg-re |