Changeset 201
- Timestamp:
- 11/05/02 01:26:48 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/CppTagger.java
r2 r201 22 22 23 23 import java.util.Stack; 24 import java.util. Vector;24 import java.util.ArrayList; 25 25 26 26 public final class CppTagger extends JavaTagger implements Constants … … 43 43 public void run() 44 44 { 45 Vector tags = new Vector();45 ArrayList tags = new ArrayList(); 46 46 String className = null; 47 47 Stack classNames = new Stack(); … … 64 64 continue; 65 65 } 66 if (pos.lookingAt("//") || (c == '#' && pos.getOffset() == 0)) {66 if (pos.lookingAt("//")) { 67 67 Line nextLine = pos.getNextLine(); 68 68 if (nextLine == null) 69 69 break; 70 70 pos.moveTo(nextLine, 0); 71 continue; 72 } 73 if (c == '#' && pos.getOffset() == 0) { 74 CTagger.skipPreprocessor(pos); 71 75 continue; 72 76 } … … 192 196 } 193 197 // Token can't end with ':'. 194 while (sb.length() > 0 && sb.charAt(sb.length() -1) == ':')195 sb.setLength(sb.length() -1);198 while (sb.length() > 0 && sb.charAt(sb.length()-1) == ':') 199 sb.setLength(sb.length()-1); 196 200 token = sb.toString(); 197 201 }
Note: See TracChangeset
for help on using the changeset viewer.