diff --git a/README.md b/README.md index 5df06421..092cf99e 100644 --- a/README.md +++ b/README.md @@ -967,7 +967,8 @@ Default: `[see next line]` \ 'cpp,objcpp' : ['->', '.', '::'], \ 'perl' : ['->'], \ 'php' : ['->', '::'], - \ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir,go' : ['.'], + \ 'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'], + \ 'ruby' : ['.', '::'], \ 'lua' : ['.', ':'], \ 'erlang' : [':'], \ } diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index 9b9ad742..9f2c076b 100644 --- a/plugin/youcompleteme.vim +++ b/plugin/youcompleteme.vim @@ -144,7 +144,8 @@ let g:ycm_semantic_triggers = \ 'cpp,objcpp' : ['->', '.', '::'], \ 'perl' : ['->'], \ 'php' : ['->', '::'], - \ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir,go' : ['.'], + \ 'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'], + \ 'ruby' : ['.', '::'], \ 'lua' : ['.', ':'], \ 'erlang' : [':'], \ } )