From faf6aa34bd1ad9fc7a3ba81e6a230301f19c044f Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 22 Jun 2017 14:52:46 +0900 Subject: add completion for "".p and "".puts in ruby --- template/ruby/pattern.stpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/ruby/pattern.stpl b/template/ruby/pattern.stpl index cc02af5..de2d925 100644 --- a/template/ruby/pattern.stpl +++ b/template/ruby/pattern.stpl @@ -28,4 +28,8 @@ {{_cursor_}} } +^\s*\zs\(\S.*\)\.p$ + p {{$1}}{{_cursor_}} +^\s*\zs\(\S.*\)\.puts$ + puts {{$1}}{{_cursor_}} -- cgit v1.2.3-54-g00ecf