From 28c64162fe28d069842b7eaf80bbaee87f438e53 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 29 Aug 2014 19:10:18 +0100 Subject: [PATCH] Fix hideshow mode tokens for ruby-mode --- mode-customizations/ruby-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode-customizations/ruby-mode.el b/mode-customizations/ruby-mode.el index a33f5b8..870b9c9 100644 --- a/mode-customizations/ruby-mode.el +++ b/mode-customizations/ruby-mode.el @@ -58,8 +58,8 @@ ;; Set up hs-mode (HideShow) for Ruby (add-to-list 'hs-special-modes-alist `(ruby-mode - ,(rx (or "def" "class" "module" "{" "[")) ; Block start - ,(rx (or "}" "]" "end")) ; Block end + ,(rx (or "def" "class" "module" "do")) ; Block start + ,(rx (or "end")) ; Block end ,(rx (or "#" "=begin")) ; Comment start ruby-forward-sexp nil))