From 0812cd815de3f48ff82c0e57b491e6455a5321a2 Mon Sep 17 00:00:00 2001 From: Wladston Viana Ferreira Filho Date: Wed, 22 Jul 2015 01:05:09 -0300 Subject: [PATCH] Updating default semantic hooks. The documentation was updated to be in sync with ycmd @bfcfa21, regarding default semantic hooks defined in ycmd's completer_utils.py. --- README.md | 6 +++--- doc/youcompleteme.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 08fafd93..7283cb74 100644 --- a/README.md +++ b/README.md @@ -1523,13 +1523,13 @@ Default: `[see next line]` let g:ycm_semantic_triggers = { \ 'c' : ['->', '.'], - \ 'objc' : ['->', '.'], + \ 'objc' : ['->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s', + \ 're!\[.*\]\s'], \ 'ocaml' : ['.', '#'], \ 'cpp,objcpp' : ['->', '.', '::'], \ 'perl' : ['->'], \ 'php' : ['->', '::'], - \ 'cs,java,javascript,d,python,perl6,scala,vb,elixir,go' : ['.'], - \ 'vim' : ['re![_a-zA-Z]+[_\w]*\.'], + \ 'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go' : ['.'], \ 'ruby' : ['.', '::'], \ 'lua' : ['.', ':'], \ 'erlang' : [':'], diff --git a/doc/youcompleteme.txt b/doc/youcompleteme.txt index d076a297..4d439bae 100644 --- a/doc/youcompleteme.txt +++ b/doc/youcompleteme.txt @@ -1746,13 +1746,13 @@ Default: '[see next line]' > let g:ycm_semantic_triggers = { \ 'c' : ['->', '.'], - \ 'objc' : ['->', '.'], + \ 'objc' : ['->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s', + \ 're!\[.*\]\s'], \ 'ocaml' : ['.', '#'], \ 'cpp,objcpp' : ['->', '.', '::'], \ 'perl' : ['->'], \ 'php' : ['->', '::'], - \ 'cs,java,javascript,d,python,perl6,scala,vb,elixir,go' : ['.'], - \ 'vim' : ['re![_a-zA-Z]+[_\w]*\.'], + \ 'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go' : ['.'], \ 'ruby' : ['.', '::'], \ 'lua' : ['.', ':'], \ 'erlang' : [':'],