FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Highlight the lambda operator if ruby_operators is set · vim-ruby/vim-ruby@ea882ea · GitHub

Commit ea882ea

Browse files
committed
Highlight the lambda operator if ruby_operators is set
1 parent 64e0cb6 commit ea882ea

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎syntax/ruby.vim‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ endif
3232

3333
" Operators
3434
if exists("ruby_operators")
35-
syn match rubyOperator "\%([~!^&|*/%+-]\|\%(class\s*\)\@<!<<\|<=>\|<=\|\%(<\|\<class\s\+\u\w*\s*\)\@<!<[^<]\@=\|===\|==\|=\~\|>>\|>=\|=\@<!>\|\*\*\|\.\.\.\|\.\.\|::\)"
36-
syn match rubyPseudoOperator "\%(-=\|/=\|\*\*=\|\*=\|&&=\|&=\|&&\|||=\||=\|||\|%=\|+=\|!\~\|!=\)"
35+
syn match rubyOperator "[~!^&|*/%+-]\|\%(class\s*\)\@<!<<\|<=>\|<=\|\%(<\|\<class\s\+\u\w*\s*\)\@<!<[^<]\@=\|===\|==\|=\~\|>>\|>=\|=\@<!>\|\*\*\|\.\.\.\|\.\.\|::"
36+
syn match rubyOperator "->\|-=\|/=\|\*\*=\|\*=\|&&=\|&=\|&&\|||=\||=\|||\|%=\|+=\|!\~\|!="
3737
syn region rubyBracketOperator matchgroup=rubyOperator start="\%(\w[?!]\=\|[]})]\)\@<=\[\s*" end="\s*]" contains=ALLBUT,@rubyNotTop
3838
endif
3939

@@ -328,7 +328,6 @@ hi def link rubyPredefinedVariable rubyPredefinedIdentifier
328328
hi def link rubySymbol Constant
329329
hi def link rubyKeyword Keyword
330330
hi def link rubyOperator Operator
331-
hi def link rubyPseudoOperator rubyOperator
332331
hi def link rubyBeginEnd Statement
333332
hi def link rubyAccess Statement
334333
hi def link rubyAttribute Statement

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL