summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby/string_state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/ruby/string_state.rb')
-rw-r--r--lib/coderay/scanners/ruby/string_state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby/string_state.rb b/lib/coderay/scanners/ruby/string_state.rb
index 93e7208..95f1e83 100644
--- a/lib/coderay/scanners/ruby/string_state.rb
+++ b/lib/coderay/scanners/ruby/string_state.rb
@@ -41,7 +41,7 @@ module Scanners
if delim == "'"
/ (?> (?: [^\\']+ | \\. )* ) ' : /mx
else
- / (?> (?: [^\\"\#]+ | \\. | \#\$[\\"] | \#(?!\{) )* ) " : /mx
+ / (?> (?: [^\\"\#]+ | \\. | \#\$[\\"] | \#\{[^\{\}]+\} | \#(?!\{) )* ) " : /mx
end
end