FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

remove character offset 'hs' from the rubyOptDoBlock start match · optionalg/vim-ruby@7fa647d · GitHub

Commit 7fa647d

Browse files
committed
remove character offset 'hs' from the rubyOptDoBlock start match
1 parent 81c653c commit 7fa647d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎ChangeLog‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2005-08-15 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
22

3+
* syntax/ruby.vim: remove character offset 'hs' from the
4+
rubyOptDoBlock start match
5+
36
* syntax/ruby.vim: exclude leading whitespace from the rubyOptDoBlock
47
syntax group start patterns with \zs
58

‎syntax/ruby.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ if !exists("ruby_no_expensive")
157157
syn region rubyNoDoBlock matchgroup=rubyControl start="\<\%(case\|begin\)\>" start="\%(^\|\.\.\.\=\|[;=([<>~+-\*/]\)\s*\zs\%(if\|unless\)\>" end="\<end\>" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo fold
158158

159159
" 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
161161

162162
" optional *do*
163163
syn match rubyControl "\%(\<\%(for\|until\|while\)\s.*\s\)\@<=\%(do\|:\)\>"

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL