| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,8 @@ | |||
| 1 | + 2005-09-25 Doug Kearns <djkea2@gus.gscit.monash.edu.au> | ||
| 2 | + | ||
| 3 | + * syntax/ruby.vim: allow comments to be highlighted directly after | ||
| 4 | + module/class/method definitions without intervening whitespace | ||
| 5 | + | ||
| 1 | 6 | 2005-09-24 Doug Kearns <djkea2@gus.gscit.monash.edu.au> | |
| 2 | 7 | ||
| 3 | 8 | * syntax/ruby.vim: allow regexp's as hash values and after a ';' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -144,10 +144,10 @@ end | |||
| 144 | 144 | ||
| 145 | 145 | " Expensive Mode - colorize *end* according to opening statement | |
| 146 | 146 | if !exists("ruby_no_expensive") | |
| 147 | - syn region rubyFunction matchgroup=rubyDefine start="\<def\s\+" end="\ze\%(\s\|(\|;\|$\)" oneline | ||
| 148 | - syn region rubyClass matchgroup=rubyDefine start="\<class\s\+" end="\ze\%(\s\|<\|;\|$\)" oneline | ||
| 147 | + syn region rubyFunction matchgroup=rubyDefine start="\<def\s\+" end="\%(\s*\%(\s\|(\|;\|$\|#\)\)\@=" oneline | ||
| 148 | + syn region rubyClass matchgroup=rubyDefine start="\<class\s\+" end="\%(\s*\%(\s\|<\|;\|$\|#\)\)\@=" oneline | ||
| 149 | 149 | syn match rubyDefine "\<class\ze<<" | |
| 150 | - syn region rubyModule matchgroup=rubyDefine start="\<module\s\+" end="\ze\%(\s\|;\|$\)" oneline | ||
| 150 | + syn region rubyModule matchgroup=rubyDefine start="\<module\s\+" end="\%(\s*\%(\s\|;\|$\|#\)\)\@=" oneline | ||
| 151 | 151 | ||
| 152 | 152 | syn region rubyBlock start="\<def\>" matchgroup=rubyDefine end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo nextgroup=rubyFunction fold | |
| 153 | 153 | syn region rubyBlock start="\<class\>" matchgroup=rubyDefine end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo nextgroup=rubyClass fold | |
| Back | FazBrowse Home | New Git URL |
0 commit comments