]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/include/SciLexer.h
3e0ad31b429ce9cde6c3c7f2f50aef2bfebd74d7
[wxWidgets.git] / src / stc / scintilla / include / SciLexer.h
1 // Scintilla source code edit control
2 // SciLexer - interface to the added lexer functions in the SciLexer version of the edit control
3 // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
4 // The License.txt file describes the conditions under which this software may be distributed.
5
6 #ifndef SCILEXER_H
7 #define SCILEXER_H
8
9 // SciLexer features - not in standard Scintilla
10
11 #define SCLEX_CONTAINER 0
12 #define SCLEX_NULL 1
13 #define SCLEX_PYTHON 2
14 #define SCLEX_CPP 3
15 #define SCLEX_HTML 4
16 #define SCLEX_XML 5
17 #define SCLEX_PERL 6
18 #define SCLEX_SQL 7
19 #define SCLEX_VB 8
20 #define SCLEX_PROPERTIES 9
21 #define SCLEX_ERRORLIST 10
22 #define SCLEX_MAKEFILE 11
23 #define SCLEX_BATCH 12
24
25 // Lexical states for SCLEX_PYTHON
26 #define SCE_P_DEFAULT 0
27 #define SCE_P_COMMENTLINE 1
28 #define SCE_P_NUMBER 2
29 #define SCE_P_STRING 3
30 #define SCE_P_CHARACTER 4
31 #define SCE_P_WORD 5
32 #define SCE_P_TRIPLE 6
33 #define SCE_P_TRIPLEDOUBLE 7
34 #define SCE_P_CLASSNAME 8
35 #define SCE_P_DEFNAME 9
36 #define SCE_P_OPERATOR 10
37 #define SCE_P_IDENTIFIER 11
38 #define SCE_P_COMMENTBLOCK 12
39 #define SCE_P_STRINGEOL 13
40
41 // Lexical states for SCLEX_CPP, SCLEX_VB
42 #define SCE_C_DEFAULT 0
43 #define SCE_C_COMMENT 1
44 #define SCE_C_COMMENTLINE 2
45 #define SCE_C_COMMENTDOC 3
46 #define SCE_C_NUMBER 4
47 #define SCE_C_WORD 5
48 #define SCE_C_STRING 6
49 #define SCE_C_CHARACTER 7
50 #define SCE_C_UUID 8
51 #define SCE_C_PREPROCESSOR 9
52 #define SCE_C_OPERATOR 10
53 #define SCE_C_IDENTIFIER 11
54 #define SCE_C_STRINGEOL 12
55
56 // Lexical states for SCLEX_HTML, SCLEX_xML
57 #define SCE_H_DEFAULT 0
58 #define SCE_H_TAG 1
59 #define SCE_H_TAGUNKNOWN 2
60 #define SCE_H_ATTRIBUTE 3
61 #define SCE_H_ATTRIBUTEUNKNOWN 4
62 #define SCE_H_NUMBER 5
63 #define SCE_H_DOUBLESTRING 6
64 #define SCE_H_SINGLESTRING 7
65 #define SCE_H_OTHER 8
66 #define SCE_H_COMMENT 9
67 #define SCE_H_ENTITY 10
68 // XML and ASP
69 #define SCE_H_TAGEND 11
70 #define SCE_H_XMLSTART 12
71 #define SCE_H_XMLEND 13
72 #define SCE_H_SCRIPT 14
73 #define SCE_H_ASP 15
74 #define SCE_H_ASPAT 16
75 // Embedded Javascript
76 #define SCE_HJ_START 40
77 #define SCE_HJ_DEFAULT 41
78 #define SCE_HJ_COMMENT 42
79 #define SCE_HJ_COMMENTLINE 43
80 #define SCE_HJ_COMMENTDOC 44
81 #define SCE_HJ_NUMBER 45
82 #define SCE_HJ_WORD 46
83 #define SCE_HJ_KEYWORD 47
84 #define SCE_HJ_DOUBLESTRING 48
85 #define SCE_HJ_SINGLESTRING 49
86 #define SCE_HJ_SYMBOLS 50
87 #define SCE_HJ_STRINGEOL 51
88 // ASP Javascript
89 #define SCE_HJA_START 55
90 #define SCE_HJA_DEFAULT 56
91 #define SCE_HJA_COMMENT 57
92 #define SCE_HJA_COMMENTLINE 58
93 #define SCE_HJA_COMMENTDOC 59
94 #define SCE_HJA_NUMBER 60
95 #define SCE_HJA_WORD 61
96 #define SCE_HJA_KEYWORD 62
97 #define SCE_HJA_DOUBLESTRING 63
98 #define SCE_HJA_SINGLESTRING 64
99 #define SCE_HJA_SYMBOLS 65
100 #define SCE_HJA_STRINGEOL 66
101 // Embedded VBScript
102 #define SCE_HB_START 70
103 #define SCE_HB_DEFAULT 71
104 #define SCE_HB_COMMENTLINE 72
105 #define SCE_HB_NUMBER 73
106 #define SCE_HB_WORD 74
107 #define SCE_HB_STRING 75
108 #define SCE_HB_IDENTIFIER 76
109 #define SCE_HB_STRINGEOL 77
110 // ASP VBScript
111 #define SCE_HBA_START 80
112 #define SCE_HBA_DEFAULT 81
113 #define SCE_HBA_COMMENTLINE 82
114 #define SCE_HBA_NUMBER 83
115 #define SCE_HBA_WORD 84
116 #define SCE_HBA_STRING 85
117 #define SCE_HBA_IDENTIFIER 86
118 #define SCE_HBA_STRINGEOL 87
119 // Embedded Python
120 #define SCE_HP_START 90
121 #define SCE_HP_DEFAULT 91
122 #define SCE_HP_COMMENTLINE 92
123 #define SCE_HP_NUMBER 93
124 #define SCE_HP_STRING 94
125 #define SCE_HP_CHARACTER 95
126 #define SCE_HP_WORD 96
127 #define SCE_HP_TRIPLE 97
128 #define SCE_HP_TRIPLEDOUBLE 98
129 #define SCE_HP_CLASSNAME 99
130 #define SCE_HP_DEFNAME 100
131 #define SCE_HP_OPERATOR 101
132 #define SCE_HP_IDENTIFIER 102
133 // ASP Python
134 #define SCE_HPA_START 105
135 #define SCE_HPA_DEFAULT 106
136 #define SCE_HPA_COMMENTLINE 107
137 #define SCE_HPA_NUMBER 108
138 #define SCE_HPA_STRING 109
139 #define SCE_HPA_CHARACTER 110
140 #define SCE_HPA_WORD 111
141 #define SCE_HPA_TRIPLE 112
142 #define SCE_HPA_TRIPLEDOUBLE 113
143 #define SCE_HPA_CLASSNAME 114
144 #define SCE_HPA_DEFNAME 115
145 #define SCE_HPA_OPERATOR 116
146 #define SCE_HPA_IDENTIFIER 117
147
148 // Lexical states for SCLEX_PERL
149 #define SCE_PL_DEFAULT 0
150 #define SCE_PL_HERE 1
151 #define SCE_PL_COMMENTLINE 2
152 #define SCE_PL_POD 3
153 #define SCE_PL_NUMBER 4
154 #define SCE_PL_WORD 5
155 #define SCE_PL_STRING 6
156 #define SCE_PL_CHARACTER 7
157 #define SCE_PL_PUNCTUATION 8
158 #define SCE_PL_PREPROCESSOR 9
159 #define SCE_PL_OPERATOR 10
160 #define SCE_PL_IDENTIFIER 11
161 #define SCE_PL_SCALAR 12
162 #define SCE_PL_ARRAY 13
163 #define SCE_PL_HASH 14
164 #define SCE_PL_SYMBOLTABLE 15
165 #define SCE_PL_REF 16
166 #define SCE_PL_REGEX 17
167 #define SCE_PL_REGSUBST 18
168 #define SCE_PL_LONGQUOTE 19
169 #define SCE_PL_BACKTICKS 20
170 #define SCE_PL_DATASECTION 21
171
172 #endif