Skip to content

Commit 9f2d533

Browse files
committed
Document alternative to ruby_no_identifiers
1 parent 5eb3fb0 commit 9f2d533

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2007-02-23 Tim Pope <vim@tpope.info>
2+
3+
* doc/ft-ruby-syntax.txt: Recommend hi link rubyIdentifier NONE over
4+
ruby_no_identifiers.
5+
16
2007-02-23 Tim Pope <vim@tpope.info>
27

38
* syntax/ruby.vim: Fixed method highlighting when not at the end of

doc/ft-ruby-syntax.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ the "ruby_minlines" variable to a value larger than 50: >
2020
Ideally, this value should be a number of lines large enough to embrace your
2121
largest class or module.
2222

23-
Highlighting of special identifiers can be disabled by defining
24-
"ruby_no_identifiers": >
23+
Highlighting of special identifiers can be disabled by removing the
24+
rubyIdentifier highlighting: >
2525
26-
:let ruby_no_identifiers = 1
26+
:hi link rubyIdentifier NONE
2727
<
2828
This will prevent highlighting of special identifiers like "ConstantName",
2929
"$global_var", "@@class_var", "@instance_var", "| block_param |", and

syntax/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ syn match rubyClassDeclaration "[^[:space:];#(]\+" contained contains=rubyCo
156156
syn match rubyModuleDeclaration "[^[:space:];#(]\+" contained contains=rubyConstant
157157
syn match rubyFunction "\<[_[:lower:]][_[:alnum:]]*[?!=]\=\.\@!" contained containedin=rubyMethodDeclaration
158158
syn match rubyFunction "\%(\s\|^\)\@<=[_[:lower:]][_[:alnum:]]*[?!=]\=\%(\s\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2
159-
syn match rubyFunction "\%([[:space:].]\|^\)\@<=\%(\[\]=\=\|\*\*\|[+-]@\=\|[*/%|^~]\|<<\|>>\|[<>]=\=\|<=>\|===\|=\~\)\%([[:space:];#(]\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration
159+
syn match rubyFunction "\%([[:space:].]\|^\)\@<=\%(\[\]=\=\|\*\*\|[+-]@\=\|[*/%|^~]\|<<\|>>\|[<>]=\=\|<=>\|===\|=\~\|`\)\%([[:space:];#(]\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration
160160
" Expensive Mode - colorize *end* according to opening statement
161161
if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
162162
syn match rubyDefine "\<alias\>" nextgroup=rubyAliasDeclaration skipwhite skipnl

0 commit comments

Comments
 (0)