From f7f33d9f279fa87464e91768092036467fa4c0a7 Mon Sep 17 00:00:00 2001 From: jneen Date: Mon, 22 Jun 2026 11:38:32 -0400 Subject: [PATCH] shell: use Str::Interpol instead of Str::Escape --- lib/rouge/lexers/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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