source: other-projects/rsyntax-textarea/src/java/org/fife/ui/rsyntaxtextarea/TokenTypes.java@ 25584

Last change on this file since 25584 was 25584, checked in by davidb, 12 years ago

Initial cut an a text edit area for GLI that supports color syntax highlighting

File size: 2.6 KB
Line 
1/*
2 * 12/04/2011
3 *
4 * TokenTypes.java - All token types supported by RSyntaxTextArea.
5 *
6 * This library is distributed under a modified BSD license. See the included
7 * RSyntaxTextArea.License.txt file for details.
8 */
9package org.fife.ui.rsyntaxtextarea;
10
11
12/**
13 * All token types supported by RSyntaxTextArea.<p>
14 *
15 * Note that all valid token types are &gt;= 0, so extensions of the TokenMaker
16 * class are free to internally use all ints &lt; 0 ONLY for "end-of-line"
17 * style markers; they are ignored by painting implementations.
18 *
19 * @author Robert Futrell
20 * @version 1.0
21 */
22public interface TokenTypes {
23
24 /**
25 * Tokens of type <code>NULL</code> mark the end of lines with no
26 * multi-line token at the end (such as a block comment in C++).
27 */
28 public static final int NULL = 0;
29
30 public static final int COMMENT_EOL = 1;
31 public static final int COMMENT_MULTILINE = 2;
32 public static final int COMMENT_DOCUMENTATION = 3;
33 public static final int COMMENT_KEYWORD = 4;
34 public static final int COMMENT_MARKUP = 5;
35
36 public static final int RESERVED_WORD = 6;
37 public static final int RESERVED_WORD_2 = 7;
38
39 public static final int FUNCTION = 8;
40
41 public static final int LITERAL_BOOLEAN = 9;
42 public static final int LITERAL_NUMBER_DECIMAL_INT = 10;
43 public static final int LITERAL_NUMBER_FLOAT = 11;
44 public static final int LITERAL_NUMBER_HEXADECIMAL = 12;
45 public static final int LITERAL_STRING_DOUBLE_QUOTE = 13;
46 public static final int LITERAL_CHAR = 14;
47 public static final int LITERAL_BACKQUOTE = 15;
48
49 public static final int DATA_TYPE = 16;
50
51 public static final int VARIABLE = 17;
52
53 public static final int REGEX = 18;
54
55 public static final int ANNOTATION = 19;
56
57 public static final int IDENTIFIER = 20;
58
59 public static final int WHITESPACE = 21;
60
61 public static final int SEPARATOR = 22;
62
63 public static final int OPERATOR = 23;
64
65 public static final int PREPROCESSOR = 24;
66
67 public static final int MARKUP_TAG_DELIMITER = 25;
68 public static final int MARKUP_TAG_NAME = 26;
69 public static final int MARKUP_TAG_ATTRIBUTE = 27;
70 public static final int MARKUP_TAG_ATTRIBUTE_VALUE = 28;
71 public static final int MARKUP_PROCESSING_INSTRUCTION = 29;
72 public static final int MARKUP_CDATA = 30;
73
74 public static final int ERROR_IDENTIFIER = 31;
75 public static final int ERROR_NUMBER_FORMAT = 32;
76 public static final int ERROR_STRING_DOUBLE = 33;
77 public static final int ERROR_CHAR = 34;
78
79 public static final int NUM_TOKEN_TYPES = 35;
80
81}
Note: See TracBrowser for help on using the repository browser.