Mercurial > hg > RemoteEditor > vim7
comparison runtime/indent/ruby.vim @ 39:c16898406ff2
synchorinize version 7.3.081
author | one@zeus.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 17 Dec 2010 17:43:06 +0900 |
parents | e170173ecb68 |
children |
comparison
equal
deleted
inserted
replaced
38:e06a1cd7230d | 39:c16898406ff2 |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: Ruby | 2 " Language: Ruby |
3 " Maintainer: Nikolai Weibull <now at bitwi.se> | 3 " Maintainer: Nikolai Weibull <now at bitwi.se> |
4 " Info: $Id: ruby.vim,v 1.2 2008/08/29 06:41:29 axmo Exp $ | 4 " Last Change: 2009 Dec 17 |
5 " URL: http://vim-ruby.rubyforge.org | 5 " URL: http://vim-ruby.rubyforge.org |
6 " Anon CVS: See above site | 6 " Anon CVS: See above site |
7 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | 7 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> |
8 | 8 |
9 " 0. Initialization {{{1 | 9 " 0. Initialization {{{1 |
176 endwhile | 176 endwhile |
177 return (open_0 > 0) . (open_2 > 0) . (open_4 > 0) | 177 return (open_0 > 0) . (open_2 > 0) . (open_4 > 0) |
178 endfunction | 178 endfunction |
179 | 179 |
180 function s:Match(lnum, regex) | 180 function s:Match(lnum, regex) |
181 let col = match(getline(a:lnum), a:regex) + 1 | 181 let col = match(getline(a:lnum), '\C'.a:regex) + 1 |
182 return col > 0 && !s:IsInStringOrComment(a:lnum, col) ? col : 0 | 182 return col > 0 && !s:IsInStringOrComment(a:lnum, col) ? col : 0 |
183 endfunction | 183 endfunction |
184 | 184 |
185 function s:MatchLast(lnum, regex) | 185 function s:MatchLast(lnum, regex) |
186 let line = getline(a:lnum) | 186 let line = getline(a:lnum) |