Skip to content

Commit c1fb489

Browse files
author
Elijah Carrel
committed
support SQL comments
1 parent 61d3e36 commit c1fb489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/andrewbrookins/idea/wrap/CodeWrapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.util.regex.Pattern
1010
* This code was inspired by Nir Soffer's codewrap library: * https://pypi.python.org/pypi/codewrap/
1111
*/
1212
class CodeWrapper(
13-
private val commentRegex: Regex = "(/\\*+|\\*/|\\*|\\.|#+|//+|;+)?".toRegex(),
13+
private val commentRegex: Regex = "(/\\*+|\\*/|\\*|\\.|#+|//+|;+|--)?".toRegex(),
1414

1515
private val newlineRegex: Regex = "(\\r?\\n)".toRegex(),
1616

0 commit comments

Comments
 (0)