comparison dwtx/jface/text/rules/WordRule.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
86 * any subsequent rules to analyze the characters. 86 * any subsequent rules to analyze the characters.
87 * 87 *
88 * @param detector the word detector to be used by this rule, may not be <code>null</code> 88 * @param detector the word detector to be used by this rule, may not be <code>null</code>
89 * @see #addWord(String, IToken) 89 * @see #addWord(String, IToken)
90 */ 90 */
91 public WordRule(IWordDetector detector) { 91 public this(IWordDetector detector) {
92 this(detector, Token.UNDEFINED, false); 92 this(detector, Token.UNDEFINED, false);
93 } 93 }
94 94
95 /** 95 /**
96 * Creates a rule which, with the help of a word detector, will return the token 96 * Creates a rule which, with the help of a word detector, will return the token
100 * @param detector the word detector to be used by this rule, may not be <code>null</code> 100 * @param detector the word detector to be used by this rule, may not be <code>null</code>
101 * @param defaultToken the default token to be returned on success 101 * @param defaultToken the default token to be returned on success
102 * if nothing else is specified, may not be <code>null</code> 102 * if nothing else is specified, may not be <code>null</code>
103 * @see #addWord(String, IToken) 103 * @see #addWord(String, IToken)
104 */ 104 */
105 public WordRule(IWordDetector detector, IToken defaultToken) { 105 public this(IWordDetector detector, IToken defaultToken) {
106 this(detector, defaultToken, false); 106 this(detector, defaultToken, false);
107 } 107 }
108 108
109 /** 109 /**
110 * Creates a rule which, with the help of a word detector, will return the token 110 * Creates a rule which, with the help of a word detector, will return the token
116 * if nothing else is specified, may not be <code>null</code> 116 * if nothing else is specified, may not be <code>null</code>
117 * @param ignoreCase the case sensitivity associated with this rule 117 * @param ignoreCase the case sensitivity associated with this rule
118 * @see #addWord(String, IToken) 118 * @see #addWord(String, IToken)
119 * @since 3.3 119 * @since 3.3
120 */ 120 */
121 public WordRule(IWordDetector detector, IToken defaultToken, bool ignoreCase) { 121 public this(IWordDetector detector, IToken defaultToken, bool ignoreCase) {
122 Assert.isNotNull(detector); 122 Assert.isNotNull(detector);
123 Assert.isNotNull(defaultToken); 123 Assert.isNotNull(defaultToken);
124 124
125 fDetector= detector; 125 fDetector= detector;
126 fDefaultToken= defaultToken; 126 fDefaultToken= defaultToken;