We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33f3f5 commit 036fb32Copy full SHA for 036fb32
lib/coderay/scanners/ruby/string_state.rb
@@ -41,7 +41,7 @@ def self.simple_key_pattern delim
41
if delim == "'"
42
/ (?> (?: [^\\']+ | \\. )* ) ' : /mx
43
else
44
- / (?> (?: [^\\"\#]+ | \\. | \#\$[\\"] | \#(?!\{) )* ) " : /mx
+ / (?> (?: [^\\"\#]+ | \\. | \#\$[\\"] | \#\{[^\{\}]+\} | \#(?!\{) )* ) " : /mx
45
end
46
47
0 commit comments