comparison 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
comparison
equal deleted inserted replaced
132:77bd3bb3d7b8 133:7d818bd32d63
122 * @param endSequence the pattern's end sequence, <code>null</code> is a legal value 122 * @param endSequence the pattern's end sequence, <code>null</code> is a legal value
123 * @param token the token which will be returned on success 123 * @param token the token which will be returned on success
124 * @param escapeCharacter any character following this one will be ignored 124 * @param escapeCharacter any character following this one will be ignored
125 * @param breaksOnEOL indicates whether the end of the line also terminates the pattern 125 * @param breaksOnEOL indicates whether the end of the line also terminates the pattern
126 */ 126 */
127 public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL) { 127 public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL) {
128 Assert.isTrue(startSequence !is null && startSequence.length() > 0); 128 Assert.isTrue(startSequence !is null && startSequence.length() > 0);
129 Assert.isTrue(endSequence !is null || breaksOnEOL); 129 Assert.isTrue(endSequence !is null || breaksOnEOL);
130 Assert.isNotNull(token); 130 Assert.isNotNull(token);
131 131
132 fStartSequence= startSequence.toCharArray(); 132 fStartSequence= startSequence.toCharArray();
148 * @param escapeCharacter any character following this one will be ignored 148 * @param escapeCharacter any character following this one will be ignored
149 * @param breaksOnEOL indicates whether the end of the line also terminates the pattern 149 * @param breaksOnEOL indicates whether the end of the line also terminates the pattern
150 * @param breaksOnEOF indicates whether the end of the file also terminates the pattern 150 * @param breaksOnEOF indicates whether the end of the file also terminates the pattern
151 * @since 2.1 151 * @since 2.1
152 */ 152 */
153 public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF) { 153 public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF) {
154 this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL); 154 this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL);
155 fBreaksOnEOF= breaksOnEOF; 155 fBreaksOnEOF= breaksOnEOF;
156 } 156 }
157 157
158 /** 158 /**
172 * @param escapeContinuesLine indicates whether the specified escape character is used for line 172 * @param escapeContinuesLine indicates whether the specified escape character is used for line
173 * continuation, so that an end of line immediately after the escape character does not 173 * continuation, so that an end of line immediately after the escape character does not
174 * terminate the pattern, even if <code>breakOnEOL</code> is set 174 * terminate the pattern, even if <code>breakOnEOL</code> is set
175 * @since 3.0 175 * @since 3.0
176 */ 176 */
177 public PatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF, bool escapeContinuesLine) { 177 public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOL, bool breaksOnEOF, bool escapeContinuesLine) {
178 this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL, breaksOnEOF); 178 this(startSequence, endSequence, token, escapeCharacter, breaksOnEOL, breaksOnEOF);
179 fEscapeContinuesLine= escapeContinuesLine; 179 fEscapeContinuesLine= escapeContinuesLine;
180 } 180 }
181 181
182 /** 182 /**