Skip to content

Commit

Permalink
Don’t match inside Regexes
Browse files Browse the repository at this point in the history
This patch adds regex syntax groups to the list of groups considered to
be strings.  This fixes issue 2.
  • Loading branch information
Nikolai Weibull committed Oct 28, 2010
1 parent 9396969 commit 4935afd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indent/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ set cpo&vim
" ============

" Regex of syntax group names that are or delimit string or are comments.
let s:syng_strcom = '\<ruby\%(String\|StringEscape\|ASCIICode' .
let s:syng_strcom = '\<ruby\%(Regexp\|RegexpDelimiter' .
\ '\|String\|StringEscape\|ASCIICode' .
\ '\|Interpolation\|NoInterpolation\|Comment\|Documentation\)\>'

" Regex of syntax group names that are strings.
Expand Down

0 comments on commit 4935afd

Please sign in to comment.