[toggleComments.js] supporting Lua and Powershell comments
Closed this issue · 2 comments
d0vgan commented
To add Lua and Powershell support, the following modification is suggested:
Before (original code, line 108):
au3: [ ["#comments-start", "#cs"], ["#comments-end", "#ce"], [";"] ]
After (updated code):
au3: [ ["#comments-start", "#cs"], ["#comments-end", "#ce"], [";"] ],
lua: [ ["--[["], ["]]"], ["--"] ],
ps1: [ ["<#"], ["#>"], ["#"] ]
d0vgan commented
As a bonus, we may also add awk support:
Before:
ahk: [ null, null, [";"] ],
py: [ null, null, ["#"] ],
After:
ahk: [ null, null, [";"] ],
awk: [ null, null, ["#"] ],
py: [ null, null, ["#"] ],
Infocatcher commented
Added, thanks!