Skip to content

PowerShell: fix string and variable substitution ; add highlighting (Number, Control Flow, etc)

jonathan poelen requested to merge jpoelen/syntax-highlighting:ft_ps into master

Add:

  • Comment-Based Help Keyword and Parameter (.PARAMETER InputPath in block comment)
  • Number and Number Suffix (123Kb)
  • Control Flow
  • Attribute (text in [...])
  • Escape (` at end of line)

Modifiy:

  • Special Variable (never reached) become Scope Modifier (Env in $Env:EDITOR)

Fix:

  • New line in strings and variable substitution (${...})
  • Variable in double quoted string
  • Escape in string
  • Simple raw-string: (@'...'@)

Merge request reports