jschaf / powershell.el

An Emacs mode for editing and running Microsoft PowerShell code.
94 stars 30 forks source link

Square brackets should be highlighted the same even if they have space inside #27

Open audreytoskin opened 5 years ago

audreytoskin commented 5 years ago

I noticed powershell-mode will highlight the text inside square brackets like

[Security.Principal.WindowsIdentity]

but not where there's spaces inside the brackets:

[ Security.Principal.WindowsIdentity ]

I'm fairly new to Emacs and even newer to PowerShell, so I could be wrong about something here, but it seems like both versions are valid syntax (at least in PowerShell 6.2 for Linux). So it seems to me that both should be highlighted the same. Like I notice that both of my above examples are highlighted the same in GitHub, for whatever that's worth.