slackhq / vscode-hack

Hack language & HHVM debugger support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pranayagarwal.vscode-hack
MIT License
76 stars 39 forks source link

Improve highlighting of namespaces and collection literals #102

Closed Wilfred closed 4 years ago

Wilfred commented 4 years ago

Only Vector, Set and Map (plus their immutable versions) can be used as collection literals. Make the regular expression more precise. This helps users spot mistakes, and avoids bad highlighting of other code using curly braces.

Screenshot 2020-08-13 at 17 55 52

Anonymous namespaces were previously highlighted as collection literals. Ensure they are highlighted the same was as named namespaces.

Screenshot 2020-08-13 at 17 58 00