| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ac9ef4e commit 4d2d7fa
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,19 @@ | |||
| 1 | + module Foo | ||
| 2 | + class Bar | ||
| 3 | + f do | ||
| 4 | + g { def h; end } | ||
| 5 | + end | ||
| 6 | + | ||
| 7 | + if foo | ||
| 8 | + bar ; end | ||
| 9 | + | ||
| 10 | + if bar ; end | ||
| 11 | + | ||
| 12 | + foo do | ||
| 13 | + foo = 3 . class | ||
| 14 | + foo = lambda { class One; end } | ||
| 15 | + foo = lambda { |args| class One; end } | ||
| 16 | + foo = bar; class One; end | ||
| 17 | + end | ||
| 18 | + end | ||
| 19 | + end | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ let s:ruby_deindent_keywords = | |||
| 63 | 63 | " Regex that defines the start-match for the 'end' keyword. | |
| 64 | 64 | "let s:end_start_regex = '\%(^\|[^.]\)\<\%(module\|class\|def\|if\|for\|while\|until\|case\|unless\|begin\|do\)\>' | |
| 65 | 65 | " TODO: the do here should be restricted somewhat (only at end of line)? | |
| 66 | - let s:end_start_regex = '^\s*\zs\<\%(module\|class\|def\|if\|for' . | ||
| 66 | + let s:end_start_regex = '\%(^\|[{|;]\)\s*\zs\<\%(module\|class\|def\|if\|for' . | ||
| 67 | 67 | \ '\|while\|until\|case\|unless\|begin\):\@!\>' . | |
| 68 | 68 | \ '\|\%([=,*/%+-]\|<<\|>>\|:\s\)\s*\zs' . | |
| 69 | 69 | \ '\<\%(if\|for\|while\|until\|case\|unless\|begin\):\@!\>' . | |
| Back | FazBrowse Home | New Git URL |
0 commit comments