sunlight icon indicating copy to clipboard operation
sunlight copied to clipboard

PowerShell language updates

Open NoahStahl opened this issue 10 years ago • 0 comments

Hi there, very impressive work on the project. While implementing this and testing against PowerShell, I found a couple discrepancies that I wanted to report back. Namely, I found that the language definition was incorrect for string escapes (use backtick instead of backslash), and didn't recognize block comments (<# comments #>). I was able to resolve with the following change, though I'm not 100% sure of the escapes portion:

scopes: { string: [ ["\"", "\"", ["""]], ["'", "'", ["\'"]] ], comment: [ ["#", "\n", null, true], ["<#", "#>", null, false] ] }

NoahStahl avatar Feb 26 '15 12:02 NoahStahl