Fix hideshow mode tokens for ruby-mode

This commit is contained in:
2014-08-29 19:10:18 +01:00
parent a8f88b09ac
commit 28c64162fe

View File

@@ -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))