diff --git a/lib/rouge/lexers/shell.rb b/lib/rouge/lexers/shell.rb index 87293f559a..7ee471aaaf 100644 --- a/lib/rouge/lexers/shell.rb +++ b/lib/rouge/lexers/shell.rb @@ -204,7 +204,7 @@ def self.detect?(text) rule %r/\$[(]/, Str::Interpol, :paren_interp # see https://www.gnu.org/software/bash/manual/bash.html#Command-Substitution-1 - rule %r/\$[{][\s|]/, Str::Escape, :curly_interp + rule %r/\$[{][\s|]/, Str::Interpol, :curly_interp rule %r/\${#?/, Keyword, :curly rule %r/`/, Str::Backtick, :backticks