Skip to content

Commit

Permalink
Fix invalid parenthesis state in PowerShell lexer (#1222)
Browse files Browse the repository at this point in the history
The update to the Shell lexer made as a result of #1216 should have
included an update to the PowerShell lexer. This is because the Shell
lexer renamed the `:paren` state. Since the PowerShell lexer relies on
this state, it needed to be updated to refer to the new state. This
commit does that.
  • Loading branch information
pyrmont committed Jun 25, 2019
1 parent 3f7a44a commit c754c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/powershell.rb
Expand Up @@ -633,7 +633,7 @@ class Powershell < Shell
rule %r/`$/, Str::Escape # line continuation
rule %r/`./, Str::Escape
rule %r/\$\(\(/, Keyword, :math
rule %r/\$\(/, Keyword, :paren
rule %r/\$\(/, Str::Interpol, :paren_interp
rule %r/\${#?/, Keyword, :curly
rule %r/\$#?(\w+|.)/, Name::Variable
end
Expand Down

0 comments on commit c754c4c

Please sign in to comment.