Permalink
Browse files

Add symbols to string-like patterns

  • Loading branch information...
1 parent 6c8f3d8 commit 9d16028720743e61a8078553d7d60b6d619d2ceb @AndrewRadev AndrewRadev committed Mar 10, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 indent/ruby.vim
View
@@ -32,14 +32,14 @@ set cpo&vim
" 1. Variables {{{1
" ============
-" Regex of syntax group names that are or delimit string or are comments.
+" Regex of syntax group names that are or delimit strings/symbols or are comments.
let s:syng_strcom = '\<ruby\%(Regexp\|RegexpDelimiter\|RegexpEscape' .
- \ '\|String\|StringDelimiter\|StringEscape\|ASCIICode' .
+ \ '\|Symbol\|String\|StringDelimiter\|StringEscape\|ASCIICode' .
\ '\|Interpolation\|NoInterpolation\|Comment\|Documentation\)\>'
-" Regex of syntax group names that are strings.
+" Regex of syntax group names that are strings or symbols.
let s:syng_string =
- \ '\<ruby\%(String\|Interpolation\|NoInterpolation\|StringEscape\)\>'
+ \ '\<ruby\%(String\|Symbol\|Interpolation\|NoInterpolation\|StringEscape\)\>'
" Regex of syntax group names that are strings or documentation.
let s:syng_stringdoc =

0 comments on commit 9d16028

Please sign in to comment.