01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor.ext.java;
15:
16: import org.netbeans.editor.TokenID;
17: import org.netbeans.editor.ext.MultiSyntax;
18:
19: /**
20: * Extended java lexical anlyzer that combines JavaSyntax with the HTMLSyntax to
21: * form java with the javadoc tokens recognition.
22: *
23: * @author Miloslav Metelka
24: * @version 1.00
25: */
26:
27: public class JavaDocSyntax extends MultiSyntax {
28:
29: // Internal states
30: private static final int HTML_ON = 0;
31: private static final int ISI_ERROR = 1; // after carriage return
32:
33: public JavaDocSyntax() {
34: }
35:
36: protected TokenID parseToken() {
37: char actChar;
38:
39: while (offset < stopOffset) {
40: actChar = buffer[offset];
41: switch (state) {
42:
43: } // end of switch(state)
44:
45: } // end of while(offset...)
46:
47: /**
48: * At this stage there's no more text in the scanned buffer. Scanner
49: * first checks whether this is completely the last available buffer.
50: */
51:
52: if (lastBuffer) {
53: switch (state) {
54:
55: }
56: }
57:
58: return null;
59:
60: }
61:
62: }
|