Skip to content

Commit 5208dfa

Browse files
jneenjneen
andauthored
shell: use Str::Interpol instead of Str::Escape (#2310)
Co-authored-by: jneen <jneen@jneen.net>
1 parent 11dce33 commit 5208dfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rouge/lexers/shell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def self.detect?(text)
204204
rule %r/\$[(]/, Str::Interpol, :paren_interp
205205

206206
# see https://www.gnu.org/software/bash/manual/bash.html#Command-Substitution-1
207-
rule %r/\$[{][\s|]/, Str::Escape, :curly_interp
207+
rule %r/\$[{][\s|]/, Str::Interpol, :curly_interp
208208

209209
rule %r/\${#?/, Keyword, :curly
210210
rule %r/`/, Str::Backtick, :backticks

0 commit comments

Comments
 (0)