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:
parent
a262f71f37
commit
29ed2f308c
3 changed files with 6 additions and 1 deletions
|
@ -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
|
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
|
||||||
regexp after open bracket. [ruby-core:34183]
|
regexp after open bracket. [ruby-core:34183]
|
||||||
|
|
|
@ -297,6 +297,7 @@ Also ignores spaces after parenthesis when 'space."
|
||||||
|
|
||||||
(defun ruby-mode-variables ()
|
(defun ruby-mode-variables ()
|
||||||
(set-syntax-table ruby-mode-syntax-table)
|
(set-syntax-table ruby-mode-syntax-table)
|
||||||
|
(setq show-trailing-whitespace t)
|
||||||
(setq local-abbrev-table ruby-mode-abbrev-table)
|
(setq local-abbrev-table ruby-mode-abbrev-table)
|
||||||
(make-local-variable 'indent-line-function)
|
(make-local-variable 'indent-line-function)
|
||||||
(setq indent-line-function 'ruby-indent-line)
|
(setq indent-line-function 'ruby-indent-line)
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
(c-basic-offset . 4)
|
(c-basic-offset . 4)
|
||||||
(tab-width . 8)
|
(tab-width . 8)
|
||||||
(indent-tabs-mode . t)
|
(indent-tabs-mode . t)
|
||||||
|
(setq show-trailing-whitespace t)
|
||||||
(c-offsets-alist
|
(c-offsets-alist
|
||||||
(case-label . *)
|
(case-label . *)
|
||||||
(label . (ruby-style-label-indent *))
|
(label . (ruby-style-label-indent *))
|
||||||
|
|
Loading…
Reference in a new issue