1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:

show trailing whitespace.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-01-07 12:57:34 +00:00
parent a262f71f37
commit 29ed2f308c
3 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,7 @@
Fri Jan 7 21:54:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
Fri Jan 7 21:57:22 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:
show trailing whitespace.
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
regexp after open bracket. [ruby-core:34183]

View file

@ -297,6 +297,7 @@ Also ignores spaces after parenthesis when 'space."
(defun ruby-mode-variables ()
(set-syntax-table ruby-mode-syntax-table)
(setq show-trailing-whitespace t)
(setq local-abbrev-table ruby-mode-abbrev-table)
(make-local-variable 'indent-line-function)
(setq indent-line-function 'ruby-indent-line)

View file

@ -54,6 +54,7 @@
(c-basic-offset . 4)
(tab-width . 8)
(indent-tabs-mode . t)
(setq show-trailing-whitespace t)
(c-offsets-alist
(case-label . *)
(label . (ruby-style-label-indent *))