-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Issue by TomMalbran
Wednesday Mar 13, 2013 at 08:25 GMT
Originally opened as adobe/brackets#3121
There are a few languages like PHP that support 2 types of line comment ("//" and "#").
To address this, I made lineComment be an array for every language and saved also as an array in Language. It will also return an array when asking for a linePrefix.
lineCommentPrefix can work with multiple line prefixes and uncomment any line comment prefix defined in the array if it is found at the start of the line as before, but it will always comment using the first line comment prefix.
blockCommentPrefixSuffix can also work multiple line prefixes and uncomment any line comment prefix defined in the array. This also fixes a bug where in PHP if there was a comment using # and you would Toggle Block Comment inside that line comment it could uncomment any block comment found before that line.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/3121/commits