Skip to content
This repository was archived by the owner on Apr 27, 2018. It is now read-only.

Commit 8891473

Browse files
committed
update syntax documentation formatting for Vim 6.4 release
1 parent f9690f7 commit 8891473

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2005-10-07 Doug Kearns <[email protected]>
2+
3+
* syntax/doc/ruby.txt: update formatting for Vim 6.4 release
4+
15
2005-10-06 Doug Kearns <[email protected]>
26

37
* ftplugin/ruby.vim: prevent symbols from matching as matchit

syntax/doc/ruby.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,56 @@
1-
RUBY *ruby.vim* *ruby-syntax*
1+
RUBY *ruby.vim* *ruby-syntax*
22

33
There are a number of options to the Ruby syntax highlighting.
44

55
By default, the "end" keyword is colorized according to the opening statement
6-
of the block it closes. While useful, this feature can be expensive: if you
6+
of the block it closes. While useful, this feature can be expensive; if you
77
experience slow redrawing (or you are on a terminal with poor color support)
88
you may want to turn it off by defining the "ruby_no_expensive" variable: >
99
10-
:let ruby_no_expensive = 1
10+
:let ruby_no_expensive = 1
1111
1212
In this case the same color will be used for all control keywords.
1313

1414
If you do want this feature enabled, but notice highlighting errors while
1515
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
1616
the "ruby_minlines" variable to a value larger than 50: >
1717
18-
:let ruby_minlines = 100
18+
:let ruby_minlines = 100
1919
2020
Ideally, this value should be a number of lines large enough to embrace your
2121
largest class or module.
2222

2323
Highlighting of special identifiers can be disabled by defining
2424
"ruby_no_identifiers": >
2525
26-
:let ruby_no_identifiers = 1
26+
:let ruby_no_identifiers = 1
2727
2828
This will prevent highlighting of special identifiers like "ConstantName",
29-
"$global_var", "@@class_var", "@instance_var", "| iterator |", and ":symbol".
29+
"$global_var", "@@class_var", "@instance_var", "| block_param |", and
30+
":symbol".
3031

31-
Significant methods of Class, Object, Module and Kernel are highlighted by
32-
default. This can be disabled by defining "ruby_no_special_methods": >
32+
Significant methods of Kernel, Module and Object are highlighted by default.
33+
This can be disabled by defining "ruby_no_special_methods": >
3334
34-
:let ruby_no_special_methods = 1
35+
:let ruby_no_special_methods = 1
3536
36-
This will prevent highlighting of special methods such as "require",
37+
This will prevent highlighting of important methods such as "require", "attr",
3738
"private", "raise" and "proc".
3839

3940
Whitespace errors can be highlighted by defining "ruby_space_errors": >
4041
41-
:let ruby_space_errors = 1
42+
:let ruby_space_errors = 1
4243
4344
This will highlight trailing whitespace and tabs preceded by a space character
44-
as errors. This can be refined by defining "ruby_no_trail_space_error" and
45+
as errors. This can be refined by defining "ruby_no_trail_space_error" and
4546
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
4647
spaces respectively.
4748

4849
Folding can be enabled by defining "ruby_fold": >
4950
50-
:let ruby_fold = 1
51+
:let ruby_fold = 1
5152
5253
This will set the 'foldmethod' option to "syntax" and allow folding of
5354
classes, modules, methods, code blocks, heredocs and comments.
5455

55-
vim: ts=8 tw=78
56+
vim:tw=78:sw=4:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)