diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-01-29 08:18:03 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-01-29 08:18:03 +0000 |
commit | 9ba3d42046af4721998adfe3c6bd6bc9220234f4 (patch) | |
tree | 5265a1ccc13db7b0201b6f9245f6f07846525ce3 /sample/ruby-mode.el | |
parent | a72e3e187d8e49040532a4563ae832f869657501 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@57 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/ruby-mode.el')
-rw-r--r-- | sample/ruby-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sample/ruby-mode.el b/sample/ruby-mode.el index fdf016c52b..a09205e859 100644 --- a/sample/ruby-mode.el +++ b/sample/ruby-mode.el @@ -8,7 +8,10 @@ (defconst ruby-mode-revision "$Revision$") -(defconst ruby-mode-version "$Id$") +(defconst ruby-mode-version + (progn + (string-match "[0-9.]+" ruby-mode-revision) + (substring ruby-mode-revision (match-beginning 0) (match-end 0)))) (defconst ruby-block-beg-re "class\\|module\\|def\\|if\\|unless\\|case\\|while\\|until\\|for\\|begin\\|do" |