Mercurial > projects > dwt-addons
comparison dwtx/jface/text/rules/SingleLineRule.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 | 51e6e63f930e |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
56 * | 56 * |
57 * @param startSequence the pattern's start sequence | 57 * @param startSequence the pattern's start sequence |
58 * @param endSequence the pattern's end sequence | 58 * @param endSequence the pattern's end sequence |
59 * @param token the token to be returned on success | 59 * @param token the token to be returned on success |
60 */ | 60 */ |
61 public SingleLineRule(String startSequence, String endSequence, IToken token) { | 61 public this(String startSequence, String endSequence, IToken token) { |
62 this(startSequence, endSequence, token, (char) 0); | 62 this(startSequence, endSequence, token, (char) 0); |
63 } | 63 } |
64 | 64 |
65 /** | 65 /** |
66 * Creates a rule for the given starting and ending sequence | 66 * Creates a rule for the given starting and ending sequence |
71 * @param startSequence the pattern's start sequence | 71 * @param startSequence the pattern's start sequence |
72 * @param endSequence the pattern's end sequence | 72 * @param endSequence the pattern's end sequence |
73 * @param token the token to be returned on success | 73 * @param token the token to be returned on success |
74 * @param escapeCharacter the escape character | 74 * @param escapeCharacter the escape character |
75 */ | 75 */ |
76 public SingleLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter) { | 76 public this(String startSequence, String endSequence, IToken token, char escapeCharacter) { |
77 this(startSequence, endSequence, token, escapeCharacter, false); | 77 this(startSequence, endSequence, token, escapeCharacter, false); |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * Creates a rule for the given starting and ending sequence | 81 * Creates a rule for the given starting and ending sequence |
89 * @param token the token to be returned on success | 89 * @param token the token to be returned on success |
90 * @param escapeCharacter the escape character | 90 * @param escapeCharacter the escape character |
91 * @param breaksOnEOF indicates whether the end of the file successfully terminates this rule | 91 * @param breaksOnEOF indicates whether the end of the file successfully terminates this rule |
92 * @since 2.1 | 92 * @since 2.1 |
93 */ | 93 */ |
94 public SingleLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOF) { | 94 public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOF) { |
95 super(startSequence, endSequence, token, escapeCharacter, true, breaksOnEOF); | 95 super(startSequence, endSequence, token, escapeCharacter, true, breaksOnEOF); |
96 } | 96 } |
97 | 97 |
98 /** | 98 /** |
99 * Creates a rule for the given starting and ending sequence | 99 * Creates a rule for the given starting and ending sequence |
111 * @param escapeContinuesLine indicates whether the specified escape character is used for line | 111 * @param escapeContinuesLine indicates whether the specified escape character is used for line |
112 * continuation, so that an end of line immediately after the escape character does not | 112 * continuation, so that an end of line immediately after the escape character does not |
113 * terminate the line, even if <code>breakOnEOL</code> is true | 113 * terminate the line, even if <code>breakOnEOL</code> is true |
114 * @since 3.0 | 114 * @since 3.0 |
115 */ | 115 */ |
116 public SingleLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOF, bool escapeContinuesLine) { | 116 public this(String startSequence, String endSequence, IToken token, char escapeCharacter, bool breaksOnEOF, bool escapeContinuesLine) { |
117 super(startSequence, endSequence, token, escapeCharacter, true, breaksOnEOF, escapeContinuesLine); | 117 super(startSequence, endSequence, token, escapeCharacter, true, breaksOnEOF, escapeContinuesLine); |
118 } | 118 } |
119 } | 119 } |