Permalink
Browse files

rename the rubyStringDelimit syntax group rubyStringDelimiter

  • Loading branch information...
1 parent ca9291c commit 3fe4631bf597d0296a71b0554c72a776f5bbd73c @dkearns dkearns committed Sep 9, 2003
Showing with 107 additions and 102 deletions.
  1. +5 −0 ChangeLog
  2. +2 −2 indent/ruby.vim
  3. +100 −100 syntax/ruby.vim
View
@@ -1,5 +1,10 @@
2003-09-09 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+ * indent/ruby.vim, syntax/ruby.vim: rename the rubyStringDelimit
+ syntax group rubyStringDelimiter.
+
+2003-09-09 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+
* syntax/ruby.vim: highlight one line module, class, and method
definitions, using the ';' terminator, correctly; split
rubyClassOrModule into two new syntax groups - rubyClass and
View
@@ -31,7 +31,7 @@ endif
" Check if the character at lnum:col is inside a string or comment.
function s:IsInStringOrComment(lnum, col)
return synIDattr(synID(a:lnum, a:col, 0), 'name') =~
- \'\<ruby\%(String\|StringDelimit\|Number\|ExprSubst\|Comment'.
+ \'\<ruby\%(String\|StringDelimiter\|Number\|ExprSubst\|Comment'.
\'\|Documentation\)\>'
endfunction
@@ -81,7 +81,7 @@ let s:continuation_regexp = '[\*+/.,=(-]\s*\(#.*\)\=$'
let s:block_regexp = '\<do\>\s*\(|\(\*\=\h\w*\(,\s*\)\=\)\+|\s*\)\=\(#.*\)\=$'
" Expression used to check whether we should skip a match with searchpair().
-let s:skip_expr = 'synIDattr(synID(line("."), col("."), 0), "name") =~ "\\<ruby\\%(String\\|StringDelimit\\|Number\\|ExprSubst\\|Comment\\|Documentation\\)\\>"'
+let s:skip_expr = 'synIDattr(synID(line("."), col("."), 0), "name") =~ "\\<ruby\\%(String\\|StringDelimiter\\|Number\\|ExprSubst\\|Comment\\|Documentation\\)\\>"'
let s:end_skip_expr = s:skip_expr.' || (expand("<cword>") =~ "\\<if\\>\\|\\<unless\\>\\|\\<while\\>\\|\\<until\\>" && getline(".") !~ "^\\s*\\<".expand("<cword>")."\\>" && getline(".") !~ expand("<cword>")."\\>.*\\<end\\>")'
" Find the previous non-blank line which isn't a comment-line or in a comment
Oops, something went wrong.

0 comments on commit 3fe4631

Please sign in to comment.