| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,8 @@ | |||
| 1 | 1 | 2005-08-15 Doug Kearns <djkea2@gus.gscit.monash.edu.au> | |
| 2 | 2 | ||
| 3 | + * syntax/ruby.vim: remove character offset 'hs' from the | ||
| 4 | + rubyOptDoBlock start match | ||
| 5 | + | ||
| 3 | 6 | * syntax/ruby.vim: exclude leading whitespace from the rubyOptDoBlock | |
| 4 | 7 | syntax group start patterns with \zs | |
| 5 | 8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,7 +157,7 @@ if !exists("ruby_no_expensive") | |||
| 157 | 157 | syn region rubyNoDoBlock matchgroup=rubyControl start="\<\%(case\|begin\)\>" start="\%(^\|\.\.\.\=\|[;=([<>~+-\*/]\)\s*\zs\%(if\|unless\)\>" end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo fold | |
| 158 | 158 | ||
| 159 | 159 | " statement with optional *do* | |
| 160 | - syn region rubyOptDoBlock matchgroup=rubyControl start="\<for\>" start="^\s*\zs\%(while\|until\)\>" start=";\s*\zs\%(while\|until\)\>"hs=s+1 end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo fold | ||
| 160 | + syn region rubyOptDoBlock matchgroup=rubyControl start="\<for\>" start="^\s*\zs\%(while\|until\)\>" start=";\s*\zs\%(while\|until\)\>" end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo fold | ||
| 161 | 161 | ||
| 162 | 162 | " optional *do* | |
| 163 | 163 | syn match rubyControl "\%(\<\%(for\|until\|while\)\s.*\s\)\@<=\%(do\|:\)\>" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments