diff dwtx/jface/text/rules/PatternRule.d @ 133:7d818bd32d63

Fix ctors to this with gvim regexp
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:29:22 +0200
parents c4fb132a086c
children eb21d3dfc767
line wrap: on
line diff
--- a/dwtx/jface/text/rules/PatternRule.d	Sun Aug 24 01:13:39 2008 +0200
+++ b/dwtx/jface/text/rules/PatternRule.d	Sun Aug 24 01:29:22 2008 +0200
@@ -124,7 +124,7 @@
      * @param escapeCharacter any character following this one will be ignored
      * @param breaksOnEOL indicates whether the end of the line also terminates the pattern
      */
-    public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL) {
+    public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL) {
         Assert.isTrue(startSequence !is null && startSequence.length() > 0);
         Assert.isTrue(endSequence !is null || breaksOnEOL);
         Assert.isNotNull(token);
@@ -150,7 +150,7 @@
      * @param breaksOnEOF indicates whether the end of the file also terminates the pattern
      * @since 2.1
      */
-    public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF) {
+    public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF) {
         this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL);
         fBreaksOnEOF= breaksOnEOF;
     }
@@ -174,7 +174,7 @@
      *        terminate the pattern, even if <code>breakOnEOL</code> is set
      * @since 3.0
      */
-    public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF, bool escapeContinuesLine) {
+    public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF, bool escapeContinuesLine) {
         this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL, breaksOnEOF);
         fEscapeContinuesLine= escapeContinuesLine;
     }