зеркало из https://github.com/github/ruby.git
* 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:
Родитель
a262f71f37
Коммит
29ed2f308c
|
@ -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 *))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче