lib/rouge/lexers/powershell.rb in rouge-3.20.0 vs lib/rouge/lexers/powershell.rb in rouge-3.21.0

- old
+ new

@@ -163,10 +163,11 @@ end mixin :root end state :parameters do + rule %r/`./m, Str::Escape rule %r/\s*?\n/, Text::Whitespace, :pop! rule %r/[;(){}\]]/, Punctuation, :pop! rule %r/[|=]/, Operator, :pop! rule %r/[\/\\~\w][-.:\/\\~\w]*/, Name::Other rule %r/\w[-\w]+/, Name::Other @@ -215,9 +216,10 @@ rule %r/(\.)?([-\w]+)(?:(\()|(\n))?/ do |m| groups Operator, Name::Function, Punctuation, Text::Whitespace push :parameters unless m[3].nil? end + rule %r/\?/, Name::Function, :parameters rule %r/[-+*\/%=!.&|]/, Operator rule %r/@\{/, Punctuation, :hasht rule %r/@\(/, Punctuation, :array rule %r/\[/, Punctuation, :bracket rule %r/[{}(),:;]/, Punctuation