From ee3ede504054d10076d64f1d3e4b42ed039942e5 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 9 Jun 2013 11:21:41 -0700 Subject: [PATCH] Adding `::` as a semantic trigger for Ruby Fixes #367. --- README.md | 3 ++- plugin/youcompleteme.vim | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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' : [':'], \ } )