comparison dwtx/jface/text/rules/WordPatternRule.d @ 199:eb98a5cbfd78

Fix: potential problem with synchronized, thx torhu.
author Frank Benoit <benoit@tionex.de>
date Fri, 13 Mar 2009 17:03:26 +0100
parents 1a5b8f8129df
children
comparison
equal deleted inserted replaced
198:489eb3f36068 199:eb98a5cbfd78
102 * @return <code>true</code> if the word ends on the given end sequence 102 * @return <code>true</code> if the word ends on the given end sequence
103 */ 103 */
104 protected bool endSequenceDetected(ICharacterScanner scanner) { 104 protected bool endSequenceDetected(ICharacterScanner scanner) {
105 fBuffer.truncate(0); 105 fBuffer.truncate(0);
106 int c= scanner.read(); 106 int c= scanner.read();
107 while (fDetector.isWordPart(cast(char) c)) { 107 while (fDetector.isWordPart(cast(dchar) c)) {
108 fBuffer.append(cast(char) c); 108 fBuffer.append(cast(char) c);
109 c= scanner.read(); 109 c= scanner.read();
110 } 110 }
111 scanner.unread(); 111 scanner.unread();
112 112