]>
Commit | Line | Data |
---|---|---|
bfabd11a RD |
1 | ## First line may be used for shbang |
2 | ||
3 | ## This file defines the interface to Scintilla | |
4 | ||
8e54aaed | 5 | ## Copyright 2000-2003 by Neil Hodgson <neilh@scintilla.org> |
1a2fb4cd RD |
6 | ## The License.txt file describes the conditions under which this software may be distributed. |
7 | ||
bfabd11a | 8 | ## A line starting with ## is a pure comment and should be stripped by readers. |
d134f170 | 9 | ## A line starting with #! is for future shbang use |
d25f5fbb | 10 | ## A line starting with # followed by a space is a documentation comment and refers |
bfabd11a RD |
11 | ## to the next feature definition. |
12 | ||
d134f170 | 13 | ## Each feature is defined by a line starting with fun, get, set, val or evt. |
bfabd11a RD |
14 | ## cat -> start a category |
15 | ## fun -> a function | |
16 | ## get -> a property get function | |
d134f170 | 17 | ## set -> a property set function |
bfabd11a | 18 | ## val -> definition of a constant |
d134f170 | 19 | ## evt -> an event |
a834585d RD |
20 | ## enu -> associate an enumeration with a set of vals with a prefix |
21 | ## lex -> associate a lexer with the lexical classes it produces | |
22 | ## | |
bfabd11a RD |
23 | ## All other feature names should be ignored. They may be defined in the future. |
24 | ## A property may have a set function, a get function or both. Each will have | |
25 | ## "Get" or "Set" in their names and the corresponding name will have the obvious switch. | |
26 | ## A property may be subscripted, in which case the first parameter is the subscript. | |
27 | ## fun, get, and set features have a strict syntax: | |
28 | ## <featureType><ws><returnType><ws><name>[=<number](<param>,<param>) | |
8e54aaed RD |
29 | ## where <ws> stands for white space. |
30 | ## param may be empty (null value) or is <paramType><ws><paramName>[=<value>] | |
bfabd11a | 31 | ## Additional white space is allowed between elements. |
d134f170 | 32 | ## The syntax for evt is <featureType><ws><returnType><ws><name>[=<number]([<param>[,<param>]*]) |
bfabd11a RD |
33 | ## Feature names that contain an underscore are defined by Windows, so in these |
34 | ## cases, using the Windows definition is preferred where available. | |
1a2fb4cd RD |
35 | ## The feature numbers are stable so features will not be renumbered. |
36 | ## Features may be removed but they will go through a period of deprecation | |
37 | ## before removal which is signalled by moving them into the Deprecated category. | |
a834585d RD |
38 | ## |
39 | ## enu has the syntax enu<ws><enumeration>=<prefix>[<ws><prefix>]* where all the val | |
40 | ## features in this file starting with a given <prefix> are considered part of the | |
41 | ## enumeration. | |
42 | ## | |
43 | ## lex has the syntax lex<ws><name>=<lexerVal><ws><prefix>[<ws><prefix>]* | |
44 | ## where name is a reasonably capitalised (Python, XML) identifier or UI name, | |
45 | ## lexerVal is the val used to specify the lexer, and the list of prefixes is similar | |
46 | ## to enu. The name may not be the same as that used within the lexer so the lexerVal | |
47 | ## should be used to tie these entities together. | |
bfabd11a RD |
48 | |
49 | ## Types: | |
50 | ## void | |
51 | ## int | |
52 | ## bool -> integer, 1=true, 0=false | |
53 | ## position -> integer position in a document | |
54 | ## colour -> colour integer containing red, green and blue bytes. | |
55 | ## string -> pointer to const character | |
591d01be | 56 | ## stringresult -> pointer to character, NULL-> return size of result |
bfabd11a | 57 | ## cells -> pointer to array of cells, each cell containing a style byte and character byte |
1a2fb4cd | 58 | ## textrange -> range of a min and a max position with an output string |
bfabd11a RD |
59 | ## findtext -> searchrange, text -> foundposition |
60 | ## keymod -> integer containing key in low half and modifiers in high half | |
bfabd11a | 61 | ## formatrange |
1a2fb4cd RD |
62 | ## Types no longer used: |
63 | ## findtextex -> searchrange | |
64 | ## charrange -> range of a min and a max position | |
65 | ## charrangeresult -> like charrange, but output param | |
66 | ## countedstring | |
bfabd11a | 67 | ## point -> x,y |
d134f170 RD |
68 | ## pointresult -> like point, but output param |
69 | ## rectangle -> left,top,right,bottom | |
d25f5fbb | 70 | ## Client code should ignore definitions containing types it does not understand, except |
bfabd11a RD |
71 | ## for possibly #defining the constants |
72 | ||
591d01be | 73 | ## Line numbers and positions start at 0. |
1a2fb4cd RD |
74 | ## String arguments may contain NUL ('\0') characters where the calls provide a length |
75 | ## argument and retrieve NUL characters. All retrieved strings except for those retrieved | |
76 | ## by GetLine also have a NUL appended but client code should calculate the size that | |
77 | ## will be returned rather than relying upon the NUL whenever possible. Allow for the | |
591d01be RD |
78 | ## extra NUL character when allocating buffers. The size to allocate for a stringresult |
79 | ## can be determined by calling with a NULL (0) pointer. | |
1a2fb4cd | 80 | |
d25f5fbb | 81 | cat Basics |
bfabd11a RD |
82 | |
83 | ################################################ | |
d134f170 | 84 | ## For Scintilla.h |
bfabd11a | 85 | val INVALID_POSITION=-1 |
8e54aaed | 86 | # Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages |
d134f170 | 87 | # as many EM_ messages can be used although that use is deprecated. |
bfabd11a RD |
88 | val SCI_START=2000 |
89 | val SCI_OPTIONAL_START=3000 | |
90 | val SCI_LEXER_START=4000 | |
91 | ||
591d01be | 92 | # Add text to the document at current position. |
bfabd11a RD |
93 | fun void AddText=2001(int length, string text) |
94 | ||
a834585d | 95 | # Add array of cells to document. |
bfabd11a RD |
96 | fun void AddStyledText=2002(int length, cells c) |
97 | ||
a834585d | 98 | # Insert string at a position. |
bfabd11a RD |
99 | fun void InsertText=2003(position pos, string text) |
100 | ||
a834585d | 101 | # Delete all text in the document. |
bfabd11a RD |
102 | fun void ClearAll=2004(,) |
103 | ||
a834585d | 104 | # Set all style bytes to 0, remove all folding information. |
d134f170 RD |
105 | fun void ClearDocumentStyle=2005(,) |
106 | ||
591d01be | 107 | # Returns the number of characters in the document. |
bfabd11a RD |
108 | get int GetLength=2006(,) |
109 | ||
a834585d | 110 | # Returns the character byte at the position. |
bfabd11a RD |
111 | get int GetCharAt=2007(position pos,) |
112 | ||
a834585d | 113 | # Returns the position of the caret. |
bfabd11a RD |
114 | get position GetCurrentPos=2008(,) |
115 | ||
a834585d | 116 | # Returns the position of the opposite end of the selection to the caret. |
bfabd11a RD |
117 | get position GetAnchor=2009(,) |
118 | ||
a834585d | 119 | # Returns the style byte at the position. |
bfabd11a RD |
120 | get int GetStyleAt=2010(position pos,) |
121 | ||
a834585d | 122 | # Redoes the next action on the undo history. |
bfabd11a RD |
123 | fun void Redo=2011(,) |
124 | ||
d25f5fbb | 125 | # Choose between collecting actions into the undo |
bfabd11a | 126 | # history and discarding them. |
d134f170 | 127 | set void SetUndoCollection=2012(bool collectUndo,) |
bfabd11a RD |
128 | |
129 | # Select all the text in the document. | |
130 | fun void SelectAll=2013(,) | |
131 | ||
d25f5fbb | 132 | # Remember the current position in the undo history as the position |
bfabd11a RD |
133 | # at which the document was saved. |
134 | fun void SetSavePoint=2014(,) | |
135 | ||
136 | # Retrieve a buffer of cells. | |
8e54aaed | 137 | # Returns the number of bytes in the buffer not including terminating NULs. |
bfabd11a RD |
138 | fun int GetStyledText=2015(, textrange tr) |
139 | ||
a834585d | 140 | # Are there any redoable actions in the undo history? |
bfabd11a RD |
141 | fun bool CanRedo=2016(,) |
142 | ||
a834585d | 143 | # Retrieve the line number at which a particular marker is located. |
bfabd11a RD |
144 | fun int MarkerLineFromHandle=2017(int handle,) |
145 | ||
146 | # Delete a marker. | |
147 | fun void MarkerDeleteHandle=2018(int handle,) | |
148 | ||
d134f170 RD |
149 | # Is undo history being collected? |
150 | get bool GetUndoCollection=2019(,) | |
151 | ||
a834585d | 152 | enu WhiteSpace=SCWS_ |
d134f170 RD |
153 | val SCWS_INVISIBLE=0 |
154 | val SCWS_VISIBLEALWAYS=1 | |
155 | val SCWS_VISIBLEAFTERINDENT=2 | |
156 | ||
bfabd11a | 157 | # Are white space characters currently visible? |
d134f170 RD |
158 | # Returns one of SCWS_* constants. |
159 | get int GetViewWS=2020(,) | |
bfabd11a | 160 | |
d134f170 RD |
161 | # Make white space characters invisible, always visible or visible outside indentation. |
162 | set void SetViewWS=2021(int viewWS,) | |
163 | ||
164 | # Find the position from a point within the window. | |
8e54aaed | 165 | fun position PositionFromPoint=2022(int x, int y) |
bfabd11a | 166 | |
65ec6247 RD |
167 | # Find the position from a point within the window but return |
168 | # INVALID_POSITION if not close to text. | |
8e54aaed | 169 | fun position PositionFromPointClose=2023(int x, int y) |
65ec6247 | 170 | |
bfabd11a RD |
171 | # Set caret to start of a line and ensure it is visible. |
172 | fun void GotoLine=2024(int line,) | |
173 | ||
174 | # Set caret to a position and ensure it is visible. | |
175 | fun void GotoPos=2025(position pos,) | |
176 | ||
177 | # Set the selection anchor to a position. The anchor is the opposite | |
178 | # end of the selection from the caret. | |
179 | set void SetAnchor=2026(position posAnchor,) | |
180 | ||
181 | # Retrieve the text of the line containing the caret. | |
182 | # Returns the index of the caret on the line. | |
183 | fun int GetCurLine=2027(int length, stringresult text) | |
184 | ||
185 | # Retrieve the position of the last correctly styled character. | |
186 | get position GetEndStyled=2028(,) | |
187 | ||
a834585d | 188 | enu EndOfLine=SC_EOL_ |
bfabd11a RD |
189 | val SC_EOL_CRLF=0 |
190 | val SC_EOL_CR=1 | |
191 | val SC_EOL_LF=2 | |
192 | ||
65ec6247 RD |
193 | # Convert all line endings in the document to one mode. |
194 | fun void ConvertEOLs=2029(int eolMode,) | |
195 | ||
bfabd11a RD |
196 | # Retrieve the current end of line mode - one of CRLF, CR, or LF. |
197 | get int GetEOLMode=2030(,) | |
198 | ||
199 | # Set the current end of line mode. | |
200 | set void SetEOLMode=2031(int eolMode,) | |
201 | ||
202 | # Set the current styling position to pos and the styling mask to mask. | |
a834585d | 203 | # The styling mask can be used to protect some bits in each styling byte from modification. |
bfabd11a RD |
204 | fun void StartStyling=2032(position pos, int mask) |
205 | ||
206 | # Change style from current styling position for length characters to a style | |
207 | # and move the current styling position to after this newly styled segment. | |
208 | fun void SetStyling=2033(int length, int style) | |
209 | ||
a834585d | 210 | # Is drawing done first into a buffer or direct to the screen? |
d134f170 RD |
211 | get bool GetBufferedDraw=2034(,) |
212 | ||
bfabd11a RD |
213 | # If drawing is buffered then each line of text is drawn into a bitmap buffer |
214 | # before drawing it to the screen to avoid flicker. | |
215 | set void SetBufferedDraw=2035(bool buffered,) | |
216 | ||
a834585d | 217 | # Change the visible size of a tab to be a multiple of the width of a space character. |
bfabd11a RD |
218 | set void SetTabWidth=2036(int tabWidth,) |
219 | ||
d25f5fbb | 220 | # Retrieve the visible size of a tab. |
bfabd11a RD |
221 | get int GetTabWidth=2121(,) |
222 | ||
d134f170 RD |
223 | # The SC_CP_UTF8 value can be used to enter Unicode mode. |
224 | # This is the same value as CP_UTF8 in Windows | |
bfabd11a RD |
225 | val SC_CP_UTF8=65001 |
226 | ||
9e730a78 RD |
227 | # The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+. |
228 | val SC_CP_DBCS=1 | |
229 | ||
bfabd11a RD |
230 | # Set the code page used to interpret the bytes of the document as characters. |
231 | # The SC_CP_UTF8 value can be used to enter Unicode mode. | |
232 | set void SetCodePage=2037(int codePage,) | |
233 | ||
a834585d | 234 | # In palette mode, Scintilla uses the environment's palette calls to display |
bfabd11a RD |
235 | # more colours. This may lead to ugly displays. |
236 | set void SetUsePalette=2039(bool usePalette,) | |
237 | ||
a834585d | 238 | enu MarkerSymbol=SC_MARK_ |
bfabd11a RD |
239 | val MARKER_MAX=31 |
240 | val SC_MARK_CIRCLE=0 | |
241 | val SC_MARK_ROUNDRECT=1 | |
242 | val SC_MARK_ARROW=2 | |
243 | val SC_MARK_SMALLRECT=3 | |
244 | val SC_MARK_SHORTARROW=4 | |
245 | val SC_MARK_EMPTY=5 | |
246 | val SC_MARK_ARROWDOWN=6 | |
247 | val SC_MARK_MINUS=7 | |
248 | val SC_MARK_PLUS=8 | |
249 | ||
a834585d | 250 | # Shapes used for outlining column. |
65ec6247 RD |
251 | val SC_MARK_VLINE=9 |
252 | val SC_MARK_LCORNER=10 | |
253 | val SC_MARK_TCORNER=11 | |
254 | val SC_MARK_BOXPLUS=12 | |
255 | val SC_MARK_BOXPLUSCONNECTED=13 | |
256 | val SC_MARK_BOXMINUS=14 | |
257 | val SC_MARK_BOXMINUSCONNECTED=15 | |
258 | val SC_MARK_LCORNERCURVE=16 | |
259 | val SC_MARK_TCORNERCURVE=17 | |
260 | val SC_MARK_CIRCLEPLUS=18 | |
261 | val SC_MARK_CIRCLEPLUSCONNECTED=19 | |
262 | val SC_MARK_CIRCLEMINUS=20 | |
263 | val SC_MARK_CIRCLEMINUSCONNECTED=21 | |
264 | ||
a834585d | 265 | # Invisible mark that only sets the line background color. |
1a2fb4cd | 266 | val SC_MARK_BACKGROUND=22 |
f114b858 RD |
267 | val SC_MARK_DOTDOTDOT=23 |
268 | val SC_MARK_ARROWS=24 | |
9e730a78 | 269 | val SC_MARK_PIXMAP=25 |
1e9bafca | 270 | val SC_MARK_FULLRECT=26 |
1a2fb4cd | 271 | |
b8b0e402 RD |
272 | val SC_MARK_CHARACTER=10000 |
273 | ||
a834585d RD |
274 | enu MarkerOutline=SC_MARKNUM_ |
275 | # Markers used for outlining column. | |
65ec6247 RD |
276 | val SC_MARKNUM_FOLDEREND=25 |
277 | val SC_MARKNUM_FOLDEROPENMID=26 | |
278 | val SC_MARKNUM_FOLDERMIDTAIL=27 | |
279 | val SC_MARKNUM_FOLDERTAIL=28 | |
280 | val SC_MARKNUM_FOLDERSUB=29 | |
bfabd11a RD |
281 | val SC_MARKNUM_FOLDER=30 |
282 | val SC_MARKNUM_FOLDEROPEN=31 | |
bfabd11a | 283 | |
1a2fb4cd RD |
284 | val SC_MASK_FOLDERS=0xFE000000 |
285 | ||
bfabd11a RD |
286 | # Set the symbol used for a particular marker number. |
287 | fun void MarkerDefine=2040(int markerNumber, int markerSymbol) | |
288 | ||
289 | # Set the foreground colour used for a particular marker number. | |
290 | fun void MarkerSetFore=2041(int markerNumber, colour fore) | |
291 | ||
292 | # Set the background colour used for a particular marker number. | |
293 | fun void MarkerSetBack=2042(int markerNumber, colour back) | |
294 | ||
1a2fb4cd RD |
295 | # Add a marker to a line, returning an ID which can be used to find or delete the marker. |
296 | fun int MarkerAdd=2043(int line, int markerNumber) | |
bfabd11a | 297 | |
a834585d | 298 | # Delete a marker from a line. |
bfabd11a RD |
299 | fun void MarkerDelete=2044(int line, int markerNumber) |
300 | ||
a834585d | 301 | # Delete all markers with a particular number from all lines. |
bfabd11a RD |
302 | fun void MarkerDeleteAll=2045(int markerNumber,) |
303 | ||
304 | # Get a bit mask of all the markers set on a line. | |
305 | fun int MarkerGet=2046(int line,) | |
306 | ||
307 | # Find the next line after lineStart that includes a marker in mask. | |
308 | fun int MarkerNext=2047(int lineStart, int markerMask) | |
309 | ||
310 | # Find the previous line before lineStart that includes a marker in mask. | |
311 | fun int MarkerPrevious=2048(int lineStart, int markerMask) | |
312 | ||
9e730a78 RD |
313 | # Define a marker from a pixmap. |
314 | fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap) | |
315 | ||
1e9bafca RD |
316 | # Add a set of markers to a line. |
317 | fun void MarkerAddSet=2466(int line, int set) | |
318 | ||
a834585d | 319 | enu MarginType=SC_MARGIN_ |
bfabd11a RD |
320 | val SC_MARGIN_SYMBOL=0 |
321 | val SC_MARGIN_NUMBER=1 | |
322 | ||
323 | # Set a margin to be either numeric or symbolic. | |
324 | set void SetMarginTypeN=2240(int margin, int marginType) | |
325 | ||
326 | # Retrieve the type of a margin. | |
327 | get int GetMarginTypeN=2241(int margin,) | |
328 | ||
329 | # Set the width of a margin to a width expressed in pixels. | |
330 | set void SetMarginWidthN=2242(int margin, int pixelWidth) | |
331 | ||
332 | # Retrieve the width of a margin in pixels. | |
333 | get int GetMarginWidthN=2243(int margin,) | |
334 | ||
335 | # Set a mask that determines which markers are displayed in a margin. | |
336 | set void SetMarginMaskN=2244(int margin, int mask) | |
337 | ||
338 | # Retrieve the marker mask of a margin. | |
339 | get int GetMarginMaskN=2245(int margin,) | |
340 | ||
341 | # Make a margin sensitive or insensitive to mouse clicks. | |
342 | set void SetMarginSensitiveN=2246(int margin, bool sensitive) | |
343 | ||
344 | # Retrieve the mouse click sensitivity of a margin. | |
345 | get bool GetMarginSensitiveN=2247(int margin,) | |
346 | ||
b8b0e402 RD |
347 | # Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles. |
348 | # Styles 38 and 39 are for future use. | |
a834585d | 349 | enu StylesCommon=STYLE_ |
bfabd11a RD |
350 | val STYLE_DEFAULT=32 |
351 | val STYLE_LINENUMBER=33 | |
352 | val STYLE_BRACELIGHT=34 | |
353 | val STYLE_BRACEBAD=35 | |
354 | val STYLE_CONTROLCHAR=36 | |
d134f170 | 355 | val STYLE_INDENTGUIDE=37 |
b8b0e402 | 356 | val STYLE_LASTPREDEFINED=39 |
bfabd11a RD |
357 | val STYLE_MAX=127 |
358 | ||
d134f170 RD |
359 | # Character set identifiers are used in StyleSetCharacterSet. |
360 | # The values are the same as the Windows *_CHARSET values. | |
a834585d | 361 | enu CharacterSet=SC_CHARSET_ |
d134f170 RD |
362 | val SC_CHARSET_ANSI=0 |
363 | val SC_CHARSET_DEFAULT=1 | |
364 | val SC_CHARSET_BALTIC=186 | |
365 | val SC_CHARSET_CHINESEBIG5=136 | |
366 | val SC_CHARSET_EASTEUROPE=238 | |
367 | val SC_CHARSET_GB2312=134 | |
368 | val SC_CHARSET_GREEK=161 | |
369 | val SC_CHARSET_HANGUL=129 | |
370 | val SC_CHARSET_MAC=77 | |
371 | val SC_CHARSET_OEM=255 | |
372 | val SC_CHARSET_RUSSIAN=204 | |
1e9bafca | 373 | val SC_CHARSET_CYRILLIC=1251 |
d134f170 RD |
374 | val SC_CHARSET_SHIFTJIS=128 |
375 | val SC_CHARSET_SYMBOL=2 | |
376 | val SC_CHARSET_TURKISH=162 | |
377 | val SC_CHARSET_JOHAB=130 | |
378 | val SC_CHARSET_HEBREW=177 | |
379 | val SC_CHARSET_ARABIC=178 | |
380 | val SC_CHARSET_VIETNAMESE=163 | |
381 | val SC_CHARSET_THAI=222 | |
1e9bafca | 382 | val SC_CHARSET_8859_15=1000 |
d134f170 | 383 | |
bfabd11a RD |
384 | # Clear all the styles and make equivalent to the global default style. |
385 | set void StyleClearAll=2050(,) | |
386 | ||
387 | # Set the foreground colour of a style. | |
388 | set void StyleSetFore=2051(int style, colour fore) | |
389 | ||
390 | # Set the background colour of a style. | |
391 | set void StyleSetBack=2052(int style, colour back) | |
392 | ||
393 | # Set a style to be bold or not. | |
394 | set void StyleSetBold=2053(int style, bool bold) | |
395 | ||
396 | # Set a style to be italic or not. | |
397 | set void StyleSetItalic=2054(int style, bool italic) | |
398 | ||
399 | # Set the size of characters of a style. | |
400 | set void StyleSetSize=2055(int style, int sizePoints) | |
401 | ||
402 | # Set the font of a style. | |
403 | set void StyleSetFont=2056(int style, string fontName) | |
404 | ||
405 | # Set a style to have its end of line filled or not. | |
406 | set void StyleSetEOLFilled=2057(int style, bool filled) | |
407 | ||
408 | # Reset the default style to its state at startup | |
409 | fun void StyleResetDefault=2058(,) | |
410 | ||
411 | # Set a style to be underlined or not. | |
412 | set void StyleSetUnderline=2059(int style, bool underline) | |
413 | ||
a834585d | 414 | enu CaseVisible=SC_CASE_ |
65ec6247 RD |
415 | val SC_CASE_MIXED=0 |
416 | val SC_CASE_UPPER=1 | |
417 | val SC_CASE_LOWER=2 | |
418 | # Set a style to be mixed case, or to force upper or lower case. | |
419 | set void StyleSetCase=2060(int style, int caseForce) | |
420 | ||
bfabd11a RD |
421 | # Set the character set of the font in a style. |
422 | set void StyleSetCharacterSet=2066(int style, int characterSet) | |
423 | ||
9e730a78 RD |
424 | # Set a style to be a hotspot or not. |
425 | set void StyleSetHotSpot=2409(int style, bool hotspot) | |
426 | ||
bfabd11a RD |
427 | # Set the foreground colour of the selection and whether to use this setting. |
428 | fun void SetSelFore=2067(bool useSetting, colour fore) | |
429 | ||
430 | # Set the background colour of the selection and whether to use this setting. | |
431 | fun void SetSelBack=2068(bool useSetting, colour back) | |
432 | ||
433 | # Set the foreground colour of the caret. | |
d134f170 | 434 | set void SetCaretFore=2069(colour fore,) |
bfabd11a RD |
435 | |
436 | # When key+modifier combination km is pressed perform msg. | |
437 | fun void AssignCmdKey=2070(keymod km, int msg) | |
438 | ||
8e54aaed | 439 | # When key+modifier combination km is pressed do nothing. |
bfabd11a RD |
440 | fun void ClearCmdKey=2071(keymod km,) |
441 | ||
442 | # Drop all key mappings. | |
443 | fun void ClearAllCmdKeys=2072(,) | |
444 | ||
445 | # Set the styles for a segment of the document. | |
446 | fun void SetStylingEx=2073(int length, string styles) | |
447 | ||
d134f170 RD |
448 | # Set a style to be visible or not. |
449 | set void StyleSetVisible=2074(int style, bool visible) | |
450 | ||
d25f5fbb | 451 | # Get the time in milliseconds that the caret is on and off. |
bfabd11a RD |
452 | get int GetCaretPeriod=2075(,) |
453 | ||
454 | # Get the time in milliseconds that the caret is on and off. 0 = steady on. | |
455 | set void SetCaretPeriod=2076(int periodMilliseconds,) | |
456 | ||
a834585d | 457 | # Set the set of characters making up words for when moving or selecting by word. |
8e54aaed | 458 | # First sets deaults like SetCharsDefault. |
bfabd11a RD |
459 | set void SetWordChars=2077(, string characters) |
460 | ||
461 | # Start a sequence of actions that is undone and redone as a unit. | |
462 | # May be nested. | |
463 | fun void BeginUndoAction=2078(,) | |
464 | ||
465 | # End a sequence of actions that is undone and redone as a unit. | |
466 | fun void EndUndoAction=2079(,) | |
467 | ||
a834585d | 468 | enu IndicatorStyle=INDIC_ |
bfabd11a RD |
469 | val INDIC_MAX=7 |
470 | val INDIC_PLAIN=0 | |
471 | val INDIC_SQUIGGLE=1 | |
472 | val INDIC_TT=2 | |
473 | val INDIC_DIAGONAL=3 | |
474 | val INDIC_STRIKE=4 | |
88a8b04e | 475 | val INDIC_HIDDEN=5 |
8e54aaed | 476 | val INDIC_BOX=6 |
1a2fb4cd RD |
477 | val INDIC0_MASK=0x20 |
478 | val INDIC1_MASK=0x40 | |
479 | val INDIC2_MASK=0x80 | |
480 | val INDICS_MASK=0xE0 | |
bfabd11a RD |
481 | |
482 | # Set an indicator to plain, squiggle or TT. | |
483 | set void IndicSetStyle=2080(int indic, int style) | |
484 | ||
485 | # Retrieve the style of an indicator. | |
486 | get int IndicGetStyle=2081(int indic,) | |
487 | ||
488 | # Set the foreground colour of an indicator. | |
489 | set void IndicSetFore=2082(int indic, colour fore) | |
490 | ||
491 | # Retrieve the foreground colour of an indicator. | |
492 | get colour IndicGetFore=2083(int indic,) | |
493 | ||
f114b858 RD |
494 | # Set the foreground colour of all whitespace and whether to use this setting. |
495 | fun void SetWhitespaceFore=2084(bool useSetting, colour fore) | |
496 | ||
497 | # Set the background colour of all whitespace and whether to use this setting. | |
498 | fun void SetWhitespaceBack=2085(bool useSetting, colour back) | |
499 | ||
a834585d RD |
500 | # Divide each styling byte into lexical class bits (default: 5) and indicator |
501 | # bits (default: 3). If a lexer requires more than 32 lexical states, then this | |
bfabd11a RD |
502 | # is used to expand the possible states. |
503 | set void SetStyleBits=2090(int bits,) | |
504 | ||
505 | # Retrieve number of bits in style bytes used to hold the lexical state. | |
506 | get int GetStyleBits=2091(,) | |
507 | ||
508 | # Used to hold extra styling information for each line. | |
509 | set void SetLineState=2092(int line, int state) | |
510 | ||
511 | # Retrieve the extra styling information for a line. | |
512 | get int GetLineState=2093(int line,) | |
513 | ||
d25f5fbb | 514 | # Retrieve the last line number that has line state. |
bfabd11a RD |
515 | get int GetMaxLineState=2094(,) |
516 | ||
65ec6247 RD |
517 | # Is the background of the line containing the caret in a different colour? |
518 | get bool GetCaretLineVisible=2095(,) | |
519 | ||
a834585d | 520 | # Display the background of the line containing the caret in a different colour. |
65ec6247 RD |
521 | set void SetCaretLineVisible=2096(bool show,) |
522 | ||
523 | # Get the colour of the background of the line containing the caret. | |
524 | get colour GetCaretLineBack=2097(,) | |
525 | ||
526 | # Set the colour of the background of the line containing the caret. | |
527 | set void SetCaretLineBack=2098(colour back,) | |
528 | ||
1a2fb4cd RD |
529 | # Set a style to be changeable or not (read only). |
530 | # Experimental feature, currently buggy. | |
531 | set void StyleSetChangeable=2099(int style, bool changeable) | |
532 | ||
bfabd11a RD |
533 | # Display a auto-completion list. |
534 | # The lenEntered parameter indicates how many characters before | |
535 | # the caret should be used to provide context. | |
536 | fun void AutoCShow=2100(int lenEntered, string itemList) | |
537 | ||
538 | # Remove the auto-completion list from the screen. | |
539 | fun void AutoCCancel=2101(,) | |
540 | ||
541 | # Is there an auto-completion list visible? | |
542 | fun bool AutoCActive=2102(,) | |
543 | ||
a834585d | 544 | # Retrieve the position of the caret when the auto-completion list was displayed. |
bfabd11a RD |
545 | fun position AutoCPosStart=2103(,) |
546 | ||
547 | # User has selected an item so remove the list and insert the selection. | |
548 | fun void AutoCComplete=2104(,) | |
549 | ||
550 | # Define a set of character that when typed cancel the auto-completion list. | |
551 | fun void AutoCStops=2105(, string characterSet) | |
552 | ||
a834585d RD |
553 | # Change the separator character in the string setting up an auto-completion list. |
554 | # Default is space but can be changed if items contain space. | |
bfabd11a RD |
555 | set void AutoCSetSeparator=2106(int separatorCharacter,) |
556 | ||
557 | # Retrieve the auto-completion list separator character. | |
558 | get int AutoCGetSeparator=2107(,) | |
559 | ||
560 | # Select the item in the auto-completion list that starts with a string. | |
561 | fun void AutoCSelect=2108(, string text) | |
562 | ||
d25f5fbb RD |
563 | # Should the auto-completion list be cancelled if the user backspaces to a |
564 | # position before where the box was created. | |
d134f170 RD |
565 | set void AutoCSetCancelAtStart=2110(bool cancel,) |
566 | ||
567 | # Retrieve whether auto-completion cancelled by backspacing before start. | |
568 | get bool AutoCGetCancelAtStart=2111(,) | |
569 | ||
1a2fb4cd RD |
570 | # Define a set of characters that when typed will cause the autocompletion to |
571 | # choose the selected item. | |
d134f170 RD |
572 | set void AutoCSetFillUps=2112(, string characterSet) |
573 | ||
d25f5fbb | 574 | # Should a single item auto-completion list automatically choose the item. |
d134f170 RD |
575 | set void AutoCSetChooseSingle=2113(bool chooseSingle,) |
576 | ||
d25f5fbb | 577 | # Retrieve whether a single item auto-completion list automatically choose the item. |
d134f170 RD |
578 | get bool AutoCGetChooseSingle=2114(,) |
579 | ||
580 | # Set whether case is significant when performing auto-completion searches. | |
581 | set void AutoCSetIgnoreCase=2115(bool ignoreCase,) | |
582 | ||
d25f5fbb | 583 | # Retrieve state of ignore case flag. |
d134f170 RD |
584 | get bool AutoCGetIgnoreCase=2116(,) |
585 | ||
65ec6247 RD |
586 | # Display a list of strings and send notification when user chooses one. |
587 | fun void UserListShow=2117(int listType, string itemList) | |
588 | ||
a834585d | 589 | # Set whether or not autocompletion is hidden automatically when nothing matches. |
65ec6247 RD |
590 | set void AutoCSetAutoHide=2118(bool autoHide,) |
591 | ||
a834585d | 592 | # Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
65ec6247 RD |
593 | get bool AutoCGetAutoHide=2119(,) |
594 | ||
a834585d RD |
595 | # Set whether or not autocompletion deletes any word characters |
596 | # after the inserted text upon completion. | |
1a2fb4cd RD |
597 | set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,) |
598 | ||
a834585d RD |
599 | # Retrieve whether or not autocompletion deletes any word characters |
600 | # after the inserted text upon completion. | |
1a2fb4cd RD |
601 | get bool AutoCGetDropRestOfWord=2271(,) |
602 | ||
9e730a78 RD |
603 | # Register an XPM image for use in autocompletion lists. |
604 | fun void RegisterImage=2405(int type, string xpmData) | |
605 | ||
606 | # Clear all the registered XPM images. | |
607 | fun void ClearRegisteredImages=2408(,) | |
608 | ||
609 | # Retrieve the auto-completion list type-separator character. | |
610 | get int AutoCGetTypeSeparator=2285(,) | |
611 | ||
612 | # Change the type-separator character in the string setting up an auto-completion list. | |
613 | # Default is '?' but can be changed if items contain '?'. | |
614 | set void AutoCSetTypeSeparator=2286(int separatorCharacter,) | |
615 | ||
1e9bafca RD |
616 | # Set the maximum width, in characters, of auto-completion and user lists. |
617 | # Set to 0 to autosize to fit longest item, which is the default. | |
618 | set void AutoCSetMaxWidth=2208(int characterCount,) | |
619 | ||
620 | # Get the maximum width, in characters, of auto-completion and user lists. | |
621 | get int AutoCGetMaxWidth=2209(,) | |
622 | ||
623 | # Set the maximum height, in rows, of auto-completion and user lists. | |
624 | # The default is 5 rows. | |
625 | set void AutoCSetMaxHeight=2210(int rowCount,) | |
626 | ||
627 | # Set the maximum height, in rows, of auto-completion and user lists. | |
628 | get int AutoCGetMaxHeight=2211(,) | |
629 | ||
bfabd11a RD |
630 | # Set the number of spaces used for one level of indentation. |
631 | set void SetIndent=2122(int indentSize,) | |
632 | ||
633 | # Retrieve indentation size. | |
634 | get int GetIndent=2123(,) | |
635 | ||
636 | # Indentation will only use space characters if useTabs is false, otherwise | |
637 | # it will use a combination of tabs and spaces. | |
638 | set void SetUseTabs=2124(bool useTabs,) | |
639 | ||
640 | # Retrieve whether tabs will be used in indentation. | |
641 | get bool GetUseTabs=2125(,) | |
642 | ||
643 | # Change the indentation of a line to a number of columns. | |
644 | set void SetLineIndentation=2126(int line, int indentSize) | |
645 | ||
646 | # Retrieve the number of columns that a line is indented. | |
647 | get int GetLineIndentation=2127(int line,) | |
648 | ||
649 | # Retrieve the position before the first non indentation character on a line. | |
650 | get position GetLineIndentPosition=2128(int line,) | |
651 | ||
d134f170 RD |
652 | # Retrieve the column number of a position, taking tab width into account. |
653 | get int GetColumn=2129(position pos,) | |
654 | ||
655 | # Show or hide the horizontal scroll bar. | |
bfabd11a RD |
656 | set void SetHScrollBar=2130(bool show,) |
657 | ||
d134f170 | 658 | # Is the horizontal scroll bar visible? |
bfabd11a RD |
659 | get bool GetHScrollBar=2131(,) |
660 | ||
d134f170 RD |
661 | # Show or hide indentation guides. |
662 | set void SetIndentationGuides=2132(bool show,) | |
663 | ||
664 | # Are the indentation guides visible? | |
665 | get bool GetIndentationGuides=2133(,) | |
666 | ||
667 | # Set the highlighted indentation guide column. | |
668 | # 0 = no highlighted guide. | |
669 | set void SetHighlightGuide=2134(int column,) | |
670 | ||
671 | # Get the highlighted indentation guide column. | |
672 | get int GetHighlightGuide=2135(,) | |
673 | ||
674 | # Get the position after the last visible characters on a line. | |
675 | get int GetLineEndPosition=2136(int line,) | |
676 | ||
677 | # Get the code page used to interpret the bytes of the document as characters. | |
678 | get int GetCodePage=2137(,) | |
679 | ||
680 | # Get the foreground colour of the caret. | |
681 | get colour GetCaretFore=2138(,) | |
682 | ||
683 | # In palette mode? | |
684 | get bool GetUsePalette=2139(,) | |
685 | ||
686 | # In read-only mode? | |
687 | get bool GetReadOnly=2140(,) | |
688 | ||
689 | # Sets the position of the caret. | |
690 | set void SetCurrentPos=2141(position pos,) | |
691 | ||
692 | # Sets the position that starts the selection - this becomes the anchor. | |
693 | set void SetSelectionStart=2142(position pos,) | |
694 | ||
695 | # Returns the position at the start of the selection. | |
696 | get position GetSelectionStart=2143(,) | |
697 | ||
698 | # Sets the position that ends the selection - this becomes the currentPosition. | |
699 | set void SetSelectionEnd=2144(position pos,) | |
700 | ||
701 | # Returns the position at the end of the selection. | |
702 | get position GetSelectionEnd=2145(,) | |
703 | ||
704 | # Sets the print magnification added to the point size of each style for printing. | |
705 | set void SetPrintMagnification=2146(int magnification,) | |
706 | ||
707 | # Returns the print magnification. | |
708 | get int GetPrintMagnification=2147(,) | |
709 | ||
a834585d | 710 | enu PrintOption=SC_PRINT_ |
d134f170 RD |
711 | # PrintColourMode - use same colours as screen. |
712 | val SC_PRINT_NORMAL=0 | |
713 | # PrintColourMode - invert the light value of each style for printing. | |
714 | val SC_PRINT_INVERTLIGHT=1 | |
715 | # PrintColourMode - force black text on white background for printing. | |
716 | val SC_PRINT_BLACKONWHITE=2 | |
65ec6247 RD |
717 | # PrintColourMode - text stays coloured, but all background is forced to be white for printing. |
718 | val SC_PRINT_COLOURONWHITE=3 | |
719 | # PrintColourMode - only the default-background is forced to be white for printing. | |
720 | val SC_PRINT_COLOURONWHITEDEFAULTBG=4 | |
d134f170 RD |
721 | |
722 | # Modify colours when printing for clearer printed text. | |
723 | set void SetPrintColourMode=2148(int mode,) | |
724 | ||
725 | # Returns the print colour mode. | |
726 | get int GetPrintColourMode=2149(,) | |
727 | ||
a834585d | 728 | enu FindOption=SCFIND_ |
d134f170 RD |
729 | val SCFIND_WHOLEWORD=2 |
730 | val SCFIND_MATCHCASE=4 | |
731 | val SCFIND_WORDSTART=0x00100000 | |
d134f170 | 732 | val SCFIND_REGEXP=0x00200000 |
9e730a78 | 733 | val SCFIND_POSIX=0x00400000 |
d134f170 RD |
734 | |
735 | # Find some text in the document. | |
736 | fun position FindText=2150(int flags, findtext ft) | |
737 | ||
a834585d | 738 | # On Windows, will draw the document into a display context such as a printer. |
8e54aaed | 739 | fun position FormatRange=2151(bool draw, formatrange fr) |
d134f170 | 740 | |
9e730a78 | 741 | # Retrieve the display line at the top of the display. |
d134f170 RD |
742 | get int GetFirstVisibleLine=2152(,) |
743 | ||
744 | # Retrieve the contents of a line. | |
745 | # Returns the length of the line. | |
746 | fun int GetLine=2153(int line, stringresult text) | |
747 | ||
748 | # Returns the number of lines in the document. There is always at least one. | |
749 | get int GetLineCount=2154(,) | |
750 | ||
751 | # Sets the size in pixels of the left margin. | |
65ec6247 | 752 | set void SetMarginLeft=2155(, int pixelWidth) |
d134f170 RD |
753 | |
754 | # Returns the size in pixels of the left margin. | |
755 | get int GetMarginLeft=2156(,) | |
756 | ||
757 | # Sets the size in pixels of the right margin. | |
65ec6247 | 758 | set void SetMarginRight=2157(, int pixelWidth) |
d134f170 RD |
759 | |
760 | # Returns the size in pixels of the right margin. | |
761 | get int GetMarginRight=2158(,) | |
762 | ||
763 | # Is the document different from when it was last saved? | |
764 | get bool GetModify=2159(,) | |
765 | ||
766 | # Select a range of text. | |
767 | fun void SetSel=2160(position start, position end) | |
768 | ||
769 | # Retrieve the selected text. | |
770 | # Return the length of the text. | |
8e54aaed | 771 | fun int GetSelText=2161(, stringresult text) |
d134f170 RD |
772 | |
773 | # Retrieve a range of text. | |
774 | # Return the length of the text. | |
775 | fun int GetTextRange=2162(, textrange tr) | |
776 | ||
777 | # Draw the selection in normal style or with selection highlighted. | |
778 | fun void HideSelection=2163(bool normal,) | |
779 | ||
780 | # Retrieve the x value of the point in the window where a position is displayed. | |
781 | fun int PointXFromPosition=2164(, position pos) | |
782 | ||
783 | # Retrieve the y value of the point in the window where a position is displayed. | |
784 | fun int PointYFromPosition=2165(, position pos) | |
785 | ||
786 | # Retrieve the line containing a position. | |
787 | fun int LineFromPosition=2166(position pos,) | |
788 | ||
789 | # Retrieve the position at the start of a line. | |
8e54aaed | 790 | fun position PositionFromLine=2167(int line,) |
d134f170 RD |
791 | |
792 | # Scroll horizontally and vertically. | |
793 | fun void LineScroll=2168(int columns, int lines) | |
794 | ||
795 | # Ensure the caret is visible. | |
796 | fun void ScrollCaret=2169(,) | |
797 | ||
798 | # Replace the selected text with the argument text. | |
799 | fun void ReplaceSel=2170(, string text) | |
800 | ||
801 | # Set to read only or read write. | |
802 | set void SetReadOnly=2171(bool readOnly,) | |
803 | ||
804 | # Null operation. | |
805 | fun void Null=2172(,) | |
806 | ||
807 | # Will a paste succeed? | |
808 | fun bool CanPaste=2173(,) | |
809 | ||
a834585d | 810 | # Are there any undoable actions in the undo history? |
d134f170 RD |
811 | fun bool CanUndo=2174(,) |
812 | ||
813 | # Delete the undo history. | |
814 | fun void EmptyUndoBuffer=2175(,) | |
815 | ||
816 | # Undo one action in the undo history. | |
817 | fun void Undo=2176(,) | |
818 | ||
819 | # Cut the selection to the clipboard. | |
820 | fun void Cut=2177(,) | |
821 | ||
822 | # Copy the selection to the clipboard. | |
823 | fun void Copy=2178(,) | |
824 | ||
825 | # Paste the contents of the clipboard into the document replacing the selection. | |
826 | fun void Paste=2179(,) | |
827 | ||
828 | # Clear the selection. | |
829 | fun void Clear=2180(,) | |
830 | ||
831 | # Replace the contents of the document with the argument text. | |
832 | fun void SetText=2181(, string text) | |
833 | ||
834 | # Retrieve all the text in the document. | |
835 | # Returns number of characters retrieved. | |
836 | fun int GetText=2182(int length, stringresult text) | |
837 | ||
838 | # Retrieve the number of characters in the document. | |
839 | get int GetTextLength=2183(,) | |
840 | ||
841 | # Retrieve a pointer to a function that processes messages for this Scintilla. | |
842 | get int GetDirectFunction=2184(,) | |
843 | ||
844 | # Retrieve a pointer value to use as the first argument when calling | |
845 | # the function returned by GetDirectFunction. | |
846 | get int GetDirectPointer=2185(,) | |
847 | ||
a834585d | 848 | # Set to overtype (true) or insert mode. |
d134f170 RD |
849 | set void SetOvertype=2186(bool overtype,) |
850 | ||
851 | # Returns true if overtype mode is active otherwise false is returned. | |
852 | get bool GetOvertype=2187(,) | |
853 | ||
a834585d | 854 | # Set the width of the insert mode caret. |
65ec6247 RD |
855 | set void SetCaretWidth=2188(int pixelWidth,) |
856 | ||
a834585d | 857 | # Returns the width of the insert mode caret. |
65ec6247 RD |
858 | get int GetCaretWidth=2189(,) |
859 | ||
860 | # Sets the position that starts the target which is used for updating the | |
861 | # document without affecting the scroll position. | |
862 | set void SetTargetStart=2190(position pos,) | |
863 | ||
864 | # Get the position that starts the target. | |
865 | get position GetTargetStart=2191(,) | |
866 | ||
867 | # Sets the position that ends the target which is used for updating the | |
868 | # document without affecting the scroll position. | |
869 | set void SetTargetEnd=2192(position pos,) | |
870 | ||
871 | # Get the position that ends the target. | |
872 | get position GetTargetEnd=2193(,) | |
873 | ||
874 | # Replace the target text with the argument text. | |
8e54aaed | 875 | # Text is counted so it can contain NULs. |
65ec6247 RD |
876 | # Returns the length of the replacement text. |
877 | fun int ReplaceTarget=2194(int length, string text) | |
878 | ||
879 | # Replace the target text with the argument text after \d processing. | |
8e54aaed | 880 | # Text is counted so it can contain NULs. |
65ec6247 RD |
881 | # Looks for \d where d is between 1 and 9 and replaces these with the strings |
882 | # matched in the last search operation which were surrounded by \( and \). | |
883 | # Returns the length of the replacement text including any change | |
884 | # caused by processing the \d patterns. | |
885 | fun int ReplaceTargetRE=2195(int length, string text) | |
886 | ||
887 | # Search for a counted string in the target and set the target to the found | |
8e54aaed | 888 | # range. Text is counted so it can contain NULs. |
65ec6247 RD |
889 | # Returns length of range or -1 for failure in which case target is not moved. |
890 | fun int SearchInTarget=2197(int length, string text) | |
891 | ||
a834585d | 892 | # Set the search flags used by SearchInTarget. |
65ec6247 RD |
893 | set void SetSearchFlags=2198(int flags,) |
894 | ||
a834585d | 895 | # Get the search flags used by SearchInTarget. |
65ec6247 RD |
896 | get int GetSearchFlags=2199(,) |
897 | ||
bfabd11a RD |
898 | # Show a call tip containing a definition near position pos. |
899 | fun void CallTipShow=2200(position pos, string definition) | |
900 | ||
901 | # Remove the call tip from the screen. | |
902 | fun void CallTipCancel=2201(,) | |
903 | ||
904 | # Is there an active call tip? | |
905 | fun bool CallTipActive=2202(,) | |
906 | ||
907 | # Retrieve the position where the caret was before displaying the call tip. | |
908 | fun position CallTipPosStart=2203(,) | |
909 | ||
910 | # Highlight a segment of the definition. | |
911 | fun void CallTipSetHlt=2204(int start, int end) | |
912 | ||
913 | # Set the background colour for the call tip. | |
914 | set void CallTipSetBack=2205(colour back,) | |
915 | ||
9e730a78 RD |
916 | # Set the foreground colour for the call tip. |
917 | set void CallTipSetFore=2206(colour fore,) | |
918 | ||
919 | # Set the foreground colour for the highlighted part of the call tip. | |
920 | set void CallTipSetForeHlt=2207(colour fore,) | |
921 | ||
bfabd11a RD |
922 | # Find the display line of a document line taking hidden lines into account. |
923 | fun int VisibleFromDocLine=2220(int line,) | |
924 | ||
925 | # Find the document line of a display line taking hidden lines into account. | |
926 | fun int DocLineFromVisible=2221(int lineDisplay,) | |
927 | ||
1e9bafca RD |
928 | # The number of display lines needed to wrap a document line |
929 | fun int WrapCount=2235(int line,) | |
930 | ||
a834585d | 931 | enu FoldLevel=SC_FOLDLEVEL |
bfabd11a RD |
932 | val SC_FOLDLEVELBASE=0x400 |
933 | val SC_FOLDLEVELWHITEFLAG=0x1000 | |
934 | val SC_FOLDLEVELHEADERFLAG=0x2000 | |
9e730a78 RD |
935 | val SC_FOLDLEVELBOXHEADERFLAG=0x4000 |
936 | val SC_FOLDLEVELBOXFOOTERFLAG=0x8000 | |
937 | val SC_FOLDLEVELCONTRACTED=0x10000 | |
938 | val SC_FOLDLEVELUNINDENT=0x20000 | |
bfabd11a RD |
939 | val SC_FOLDLEVELNUMBERMASK=0x0FFF |
940 | ||
941 | # Set the fold level of a line. | |
942 | # This encodes an integer level along with flags indicating whether the | |
943 | # line is a header and whether it is effectively white space. | |
944 | set void SetFoldLevel=2222(int line, int level) | |
945 | ||
946 | # Retrieve the fold level of a line. | |
947 | get int GetFoldLevel=2223(int line,) | |
948 | ||
949 | # Find the last child line of a header line. | |
d134f170 | 950 | get int GetLastChild=2224(int line, int level) |
bfabd11a RD |
951 | |
952 | # Find the parent line of a child line. | |
953 | get int GetFoldParent=2225(int line,) | |
954 | ||
955 | # Make a range of lines visible. | |
956 | fun void ShowLines=2226(int lineStart, int lineEnd) | |
957 | ||
958 | # Make a range of lines invisible. | |
959 | fun void HideLines=2227(int lineStart, int lineEnd) | |
960 | ||
961 | # Is a line visible? | |
962 | get bool GetLineVisible=2228(int line,) | |
963 | ||
964 | # Show the children of a header line. | |
965 | set void SetFoldExpanded=2229(int line, bool expanded) | |
966 | ||
967 | # Is a header line expanded? | |
968 | get bool GetFoldExpanded=2230(int line,) | |
969 | ||
970 | # Switch a header line between expanded and contracted. | |
971 | fun void ToggleFold=2231(int line,) | |
972 | ||
973 | # Ensure a particular line is visible by expanding any header line hiding it. | |
974 | fun void EnsureVisible=2232(int line,) | |
975 | ||
9e730a78 RD |
976 | enu FoldFlag=SC_FOLDFLAG_ |
977 | val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002 | |
978 | val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004 | |
979 | val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008 | |
980 | val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010 | |
981 | val SC_FOLDFLAG_LEVELNUMBERS=0x0040 | |
982 | val SC_FOLDFLAG_BOX=0x0001 | |
983 | ||
984 | # Set some style options for folding. | |
bfabd11a RD |
985 | fun void SetFoldFlags=2233(int flags,) |
986 | ||
65ec6247 RD |
987 | # Ensure a particular line is visible by expanding any header line hiding it. |
988 | # Use the currently set visibility policy to determine which range to display. | |
989 | fun void EnsureVisibleEnforcePolicy=2234(int line,) | |
990 | ||
a834585d | 991 | # Sets whether a tab pressed when caret is within indentation indents. |
65ec6247 RD |
992 | set void SetTabIndents=2260(bool tabIndents,) |
993 | ||
994 | # Does a tab pressed when caret is within indentation indent? | |
995 | get bool GetTabIndents=2261(,) | |
996 | ||
a834585d | 997 | # Sets whether a backspace pressed when caret is within indentation unindents. |
65ec6247 RD |
998 | set void SetBackSpaceUnIndents=2262(bool bsUnIndents,) |
999 | ||
1000 | # Does a backspace pressed when caret is within indentation unindent? | |
1001 | get bool GetBackSpaceUnIndents=2263(,) | |
1002 | ||
1003 | val SC_TIME_FOREVER=10000000 | |
1004 | ||
a834585d | 1005 | # Sets the time the mouse must sit still to generate a mouse dwell event. |
65ec6247 RD |
1006 | set void SetMouseDwellTime=2264(int periodMilliseconds,) |
1007 | ||
a834585d | 1008 | # Retrieve the time the mouse must sit still to generate a mouse dwell event. |
65ec6247 RD |
1009 | get int GetMouseDwellTime=2265(,) |
1010 | ||
a834585d | 1011 | # Get position of start of word. |
1a2fb4cd RD |
1012 | fun int WordStartPosition=2266(position pos, bool onlyWordCharacters) |
1013 | ||
a834585d | 1014 | # Get position of end of word. |
1a2fb4cd RD |
1015 | fun int WordEndPosition=2267(position pos, bool onlyWordCharacters) |
1016 | ||
a834585d | 1017 | enu Wrap=SC_WRAP_ |
1a2fb4cd RD |
1018 | val SC_WRAP_NONE=0 |
1019 | val SC_WRAP_WORD=1 | |
1e9bafca | 1020 | val SC_WRAP_CHAR=2 |
1a2fb4cd | 1021 | |
a834585d | 1022 | # Sets whether text is word wrapped. |
1a2fb4cd RD |
1023 | set void SetWrapMode=2268(int mode,) |
1024 | ||
a834585d | 1025 | # Retrieve whether text is word wrapped. |
1a2fb4cd RD |
1026 | get int GetWrapMode=2269(,) |
1027 | ||
591d01be RD |
1028 | enu WrapVisualFlag=SC_WRAPVISUALFLAG_ |
1029 | val SC_WRAPVISUALFLAG_NONE=0x0000 | |
1030 | val SC_WRAPVISUALFLAG_END=0x0001 | |
1031 | val SC_WRAPVISUALFLAG_START=0x0002 | |
1032 | ||
1033 | # Set the display mode of visual flags for wrapped lines. | |
1034 | set void SetWrapVisualFlags=2460(int wrapVisualFlags,) | |
1035 | ||
1036 | # Retrive the display mode of visual flags for wrapped lines. | |
1037 | get int GetWrapVisualFlags=2461(,) | |
1038 | ||
1039 | enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_ | |
1040 | val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000 | |
1041 | val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001 | |
1042 | val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002 | |
1043 | ||
1044 | # Set the location of visual flags for wrapped lines. | |
1045 | set void SetWrapVisualFlagsLocation=2462(int wrapVisualFlagsLocation,) | |
1046 | ||
1047 | # Retrive the location of visual flags for wrapped lines. | |
1048 | get int GetWrapVisualFlagsLocation=2463(,) | |
1049 | ||
1050 | # Set the start indent for wrapped lines. | |
1051 | set void SetWrapStartIndent=2464(int indent,) | |
1052 | ||
1053 | # Retrive the start indent for wrapped lines. | |
1054 | get int GetWrapStartIndent=2465(,) | |
1055 | ||
a834585d | 1056 | enu LineCache=SC_CACHE_ |
1a2fb4cd RD |
1057 | val SC_CACHE_NONE=0 |
1058 | val SC_CACHE_CARET=1 | |
1059 | val SC_CACHE_PAGE=2 | |
1060 | val SC_CACHE_DOCUMENT=3 | |
1061 | ||
a834585d | 1062 | # Sets the degree of caching of layout information. |
1a2fb4cd RD |
1063 | set void SetLayoutCache=2272(int mode,) |
1064 | ||
a834585d | 1065 | # Retrieve the degree of caching of layout information. |
1a2fb4cd RD |
1066 | get int GetLayoutCache=2273(,) |
1067 | ||
a834585d RD |
1068 | # Sets the document width assumed for scrolling. |
1069 | set void SetScrollWidth=2274(int pixelWidth,) | |
1070 | ||
1071 | # Retrieve the document width assumed for scrolling. | |
1072 | get int GetScrollWidth=2275(,) | |
1073 | ||
1074 | # Measure the pixel width of some text in a particular style. | |
8e54aaed | 1075 | # NUL terminated text argument. |
a834585d RD |
1076 | # Does not handle tab or control characters. |
1077 | fun int TextWidth=2276(int style, string text) | |
1078 | ||
1079 | # Sets the scroll range so that maximum scroll position has | |
1080 | # the last line at the bottom of the view (default). | |
1081 | # Setting this to false allows scrolling one page below the last line. | |
1082 | set void SetEndAtLastLine=2277(bool endAtLastLine,) | |
1083 | ||
1084 | # Retrieve whether the maximum scroll position has the last | |
1085 | # line at the bottom of the view. | |
1e9bafca | 1086 | get bool GetEndAtLastLine=2278(,) |
a834585d RD |
1087 | |
1088 | # Retrieve the height of a particular line of text in pixels. | |
1089 | fun int TextHeight=2279(int line,) | |
1090 | ||
9e730a78 RD |
1091 | # Show or hide the vertical scroll bar. |
1092 | set void SetVScrollBar=2280(bool show,) | |
1093 | ||
1094 | # Is the vertical scroll bar visible? | |
1095 | get bool GetVScrollBar=2281(,) | |
1096 | ||
1097 | # Append a string to the end of the document without changing the selection. | |
1098 | fun void AppendText=2282(int length, string text) | |
1099 | ||
1100 | # Is drawing done in two phases with backgrounds drawn before foregrounds? | |
1101 | get bool GetTwoPhaseDraw=2283(,) | |
1102 | ||
1103 | # In twoPhaseDraw mode, drawing is performed in two phases, first the background | |
1104 | # and then the foreground. This avoids chopping off characters that overlap the next run. | |
1105 | set void SetTwoPhaseDraw=2284(bool twoPhase,) | |
1106 | ||
1107 | # Make the target range start and end be the same as the selection range start and end. | |
1108 | fun void TargetFromSelection=2287(,) | |
1109 | ||
1110 | # Join the lines in the target. | |
1111 | fun void LinesJoin=2288(,) | |
1112 | ||
1113 | # Split the lines in the target into lines that are less wide than pixelWidth | |
1114 | # where possible. | |
1115 | fun void LinesSplit=2289(int pixelWidth,) | |
1116 | ||
1117 | # Set the colours used as a chequerboard pattern in the fold margin | |
1118 | fun void SetFoldMarginColour=2290(bool useSetting, colour back) | |
1119 | fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore) | |
1120 | ||
1121 | ## New messages go here | |
1122 | ||
d134f170 | 1123 | ## Start of key messages |
bfabd11a RD |
1124 | # Move caret down one line. |
1125 | fun void LineDown=2300(,) | |
1126 | ||
1127 | # Move caret down one line extending selection to new caret position. | |
1128 | fun void LineDownExtend=2301(,) | |
1129 | ||
1130 | # Move caret up one line. | |
1131 | fun void LineUp=2302(,) | |
1132 | ||
1133 | # Move caret up one line extending selection to new caret position. | |
1134 | fun void LineUpExtend=2303(,) | |
1135 | ||
1136 | # Move caret left one character. | |
1137 | fun void CharLeft=2304(,) | |
1138 | ||
1139 | # Move caret left one character extending selection to new caret position. | |
1140 | fun void CharLeftExtend=2305(,) | |
1141 | ||
1142 | # Move caret right one character. | |
1143 | fun void CharRight=2306(,) | |
1144 | ||
1145 | # Move caret right one character extending selection to new caret position. | |
1146 | fun void CharRightExtend=2307(,) | |
1147 | ||
1148 | # Move caret left one word. | |
1149 | fun void WordLeft=2308(,) | |
1150 | ||
1151 | # Move caret left one word extending selection to new caret position. | |
1152 | fun void WordLeftExtend=2309(,) | |
1153 | ||
1154 | # Move caret right one word. | |
1155 | fun void WordRight=2310(,) | |
1156 | ||
1157 | # Move caret right one word extending selection to new caret position. | |
1158 | fun void WordRightExtend=2311(,) | |
1159 | ||
1160 | # Move caret to first position on line. | |
1161 | fun void Home=2312(,) | |
1162 | ||
1163 | # Move caret to first position on line extending selection to new caret position. | |
1164 | fun void HomeExtend=2313(,) | |
1165 | ||
1166 | # Move caret to last position on line. | |
1167 | fun void LineEnd=2314(,) | |
1168 | ||
1169 | # Move caret to last position on line extending selection to new caret position. | |
1170 | fun void LineEndExtend=2315(,) | |
1171 | ||
1172 | # Move caret to first position in document. | |
1173 | fun void DocumentStart=2316(,) | |
1174 | ||
1175 | # Move caret to first position in document extending selection to new caret position. | |
1176 | fun void DocumentStartExtend=2317(,) | |
1177 | ||
1178 | # Move caret to last position in document. | |
1179 | fun void DocumentEnd=2318(,) | |
1180 | ||
1181 | # Move caret to last position in document extending selection to new caret position. | |
1182 | fun void DocumentEndExtend=2319(,) | |
1183 | ||
1184 | # Move caret one page up. | |
1185 | fun void PageUp=2320(,) | |
1186 | ||
1187 | # Move caret one page up extending selection to new caret position. | |
1188 | fun void PageUpExtend=2321(,) | |
1189 | ||
1190 | # Move caret one page down. | |
1191 | fun void PageDown=2322(,) | |
1192 | ||
1193 | # Move caret one page down extending selection to new caret position. | |
1194 | fun void PageDownExtend=2323(,) | |
1195 | ||
1196 | # Switch from insert to overtype mode or the reverse. | |
1197 | fun void EditToggleOvertype=2324(,) | |
1198 | ||
1199 | # Cancel any modes such as call tip or auto-completion list display. | |
1200 | fun void Cancel=2325(,) | |
1201 | ||
1202 | # Delete the selection or if no selection, the character before the caret. | |
1203 | fun void DeleteBack=2326(,) | |
1204 | ||
a834585d | 1205 | # If selection is empty or all on one line replace the selection with a tab character. |
bfabd11a RD |
1206 | # If more than one line selected, indent the lines. |
1207 | fun void Tab=2327(,) | |
1208 | ||
1209 | # Dedent the selected lines. | |
1210 | fun void BackTab=2328(,) | |
1211 | ||
1212 | # Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
1213 | fun void NewLine=2329(,) | |
1214 | ||
1215 | # Insert a Form Feed character. | |
1216 | fun void FormFeed=2330(,) | |
1217 | ||
d25f5fbb | 1218 | # Move caret to before first visible character on line. |
bfabd11a RD |
1219 | # If already there move to first character on line. |
1220 | fun void VCHome=2331(,) | |
1221 | ||
1222 | # Like VCHome but extending selection to new caret position. | |
1223 | fun void VCHomeExtend=2332(,) | |
1224 | ||
1225 | # Magnify the displayed text by increasing the sizes by 1 point. | |
1226 | fun void ZoomIn=2333(,) | |
1227 | ||
1228 | # Make the displayed text smaller by decreasing the sizes by 1 point. | |
1229 | fun void ZoomOut=2334(,) | |
1230 | ||
1231 | # Delete the word to the left of the caret. | |
1232 | fun void DelWordLeft=2335(,) | |
1233 | ||
1234 | # Delete the word to the right of the caret. | |
1235 | fun void DelWordRight=2336(,) | |
1236 | ||
1237 | # Cut the line containing the caret. | |
1238 | fun void LineCut=2337(,) | |
1239 | ||
1240 | # Delete the line containing the caret. | |
1241 | fun void LineDelete=2338(,) | |
1242 | ||
1243 | # Switch the current line with the previous. | |
1244 | fun void LineTranspose=2339(,) | |
1245 | ||
9e730a78 RD |
1246 | # Duplicate the current line. |
1247 | fun void LineDuplicate=2404(,) | |
1248 | ||
bfabd11a RD |
1249 | # Transform the selection to lower case. |
1250 | fun void LowerCase=2340(,) | |
1251 | ||
1252 | # Transform the selection to upper case. | |
1253 | fun void UpperCase=2341(,) | |
1254 | ||
1255 | # Scroll the document down, keeping the caret visible. | |
1256 | fun void LineScrollDown=2342(,) | |
1257 | ||
1258 | # Scroll the document up, keeping the caret visible. | |
1259 | fun void LineScrollUp=2343(,) | |
1260 | ||
1a2fb4cd | 1261 | # Delete the selection or if no selection, the character before the caret. |
a834585d | 1262 | # Will not delete the character before at the start of a line. |
1a2fb4cd RD |
1263 | fun void DeleteBackNotLine=2344(,) |
1264 | ||
f114b858 RD |
1265 | # Move caret to first position on display line. |
1266 | fun void HomeDisplay=2345(,) | |
1267 | ||
2b5f62a0 | 1268 | # Move caret to first position on display line extending selection to |
f114b858 RD |
1269 | # new caret position. |
1270 | fun void HomeDisplayExtend=2346(,) | |
1271 | ||
1272 | # Move caret to last position on display line. | |
1273 | fun void LineEndDisplay=2347(,) | |
1274 | ||
2b5f62a0 | 1275 | # Move caret to last position on display line extending selection to new |
f114b858 RD |
1276 | # caret position. |
1277 | fun void LineEndDisplayExtend=2348(,) | |
1278 | ||
9e730a78 RD |
1279 | # These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? |
1280 | # except they behave differently when word-wrap is enabled: | |
1281 | # They go first to the start / end of the display line, like (Home|LineEnd)Display | |
1282 | # The difference is that, the cursor is already at the point, it goes on to the start | |
8e54aaed | 1283 | # or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
9e730a78 RD |
1284 | |
1285 | fun void HomeWrap=2349(,) | |
1286 | fun void HomeWrapExtend=2450(,) | |
1287 | fun void LineEndWrap=2451(,) | |
1288 | fun void LineEndWrapExtend=2452(,) | |
1289 | fun void VCHomeWrap=2453(,) | |
1290 | fun void VCHomeWrapExtend=2454(,) | |
1291 | ||
e14d10b0 RD |
1292 | # Copy the line containing the caret. |
1293 | fun void LineCopy=2455(,) | |
1294 | ||
a834585d | 1295 | # Move the caret inside current view if it's not there already. |
65ec6247 RD |
1296 | fun void MoveCaretInsideView=2401(,) |
1297 | ||
a834585d | 1298 | # How many characters are on a line, not including end of line characters? |
bfabd11a RD |
1299 | fun int LineLength=2350(int line,) |
1300 | ||
1301 | # Highlight the characters at two positions. | |
a834585d | 1302 | fun void BraceHighlight=2351(position pos1, position pos2) |
bfabd11a RD |
1303 | |
1304 | # Highlight the character at a position indicating there is no matching brace. | |
1305 | fun void BraceBadLight=2352(position pos,) | |
1306 | ||
1307 | # Find the position of a matching brace or INVALID_POSITION if no match. | |
1308 | fun position BraceMatch=2353(position pos,) | |
1309 | ||
a834585d | 1310 | # Are the end of line characters visible? |
bfabd11a RD |
1311 | get bool GetViewEOL=2355(,) |
1312 | ||
a834585d | 1313 | # Make the end of line characters visible or invisible. |
bfabd11a RD |
1314 | set void SetViewEOL=2356(bool visible,) |
1315 | ||
1316 | # Retrieve a pointer to the document object. | |
1317 | get int GetDocPointer=2357(,) | |
1318 | ||
1319 | # Change the document object used. | |
8e54aaed | 1320 | set void SetDocPointer=2358(, int pointer) |
bfabd11a RD |
1321 | |
1322 | # Set which document modification events are sent to the container. | |
1323 | set void SetModEventMask=2359(int mask,) | |
1324 | ||
a834585d | 1325 | enu EdgeVisualStyle=EDGE_ |
bfabd11a RD |
1326 | val EDGE_NONE=0 |
1327 | val EDGE_LINE=1 | |
1328 | val EDGE_BACKGROUND=2 | |
1329 | ||
1330 | # Retrieve the column number which text should be kept within. | |
1331 | get int GetEdgeColumn=2360(,) | |
1332 | ||
d25f5fbb RD |
1333 | # Set the column number of the edge. |
1334 | # If text goes past the edge then it is highlighted. | |
bfabd11a RD |
1335 | set void SetEdgeColumn=2361(int column,) |
1336 | ||
1337 | # Retrieve the edge highlight mode. | |
1338 | get int GetEdgeMode=2362(,) | |
1339 | ||
1340 | # The edge may be displayed by a line (EDGE_LINE) or by highlighting text that | |
1341 | # goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
1342 | set void SetEdgeMode=2363(int mode,) | |
1343 | ||
1344 | # Retrieve the colour used in edge indication. | |
1345 | get colour GetEdgeColour=2364(,) | |
1346 | ||
1347 | # Change the colour used in edge indication. | |
1348 | set void SetEdgeColour=2365(colour edgeColour,) | |
1349 | ||
1350 | # Sets the current caret position to be the search anchor. | |
1351 | fun void SearchAnchor=2366(,) | |
1352 | ||
1353 | # Find some text starting at the search anchor. | |
65ec6247 | 1354 | # Does not ensure the selection is visible. |
bfabd11a RD |
1355 | fun int SearchNext=2367(int flags, string text) |
1356 | ||
1357 | # Find some text starting at the search anchor and moving backwards. | |
65ec6247 | 1358 | # Does not ensure the selection is visible. |
bfabd11a RD |
1359 | fun int SearchPrev=2368(int flags, string text) |
1360 | ||
bfabd11a RD |
1361 | # Retrieves the number of lines completely visible. |
1362 | get int LinesOnScreen=2370(,) | |
1363 | ||
1364 | # Set whether a pop up menu is displayed automatically when the user presses | |
1365 | # the wrong mouse button. | |
1366 | fun void UsePopUp=2371(bool allowPopUp,) | |
1367 | ||
a834585d | 1368 | # Is the selection rectangular? The alternative is the more common stream selection. |
bfabd11a RD |
1369 | get bool SelectionIsRectangle=2372(,) |
1370 | ||
d25f5fbb | 1371 | # Set the zoom level. This number of points is added to the size of all fonts. |
bfabd11a RD |
1372 | # It may be positive to magnify or negative to reduce. |
1373 | set void SetZoom=2373(int zoom,) | |
1374 | # Retrieve the zoom level. | |
1375 | get int GetZoom=2374(,) | |
1376 | ||
d25f5fbb | 1377 | # Create a new document object. |
d134f170 RD |
1378 | # Starts with reference count of 1 and not selected into editor. |
1379 | fun int CreateDocument=2375(,) | |
bfabd11a | 1380 | # Extend life of document. |
d134f170 | 1381 | fun void AddRefDocument=2376(, int doc) |
bfabd11a | 1382 | # Release a reference to the document, deleting document if it fades to black. |
d134f170 RD |
1383 | fun void ReleaseDocument=2377(, int doc) |
1384 | ||
1385 | # Get which document modification events are sent to the container. | |
1386 | get int GetModEventMask=2378(,) | |
bfabd11a | 1387 | |
a834585d | 1388 | # Change internal focus flag. |
65ec6247 | 1389 | set void SetFocus=2380(bool focus,) |
a834585d | 1390 | # Get internal focus flag. |
65ec6247 RD |
1391 | get bool GetFocus=2381(,) |
1392 | ||
a834585d | 1393 | # Change error status - 0 = OK. |
65ec6247 | 1394 | set void SetStatus=2382(int statusCode,) |
a834585d | 1395 | # Get error status. |
65ec6247 RD |
1396 | get int GetStatus=2383(,) |
1397 | ||
a834585d | 1398 | # Set whether the mouse is captured when its button is pressed. |
65ec6247 | 1399 | set void SetMouseDownCaptures=2384(bool captures,) |
a834585d | 1400 | # Get whether mouse gets captured. |
65ec6247 RD |
1401 | get bool GetMouseDownCaptures=2385(,) |
1402 | ||
a834585d | 1403 | enu CursorShape=SC_CURSOR |
65ec6247 | 1404 | val SC_CURSORNORMAL=-1 |
9e730a78 | 1405 | val SC_CURSORWAIT=4 |
a834585d | 1406 | # Sets the cursor to one of the SC_CURSOR* values. |
65ec6247 | 1407 | set void SetCursor=2386(int cursorType,) |
a834585d | 1408 | # Get cursor type. |
65ec6247 RD |
1409 | get int GetCursor=2387(,) |
1410 | ||
1a2fb4cd | 1411 | # Change the way control characters are displayed: |
a834585d | 1412 | # If symbol is < 32, keep the drawn way, else, use the given character. |
1a2fb4cd | 1413 | set void SetControlCharSymbol=2388(int symbol,) |
a834585d | 1414 | # Get the way control characters are displayed. |
1a2fb4cd RD |
1415 | get int GetControlCharSymbol=2389(,) |
1416 | ||
a834585d | 1417 | # Move to the previous change in capitalisation. |
65ec6247 | 1418 | fun void WordPartLeft=2390(,) |
a834585d RD |
1419 | # Move to the previous change in capitalisation extending selection |
1420 | # to new caret position. | |
65ec6247 | 1421 | fun void WordPartLeftExtend=2391(,) |
a834585d | 1422 | # Move to the change next in capitalisation. |
65ec6247 | 1423 | fun void WordPartRight=2392(,) |
a834585d RD |
1424 | # Move to the next change in capitalisation extending selection |
1425 | # to new caret position. | |
65ec6247 RD |
1426 | fun void WordPartRightExtend=2393(,) |
1427 | ||
a834585d | 1428 | # Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. |
65ec6247 RD |
1429 | val VISIBLE_SLOP=0x01 |
1430 | val VISIBLE_STRICT=0x04 | |
a834585d RD |
1431 | # Set the way the display area is determined when a particular line |
1432 | # is to be moved to by Find, FindNext, GotoLine, etc. | |
65ec6247 RD |
1433 | fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop) |
1434 | ||
a834585d | 1435 | # Delete back from the current position to the start of the line. |
65ec6247 RD |
1436 | fun void DelLineLeft=2395(,) |
1437 | ||
a834585d | 1438 | # Delete forwards from the current position to the end of the line. |
65ec6247 RD |
1439 | fun void DelLineRight=2396(,) |
1440 | ||
a834585d | 1441 | # Get and Set the xOffset (ie, horizonal scroll position). |
1a2fb4cd RD |
1442 | set void SetXOffset=2397(int newOffset,) |
1443 | get int GetXOffset=2398(,) | |
1444 | ||
8e54aaed | 1445 | # Set the last x chosen value to be the caret x position. |
9e730a78 RD |
1446 | fun void ChooseCaretX=2399(,) |
1447 | ||
bfabd11a | 1448 | # Set the focus to this Scintilla widget. |
a834585d | 1449 | # GTK+ Specific. |
bfabd11a RD |
1450 | fun void GrabFocus=2400(,) |
1451 | ||
a834585d RD |
1452 | enu CaretPolicy = CARET_ |
1453 | # Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. | |
1454 | # If CARET_SLOP is set, we can define a slop value: caretSlop. | |
1455 | # This value defines an unwanted zone (UZ) where the caret is... unwanted. | |
1456 | # This zone is defined as a number of pixels near the vertical margins, | |
1457 | # and as a number of lines near the horizontal margins. | |
1458 | # By keeping the caret away from the edges, it is seen within its context, | |
1459 | # so it is likely that the identifier that the caret is on can be completely seen, | |
1460 | # and that the current line is seen with some of the lines following it which are | |
1461 | # often dependent on that line. | |
1462 | val CARET_SLOP=0x01 | |
1463 | # If CARET_STRICT is set, the policy is enforced... strictly. | |
1464 | # The caret is centred on the display if slop is not set, | |
1465 | # and cannot go in the UZ if slop is set. | |
1466 | val CARET_STRICT=0x04 | |
1467 | # If CARET_JUMPS is set, the display is moved more energetically | |
1468 | # so the caret can move in the same direction longer before the policy is applied again. | |
1469 | val CARET_JUMPS=0x10 | |
1470 | # If CARET_EVEN is not set, instead of having symmetrical UZs, | |
1471 | # the left and bottom UZs are extended up to right and top UZs respectively. | |
1472 | # This way, we favour the displaying of useful information: the begining of lines, | |
1473 | # where most code reside, and the lines after the caret, eg. the body of a function. | |
1474 | val CARET_EVEN=0x08 | |
1475 | ||
1476 | # Set the way the caret is kept visible when going sideway. | |
1477 | # The exclusion zone is given in pixels. | |
1478 | fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop) | |
1479 | ||
1480 | # Set the way the line the caret is on is kept visible. | |
1481 | # The exclusion zone is given in lines. | |
1482 | fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop) | |
1483 | ||
9e730a78 RD |
1484 | # Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). |
1485 | set void SetPrintWrapMode=2406(int mode,) | |
1486 | ||
8e54aaed | 1487 | # Is printing line wrapped? |
9e730a78 RD |
1488 | get int GetPrintWrapMode=2407(,) |
1489 | ||
1490 | # Set a fore colour for active hotspots. | |
1491 | set void SetHotspotActiveFore=2410(bool useSetting, colour fore) | |
1492 | ||
1493 | # Set a back colour for active hotspots. | |
1494 | set void SetHotspotActiveBack=2411(bool useSetting, colour back) | |
1495 | ||
1496 | # Enable / Disable underlining active hotspots. | |
1497 | set void SetHotspotActiveUnderline=2412(bool underline,) | |
1498 | ||
8e54aaed RD |
1499 | # Limit hotspots to single line so hotspots on two lines don't merge. |
1500 | set void SetHotspotSingleLine=2421(bool singleLine,) | |
1501 | ||
1502 | # Move caret between paragraphs (delimited by empty lines). | |
9e730a78 RD |
1503 | fun void ParaDown=2413(,) |
1504 | fun void ParaDownExtend=2414(,) | |
1505 | fun void ParaUp=2415(,) | |
1506 | fun void ParaUpExtend=2416(,) | |
1507 | ||
e14d10b0 RD |
1508 | # Given a valid document position, return the previous position taking code |
1509 | # page into account. Returns 0 if passed 0. | |
1510 | fun position PositionBefore=2417(position pos,) | |
1511 | ||
1512 | # Given a valid document position, return the next position taking code | |
1513 | # page into account. Maximum value returned is the last position in the document. | |
1514 | fun position PositionAfter=2418(position pos,) | |
1515 | ||
1516 | # Copy a range of text to the clipboard. Positions are clipped into the document. | |
1517 | fun void CopyRange=2419(position start, position end) | |
1518 | ||
1519 | # Copy argument text to the clipboard. | |
1520 | fun void CopyText=2420(int length, string text) | |
1521 | ||
8e54aaed RD |
1522 | # Selection modes |
1523 | enu SelectionMode=SC_SEL_ | |
1524 | val SC_SEL_STREAM=0 | |
1525 | val SC_SEL_RECTANGLE=1 | |
1526 | val SC_SEL_LINES=2 | |
1527 | ||
1528 | # Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or | |
1529 | # by lines (SC_SEL_LINES). | |
1530 | set void SetSelectionMode=2422(int mode,) | |
1531 | ||
1532 | # Get the mode of the current selection. | |
1533 | get int GetSelectionMode=2423(,) | |
1534 | ||
1535 | # Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). | |
1536 | fun position GetLineSelStartPosition=2424(int line,) | |
1537 | ||
1538 | # Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). | |
1539 | fun position GetLineSelEndPosition=2425(int line,) | |
1540 | ||
1541 | ## RectExtended rectangular selection moves | |
1542 | # Move caret down one line, extending rectangular selection to new caret position. | |
1543 | fun void LineDownRectExtend=2426(,) | |
1544 | ||
1545 | # Move caret up one line, extending rectangular selection to new caret position. | |
1546 | fun void LineUpRectExtend=2427(,) | |
1547 | ||
1548 | # Move caret left one character, extending rectangular selection to new caret position. | |
1549 | fun void CharLeftRectExtend=2428(,) | |
1550 | ||
1551 | # Move caret right one character, extending rectangular selection to new caret position. | |
1552 | fun void CharRightRectExtend=2429(,) | |
1553 | ||
1554 | # Move caret to first position on line, extending rectangular selection to new caret position. | |
1555 | fun void HomeRectExtend=2430(,) | |
1556 | ||
1557 | # Move caret to before first visible character on line. | |
1558 | # If already there move to first character on line. | |
1559 | # In either case, extend rectangular selection to new caret position. | |
1560 | fun void VCHomeRectExtend=2431(,) | |
1561 | ||
1562 | # Move caret to last position on line, extending rectangular selection to new caret position. | |
1563 | fun void LineEndRectExtend=2432(,) | |
1564 | ||
1565 | # Move caret one page up, extending rectangular selection to new caret position. | |
1566 | fun void PageUpRectExtend=2433(,) | |
1567 | ||
1568 | # Move caret one page down, extending rectangular selection to new caret position. | |
1569 | fun void PageDownRectExtend=2434(,) | |
1570 | ||
1571 | ||
1572 | # Move caret to top of page, or one page up if already at top of page. | |
1573 | fun void StutteredPageUp=2435(,) | |
1574 | ||
1575 | # Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
1576 | fun void StutteredPageUpExtend=2436(,) | |
1577 | ||
1578 | # Move caret to bottom of page, or one page down if already at bottom of page. | |
1579 | fun void StutteredPageDown=2437(,) | |
1580 | ||
1581 | # Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
1582 | fun void StutteredPageDownExtend=2438(,) | |
1583 | ||
1584 | ||
1585 | # Move caret left one word, position cursor at end of word. | |
1586 | fun void WordLeftEnd=2439(,) | |
1587 | ||
1588 | # Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
1589 | fun void WordLeftEndExtend=2440(,) | |
1590 | ||
1591 | # Move caret right one word, position cursor at end of word. | |
1592 | fun void WordRightEnd=2441(,) | |
1593 | ||
1594 | # Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
1595 | fun void WordRightEndExtend=2442(,) | |
1596 | ||
1597 | # Set the set of characters making up whitespace for when moving or selecting by word. | |
1598 | # Should be called after SetWordChars. | |
1599 | set void SetWhitespaceChars=2443(, string characters) | |
1600 | ||
1601 | # Reset the set of characters for whitespace and word characters to the defaults. | |
1602 | fun void SetCharsDefault=2444(,) | |
1603 | ||
1604 | # Get currently selected item position in the auto-completion list | |
1605 | fun int AutoCGetCurrent=2445(,) | |
1606 | ||
591d01be RD |
1607 | # Enlarge the document to a particular size of text bytes. |
1608 | fun void Allocate=2446(int bytes,) | |
1609 | ||
a33203cb RD |
1610 | # Returns the target converted to UTF8. |
1611 | # Return the length in bytes. | |
1612 | fun int TargetAsUTF8=2447(, stringresult s) | |
1613 | ||
1614 | # Set the length of the utf8 argument for calling EncodedFromUTF8. | |
1e9bafca | 1615 | # Set to -1 and the string will be measured to the first nul. |
a33203cb RD |
1616 | fun void SetLengthForEncode=2448(int bytes,) |
1617 | ||
1618 | # Translates a UTF8 string into the document encoding. | |
1619 | # Return the length of the result in bytes. | |
1620 | # On error return 0. | |
1621 | fun int EncodedFromUTF8=2449(string utf8, stringresult encoded) | |
1622 | ||
1e9bafca | 1623 | # Find the position of a column on a line taking into account tabs and |
a33203cb RD |
1624 | # multi-byte characters. If beyond end of line, return line end position. |
1625 | fun int FindColumn=2456(int line, int column) | |
1626 | ||
1e9bafca RD |
1627 | # Can the caret preferred x position only be changed by explicit movement commands? |
1628 | get bool GetCaretSticky=2457(,) | |
1629 | ||
1630 | # Stop the caret preferred x position changing when the user types. | |
1631 | set void SetCaretSticky=2458(bool useCaretStickyBehaviour,) | |
1632 | ||
1633 | # Switch between sticky and non-sticky: meant to be bound to a key. | |
1634 | fun void ToggleCaretSticky=2459(,) | |
1635 | ||
1636 | # Enable/Disable convert-on-paste for line endings | |
1637 | set void SetPasteConvertEndings=2467(bool convert,) | |
1638 | ||
1639 | # Get convert-on-paste setting | |
1640 | get bool GetPasteConvertEndings=2468(,) | |
1641 | ||
1642 | # Duplicate the selection. If selection empty duplicate the line containing the caret. | |
1643 | fun void SelectionDuplicate=2469(,) | |
1644 | ||
bfabd11a RD |
1645 | # Start notifying the container of all key presses and commands. |
1646 | fun void StartRecord=3001(,) | |
1647 | ||
1648 | # Stop notifying the container of all key presses and commands. | |
1649 | fun void StopRecord=3002(,) | |
1650 | ||
d25f5fbb | 1651 | # Set the lexing language of the document. |
bfabd11a RD |
1652 | set void SetLexer=4001(int lexer,) |
1653 | ||
d25f5fbb | 1654 | # Retrieve the lexing language of the document. |
bfabd11a RD |
1655 | get int GetLexer=4002(,) |
1656 | ||
1657 | # Colourise a segment of the document using the current lexing language. | |
1658 | fun void Colourise=4003(position start, position end) | |
1659 | ||
1660 | # Set up a value that may be used by a lexer for some optional feature. | |
1661 | set void SetProperty=4004(string key, string value) | |
1662 | ||
88a8b04e RD |
1663 | # Maximum value of keywordSet parameter of SetKeyWords. |
1664 | val KEYWORDSET_MAX=8 | |
1665 | ||
bfabd11a RD |
1666 | # Set up the key words used by the lexer. |
1667 | set void SetKeyWords=4005(int keywordSet, string keyWords) | |
1668 | ||
65ec6247 RD |
1669 | # Set the lexing language of the document based on string name. |
1670 | set void SetLexerLanguage=4006(, string language) | |
1671 | ||
8e54aaed | 1672 | # Load a lexer library (dll / so). |
9e730a78 RD |
1673 | fun void LoadLexerLibrary=4007(, string path) |
1674 | ||
1e9bafca RD |
1675 | # Retrieve a "property" value previously set with SetProperty. |
1676 | fun int GetProperty=4008(string key, stringresult buf) | |
1677 | ||
1678 | # Retrieve a "property" value previously set with SetProperty, | |
1679 | # with "$()" variable replacement on returned buffer. | |
1680 | fun int GetPropertyExpanded=4009(string key, stringresult buf) | |
1681 | ||
1682 | # Retrieve a "property" value previously set with SetProperty, | |
1683 | # interpreted as an int AFTER any "$()" variable replacement. | |
1684 | get int GetPropertyInt=4010(string key,) | |
1685 | ||
1686 | # Retrieve the number of bits the current lexer needs for styling. | |
1687 | get int GetStyleBitsNeeded=4011(,) | |
1688 | ||
d134f170 | 1689 | # Notifications |
a834585d | 1690 | # Type of modification and the action which caused the modification. |
d134f170 RD |
1691 | # These are defined as a bit mask to make it easy to specify which notifications are wanted. |
1692 | # One bit is set from each of SC_MOD_* and SC_PERFORMED_*. | |
a834585d | 1693 | enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_LAST |
bfabd11a RD |
1694 | val SC_MOD_INSERTTEXT=0x1 |
1695 | val SC_MOD_DELETETEXT=0x2 | |
1696 | val SC_MOD_CHANGESTYLE=0x4 | |
1697 | val SC_MOD_CHANGEFOLD=0x8 | |
1698 | val SC_PERFORMED_USER=0x10 | |
1699 | val SC_PERFORMED_UNDO=0x20 | |
1700 | val SC_PERFORMED_REDO=0x40 | |
1e9bafca | 1701 | val SC_MULTISTEPUNDOREDO=0x80 |
bfabd11a RD |
1702 | val SC_LASTSTEPINUNDOREDO=0x100 |
1703 | val SC_MOD_CHANGEMARKER=0x200 | |
1704 | val SC_MOD_BEFOREINSERT=0x400 | |
1705 | val SC_MOD_BEFOREDELETE=0x800 | |
1e9bafca RD |
1706 | val SC_MULTILINEUNDOREDO=0x1000 |
1707 | val SC_MODEVENTMASKALL=0x1FFF | |
d134f170 RD |
1708 | |
1709 | # For compatibility, these go through the COMMAND notification rather than NOTIFY | |
a834585d RD |
1710 | # and should have had exactly the same values as the EN_* constants. |
1711 | # Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_* | |
1712 | # As clients depend on these constants, this will not be changed. | |
d134f170 RD |
1713 | val SCEN_CHANGE=768 |
1714 | val SCEN_SETFOCUS=512 | |
1715 | val SCEN_KILLFOCUS=256 | |
1716 | ||
a834585d RD |
1717 | # Symbolic key codes and modifier flags. |
1718 | # ASCII and other printable characters below 256. | |
1719 | # Extended keys above 300. | |
d134f170 | 1720 | |
a834585d | 1721 | enu Keys=SCK_ |
d134f170 RD |
1722 | val SCK_DOWN=300 |
1723 | val SCK_UP=301 | |
1724 | val SCK_LEFT=302 | |
1725 | val SCK_RIGHT=303 | |
1726 | val SCK_HOME=304 | |
1727 | val SCK_END=305 | |
1728 | val SCK_PRIOR=306 | |
1729 | val SCK_NEXT=307 | |
1730 | val SCK_DELETE=308 | |
1731 | val SCK_INSERT=309 | |
1732 | val SCK_ESCAPE=7 | |
1733 | val SCK_BACK=8 | |
1734 | val SCK_TAB=9 | |
1735 | val SCK_RETURN=13 | |
1736 | val SCK_ADD=310 | |
1737 | val SCK_SUBTRACT=311 | |
1738 | val SCK_DIVIDE=312 | |
1739 | ||
a834585d | 1740 | enu KeyMod=SCMOD_ |
1e9bafca | 1741 | val SCMOD_NORM=0 |
d134f170 RD |
1742 | val SCMOD_SHIFT=1 |
1743 | val SCMOD_CTRL=2 | |
1744 | val SCMOD_ALT=4 | |
bfabd11a RD |
1745 | |
1746 | ################################################ | |
d134f170 | 1747 | # For SciLexer.h |
a834585d | 1748 | enu Lexer=SCLEX_ |
bfabd11a RD |
1749 | val SCLEX_CONTAINER=0 |
1750 | val SCLEX_NULL=1 | |
1751 | val SCLEX_PYTHON=2 | |
1752 | val SCLEX_CPP=3 | |
1753 | val SCLEX_HTML=4 | |
1754 | val SCLEX_XML=5 | |
1755 | val SCLEX_PERL=6 | |
1756 | val SCLEX_SQL=7 | |
1757 | val SCLEX_VB=8 | |
1758 | val SCLEX_PROPERTIES=9 | |
1759 | val SCLEX_ERRORLIST=10 | |
1760 | val SCLEX_MAKEFILE=11 | |
1761 | val SCLEX_BATCH=12 | |
1762 | val SCLEX_XCODE=13 | |
1763 | val SCLEX_LATEX=14 | |
d134f170 RD |
1764 | val SCLEX_LUA=15 |
1765 | val SCLEX_DIFF=16 | |
65ec6247 RD |
1766 | val SCLEX_CONF=17 |
1767 | val SCLEX_PASCAL=18 | |
1768 | val SCLEX_AVE=19 | |
1769 | val SCLEX_ADA=20 | |
1770 | val SCLEX_LISP=21 | |
1771 | val SCLEX_RUBY=22 | |
1772 | val SCLEX_EIFFEL=23 | |
1773 | val SCLEX_EIFFELKW=24 | |
1774 | val SCLEX_TCL=25 | |
b8b0e402 | 1775 | val SCLEX_NNCRONTAB=26 |
1a2fb4cd RD |
1776 | val SCLEX_BULLANT=27 |
1777 | val SCLEX_VBSCRIPT=28 | |
1a2fb4cd RD |
1778 | val SCLEX_BAAN=31 |
1779 | val SCLEX_MATLAB=32 | |
a834585d | 1780 | val SCLEX_SCRIPTOL=33 |
9e730a78 RD |
1781 | val SCLEX_ASM=34 |
1782 | val SCLEX_CPPNOCASE=35 | |
1783 | val SCLEX_FORTRAN=36 | |
1784 | val SCLEX_F77=37 | |
1785 | val SCLEX_CSS=38 | |
1786 | val SCLEX_POV=39 | |
e14d10b0 RD |
1787 | val SCLEX_LOUT=40 |
1788 | val SCLEX_ESCRIPT=41 | |
88a8b04e RD |
1789 | val SCLEX_PS=42 |
1790 | val SCLEX_NSIS=43 | |
1791 | val SCLEX_MMIXAL=44 | |
8e54aaed RD |
1792 | val SCLEX_CLW=45 |
1793 | val SCLEX_CLWNOCASE=46 | |
1794 | val SCLEX_LOT=47 | |
1795 | val SCLEX_YAML=48 | |
1796 | val SCLEX_TEX=49 | |
1797 | val SCLEX_METAPOST=50 | |
1798 | val SCLEX_POWERBASIC=51 | |
1799 | val SCLEX_FORTH=52 | |
1800 | val SCLEX_ERLANG=53 | |
1801 | val SCLEX_OCTAVE=54 | |
591d01be RD |
1802 | val SCLEX_MSSQL=55 |
1803 | val SCLEX_VERILOG=56 | |
1804 | val SCLEX_KIX=57 | |
1805 | val SCLEX_GUI4CLI=58 | |
1806 | val SCLEX_SPECMAN=59 | |
1807 | val SCLEX_AU3=60 | |
1808 | val SCLEX_APDL=61 | |
1809 | val SCLEX_BASH=62 | |
a33203cb RD |
1810 | val SCLEX_ASN1=63 |
1811 | val SCLEX_VHDL=64 | |
1e9bafca RD |
1812 | val SCLEX_CAML=65 |
1813 | val SCLEX_BLITZBASIC=66 | |
1814 | val SCLEX_PUREBASIC=67 | |
1815 | val SCLEX_HASKELL=68 | |
1816 | val SCLEX_PHPSCRIPT=69 | |
1817 | val SCLEX_TADS3=70 | |
1818 | val SCLEX_REBOL=71 | |
1819 | val SCLEX_SMALLTALK=72 | |
1820 | val SCLEX_FLAGSHIP=73 | |
1821 | val SCLEX_CSOUND=74 | |
1822 | val SCLEX_FREEBASIC=75 | |
1a2fb4cd | 1823 | |
5be7e07a RD |
1824 | # These are deprecated, STC_LEX_HTML should be used instead. |
1825 | val SCLEX_ASP=29 | |
1826 | val SCLEX_PHP=30 | |
1827 | ||
1828 | ||
65ec6247 RD |
1829 | # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a |
1830 | # value assigned in sequence from SCLEX_AUTOMATIC+1. | |
1831 | val SCLEX_AUTOMATIC=1000 | |
d134f170 | 1832 | # Lexical states for SCLEX_PYTHON |
a834585d | 1833 | lex Python=SCLEX_PYTHON SCE_P_ |
bfabd11a RD |
1834 | val SCE_P_DEFAULT=0 |
1835 | val SCE_P_COMMENTLINE=1 | |
1836 | val SCE_P_NUMBER=2 | |
1837 | val SCE_P_STRING=3 | |
1838 | val SCE_P_CHARACTER=4 | |
1839 | val SCE_P_WORD=5 | |
1840 | val SCE_P_TRIPLE=6 | |
1841 | val SCE_P_TRIPLEDOUBLE=7 | |
1842 | val SCE_P_CLASSNAME=8 | |
1843 | val SCE_P_DEFNAME=9 | |
1844 | val SCE_P_OPERATOR=10 | |
1845 | val SCE_P_IDENTIFIER=11 | |
1846 | val SCE_P_COMMENTBLOCK=12 | |
1847 | val SCE_P_STRINGEOL=13 | |
1e9bafca RD |
1848 | val SCE_P_WORD2=14 |
1849 | val SCE_P_DECORATOR=15 | |
1a2fb4cd | 1850 | # Lexical states for SCLEX_CPP |
a834585d | 1851 | lex Cpp=SCLEX_CPP SCE_C_ |
a834585d RD |
1852 | lex Pascal=SCLEX_PASCAL SCE_C_ |
1853 | lex TCL=SCLEX_TCL SCE_C_ | |
1854 | lex BullAnt=SCLEX_BULLANT SCE_C_ | |
bfabd11a RD |
1855 | val SCE_C_DEFAULT=0 |
1856 | val SCE_C_COMMENT=1 | |
1857 | val SCE_C_COMMENTLINE=2 | |
1858 | val SCE_C_COMMENTDOC=3 | |
1859 | val SCE_C_NUMBER=4 | |
1860 | val SCE_C_WORD=5 | |
1861 | val SCE_C_STRING=6 | |
1862 | val SCE_C_CHARACTER=7 | |
1863 | val SCE_C_UUID=8 | |
1864 | val SCE_C_PREPROCESSOR=9 | |
1865 | val SCE_C_OPERATOR=10 | |
1866 | val SCE_C_IDENTIFIER=11 | |
1867 | val SCE_C_STRINGEOL=12 | |
d134f170 | 1868 | val SCE_C_VERBATIM=13 |
65ec6247 RD |
1869 | val SCE_C_REGEX=14 |
1870 | val SCE_C_COMMENTLINEDOC=15 | |
1871 | val SCE_C_WORD2=16 | |
b8b0e402 RD |
1872 | val SCE_C_COMMENTDOCKEYWORD=17 |
1873 | val SCE_C_COMMENTDOCKEYWORDERROR=18 | |
e14d10b0 | 1874 | val SCE_C_GLOBALCLASS=19 |
d134f170 | 1875 | # Lexical states for SCLEX_HTML, SCLEX_XML |
a834585d RD |
1876 | lex HTML=SCLEX_HTML SCE_H |
1877 | lex XML=SCLEX_XML SCE_H | |
1878 | lex ASP=SCLEX_ASP SCE_H | |
1879 | lex PHP=SCLEX_PHP SCE_H | |
bfabd11a RD |
1880 | val SCE_H_DEFAULT=0 |
1881 | val SCE_H_TAG=1 | |
1882 | val SCE_H_TAGUNKNOWN=2 | |
1883 | val SCE_H_ATTRIBUTE=3 | |
1884 | val SCE_H_ATTRIBUTEUNKNOWN=4 | |
1885 | val SCE_H_NUMBER=5 | |
1886 | val SCE_H_DOUBLESTRING=6 | |
1887 | val SCE_H_SINGLESTRING=7 | |
1888 | val SCE_H_OTHER=8 | |
1889 | val SCE_H_COMMENT=9 | |
1890 | val SCE_H_ENTITY=10 | |
d134f170 | 1891 | # XML and ASP |
bfabd11a RD |
1892 | val SCE_H_TAGEND=11 |
1893 | val SCE_H_XMLSTART=12 | |
1894 | val SCE_H_XMLEND=13 | |
1895 | val SCE_H_SCRIPT=14 | |
1896 | val SCE_H_ASP=15 | |
1897 | val SCE_H_ASPAT=16 | |
d134f170 RD |
1898 | val SCE_H_CDATA=17 |
1899 | val SCE_H_QUESTION=18 | |
1900 | # More HTML | |
1901 | val SCE_H_VALUE=19 | |
65ec6247 RD |
1902 | # X-Code |
1903 | val SCE_H_XCCOMMENT=20 | |
1904 | # SGML | |
b8b0e402 RD |
1905 | val SCE_H_SGML_DEFAULT=21 |
1906 | val SCE_H_SGML_COMMAND=22 | |
1907 | val SCE_H_SGML_1ST_PARAM=23 | |
1908 | val SCE_H_SGML_DOUBLESTRING=24 | |
1909 | val SCE_H_SGML_SIMPLESTRING=25 | |
1910 | val SCE_H_SGML_ERROR=26 | |
1911 | val SCE_H_SGML_SPECIAL=27 | |
1912 | val SCE_H_SGML_ENTITY=28 | |
1913 | val SCE_H_SGML_COMMENT=29 | |
1914 | val SCE_H_SGML_1ST_PARAM_COMMENT=30 | |
1915 | val SCE_H_SGML_BLOCK_DEFAULT=31 | |
d134f170 | 1916 | # Embedded Javascript |
bfabd11a RD |
1917 | val SCE_HJ_START=40 |
1918 | val SCE_HJ_DEFAULT=41 | |
1919 | val SCE_HJ_COMMENT=42 | |
1920 | val SCE_HJ_COMMENTLINE=43 | |
1921 | val SCE_HJ_COMMENTDOC=44 | |
1922 | val SCE_HJ_NUMBER=45 | |
1923 | val SCE_HJ_WORD=46 | |
1924 | val SCE_HJ_KEYWORD=47 | |
1925 | val SCE_HJ_DOUBLESTRING=48 | |
1926 | val SCE_HJ_SINGLESTRING=49 | |
1927 | val SCE_HJ_SYMBOLS=50 | |
1928 | val SCE_HJ_STRINGEOL=51 | |
65ec6247 | 1929 | val SCE_HJ_REGEX=52 |
d134f170 | 1930 | # ASP Javascript |
bfabd11a RD |
1931 | val SCE_HJA_START=55 |
1932 | val SCE_HJA_DEFAULT=56 | |
1933 | val SCE_HJA_COMMENT=57 | |
1934 | val SCE_HJA_COMMENTLINE=58 | |
1935 | val SCE_HJA_COMMENTDOC=59 | |
1936 | val SCE_HJA_NUMBER=60 | |
1937 | val SCE_HJA_WORD=61 | |
1938 | val SCE_HJA_KEYWORD=62 | |
1939 | val SCE_HJA_DOUBLESTRING=63 | |
1940 | val SCE_HJA_SINGLESTRING=64 | |
1941 | val SCE_HJA_SYMBOLS=65 | |
1942 | val SCE_HJA_STRINGEOL=66 | |
65ec6247 | 1943 | val SCE_HJA_REGEX=67 |
d134f170 | 1944 | # Embedded VBScript |
bfabd11a RD |
1945 | val SCE_HB_START=70 |
1946 | val SCE_HB_DEFAULT=71 | |
1947 | val SCE_HB_COMMENTLINE=72 | |
1948 | val SCE_HB_NUMBER=73 | |
1949 | val SCE_HB_WORD=74 | |
1950 | val SCE_HB_STRING=75 | |
1951 | val SCE_HB_IDENTIFIER=76 | |
1952 | val SCE_HB_STRINGEOL=77 | |
d134f170 | 1953 | # ASP VBScript |
bfabd11a RD |
1954 | val SCE_HBA_START=80 |
1955 | val SCE_HBA_DEFAULT=81 | |
1956 | val SCE_HBA_COMMENTLINE=82 | |
1957 | val SCE_HBA_NUMBER=83 | |
1958 | val SCE_HBA_WORD=84 | |
1959 | val SCE_HBA_STRING=85 | |
1960 | val SCE_HBA_IDENTIFIER=86 | |
1961 | val SCE_HBA_STRINGEOL=87 | |
d134f170 | 1962 | # Embedded Python |
bfabd11a RD |
1963 | val SCE_HP_START=90 |
1964 | val SCE_HP_DEFAULT=91 | |
1965 | val SCE_HP_COMMENTLINE=92 | |
1966 | val SCE_HP_NUMBER=93 | |
1967 | val SCE_HP_STRING=94 | |
1968 | val SCE_HP_CHARACTER=95 | |
1969 | val SCE_HP_WORD=96 | |
1970 | val SCE_HP_TRIPLE=97 | |
1971 | val SCE_HP_TRIPLEDOUBLE=98 | |
1972 | val SCE_HP_CLASSNAME=99 | |
1973 | val SCE_HP_DEFNAME=100 | |
1974 | val SCE_HP_OPERATOR=101 | |
1975 | val SCE_HP_IDENTIFIER=102 | |
591d01be RD |
1976 | # PHP |
1977 | val SCE_HPHP_COMPLEX_VARIABLE=104 | |
d134f170 | 1978 | # ASP Python |
bfabd11a RD |
1979 | val SCE_HPA_START=105 |
1980 | val SCE_HPA_DEFAULT=106 | |
1981 | val SCE_HPA_COMMENTLINE=107 | |
1982 | val SCE_HPA_NUMBER=108 | |
1983 | val SCE_HPA_STRING=109 | |
1984 | val SCE_HPA_CHARACTER=110 | |
1985 | val SCE_HPA_WORD=111 | |
1986 | val SCE_HPA_TRIPLE=112 | |
1987 | val SCE_HPA_TRIPLEDOUBLE=113 | |
1988 | val SCE_HPA_CLASSNAME=114 | |
1989 | val SCE_HPA_DEFNAME=115 | |
1990 | val SCE_HPA_OPERATOR=116 | |
1991 | val SCE_HPA_IDENTIFIER=117 | |
d134f170 RD |
1992 | # PHP |
1993 | val SCE_HPHP_DEFAULT=118 | |
1994 | val SCE_HPHP_HSTRING=119 | |
1995 | val SCE_HPHP_SIMPLESTRING=120 | |
1996 | val SCE_HPHP_WORD=121 | |
1997 | val SCE_HPHP_NUMBER=122 | |
1998 | val SCE_HPHP_VARIABLE=123 | |
1999 | val SCE_HPHP_COMMENT=124 | |
2000 | val SCE_HPHP_COMMENTLINE=125 | |
65ec6247 RD |
2001 | val SCE_HPHP_HSTRING_VARIABLE=126 |
2002 | val SCE_HPHP_OPERATOR=127 | |
d134f170 | 2003 | # Lexical states for SCLEX_PERL |
a834585d | 2004 | lex Perl=SCLEX_PERL SCE_PL_ |
bfabd11a | 2005 | val SCE_PL_DEFAULT=0 |
65ec6247 | 2006 | val SCE_PL_ERROR=1 |
bfabd11a RD |
2007 | val SCE_PL_COMMENTLINE=2 |
2008 | val SCE_PL_POD=3 | |
2009 | val SCE_PL_NUMBER=4 | |
2010 | val SCE_PL_WORD=5 | |
2011 | val SCE_PL_STRING=6 | |
2012 | val SCE_PL_CHARACTER=7 | |
2013 | val SCE_PL_PUNCTUATION=8 | |
2014 | val SCE_PL_PREPROCESSOR=9 | |
2015 | val SCE_PL_OPERATOR=10 | |
2016 | val SCE_PL_IDENTIFIER=11 | |
2017 | val SCE_PL_SCALAR=12 | |
2018 | val SCE_PL_ARRAY=13 | |
2019 | val SCE_PL_HASH=14 | |
2020 | val SCE_PL_SYMBOLTABLE=15 | |
1e9bafca | 2021 | val SCE_PL_VARIABLE_INDEXER=16 |
bfabd11a RD |
2022 | val SCE_PL_REGEX=17 |
2023 | val SCE_PL_REGSUBST=18 | |
2024 | val SCE_PL_LONGQUOTE=19 | |
2025 | val SCE_PL_BACKTICKS=20 | |
2026 | val SCE_PL_DATASECTION=21 | |
65ec6247 RD |
2027 | val SCE_PL_HERE_DELIM=22 |
2028 | val SCE_PL_HERE_Q=23 | |
2029 | val SCE_PL_HERE_QQ=24 | |
2030 | val SCE_PL_HERE_QX=25 | |
2031 | val SCE_PL_STRING_Q=26 | |
2032 | val SCE_PL_STRING_QQ=27 | |
2033 | val SCE_PL_STRING_QX=28 | |
2034 | val SCE_PL_STRING_QR=29 | |
2035 | val SCE_PL_STRING_QW=30 | |
1e9bafca RD |
2036 | val SCE_PL_POD_VERB=31 |
2037 | # Lexical states for SCLEX_RUBY | |
2038 | lex Ruby=SCLEX_RUBY SCE_RB_ | |
2039 | val SCE_RB_DEFAULT=0 | |
2040 | val SCE_RB_ERROR=1 | |
2041 | val SCE_RB_COMMENTLINE=2 | |
2042 | val SCE_RB_POD=3 | |
2043 | val SCE_RB_NUMBER=4 | |
2044 | val SCE_RB_WORD=5 | |
2045 | val SCE_RB_STRING=6 | |
2046 | val SCE_RB_CHARACTER=7 | |
2047 | val SCE_RB_CLASSNAME=8 | |
2048 | val SCE_RB_DEFNAME=9 | |
2049 | val SCE_RB_OPERATOR=10 | |
2050 | val SCE_RB_IDENTIFIER=11 | |
2051 | val SCE_RB_REGEX=12 | |
2052 | val SCE_RB_GLOBAL=13 | |
2053 | val SCE_RB_SYMBOL=14 | |
2054 | val SCE_RB_MODULE_NAME=15 | |
2055 | val SCE_RB_INSTANCE_VAR=16 | |
2056 | val SCE_RB_CLASS_VAR=17 | |
2057 | val SCE_RB_BACKTICKS=18 | |
2058 | val SCE_RB_DATASECTION=19 | |
2059 | val SCE_RB_HERE_DELIM=20 | |
2060 | val SCE_RB_HERE_Q=21 | |
2061 | val SCE_RB_HERE_QQ=22 | |
2062 | val SCE_RB_HERE_QX=23 | |
2063 | val SCE_RB_STRING_Q=24 | |
2064 | val SCE_RB_STRING_QQ=25 | |
2065 | val SCE_RB_STRING_QX=26 | |
2066 | val SCE_RB_STRING_QR=27 | |
2067 | val SCE_RB_STRING_QW=28 | |
2068 | val SCE_RB_WORD_DEMOTED=29 | |
2069 | val SCE_RB_STDIN=30 | |
2070 | val SCE_RB_STDOUT=31 | |
2071 | val SCE_RB_STDERR=40 | |
2072 | val SCE_RB_UPPER_BOUND=41 | |
8e54aaed | 2073 | # Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC |
a834585d RD |
2074 | lex VB=SCLEX_VB SCE_B_ |
2075 | lex VBScript=SCLEX_VBSCRIPT SCE_B_ | |
8e54aaed | 2076 | lex PowerBasic=SCLEX_POWERBASIC SCE_B_ |
a834585d RD |
2077 | val SCE_B_DEFAULT=0 |
2078 | val SCE_B_COMMENT=1 | |
2079 | val SCE_B_NUMBER=2 | |
2080 | val SCE_B_KEYWORD=3 | |
2081 | val SCE_B_STRING=4 | |
2082 | val SCE_B_PREPROCESSOR=5 | |
2083 | val SCE_B_OPERATOR=6 | |
2084 | val SCE_B_IDENTIFIER=7 | |
2085 | val SCE_B_DATE=8 | |
8e54aaed RD |
2086 | val SCE_B_STRINGEOL=9 |
2087 | val SCE_B_KEYWORD2=10 | |
2088 | val SCE_B_KEYWORD3=11 | |
2089 | val SCE_B_KEYWORD4=12 | |
591d01be RD |
2090 | val SCE_B_CONSTANT=13 |
2091 | val SCE_B_ASM=14 | |
1e9bafca RD |
2092 | val SCE_B_LABEL=15 |
2093 | val SCE_B_ERROR=16 | |
2094 | val SCE_B_HEXNUMBER=17 | |
2095 | val SCE_B_BINNUMBER=18 | |
a834585d RD |
2096 | # Lexical states for SCLEX_PROPERTIES |
2097 | lex Properties=SCLEX_PROPERTIES SCE_PROPS_ | |
2098 | val SCE_PROPS_DEFAULT=0 | |
2099 | val SCE_PROPS_COMMENT=1 | |
2100 | val SCE_PROPS_SECTION=2 | |
2101 | val SCE_PROPS_ASSIGNMENT=3 | |
2102 | val SCE_PROPS_DEFVAL=4 | |
d134f170 | 2103 | # Lexical states for SCLEX_LATEX |
a834585d | 2104 | lex LaTeX=SCLEX_LATEX SCE_L_ |
bfabd11a RD |
2105 | val SCE_L_DEFAULT=0 |
2106 | val SCE_L_COMMAND=1 | |
2107 | val SCE_L_TAG=2 | |
2108 | val SCE_L_MATH=3 | |
2109 | val SCE_L_COMMENT=4 | |
d134f170 | 2110 | # Lexical states for SCLEX_LUA |
a834585d | 2111 | lex Lua=SCLEX_LUA SCE_LUA_ |
d134f170 RD |
2112 | val SCE_LUA_DEFAULT=0 |
2113 | val SCE_LUA_COMMENT=1 | |
2114 | val SCE_LUA_COMMENTLINE=2 | |
2115 | val SCE_LUA_COMMENTDOC=3 | |
2116 | val SCE_LUA_NUMBER=4 | |
2117 | val SCE_LUA_WORD=5 | |
2118 | val SCE_LUA_STRING=6 | |
2119 | val SCE_LUA_CHARACTER=7 | |
2120 | val SCE_LUA_LITERALSTRING=8 | |
2121 | val SCE_LUA_PREPROCESSOR=9 | |
2122 | val SCE_LUA_OPERATOR=10 | |
2123 | val SCE_LUA_IDENTIFIER=11 | |
2124 | val SCE_LUA_STRINGEOL=12 | |
1a2fb4cd RD |
2125 | val SCE_LUA_WORD2=13 |
2126 | val SCE_LUA_WORD3=14 | |
2127 | val SCE_LUA_WORD4=15 | |
2128 | val SCE_LUA_WORD5=16 | |
2129 | val SCE_LUA_WORD6=17 | |
88a8b04e RD |
2130 | val SCE_LUA_WORD7=18 |
2131 | val SCE_LUA_WORD8=19 | |
65ec6247 | 2132 | # Lexical states for SCLEX_ERRORLIST |
a834585d | 2133 | lex ErrorList=SCLEX_ERRORLIST SCE_ERR_ |
d134f170 RD |
2134 | val SCE_ERR_DEFAULT=0 |
2135 | val SCE_ERR_PYTHON=1 | |
2136 | val SCE_ERR_GCC=2 | |
2137 | val SCE_ERR_MS=3 | |
2138 | val SCE_ERR_CMD=4 | |
2139 | val SCE_ERR_BORLAND=5 | |
2140 | val SCE_ERR_PERL=6 | |
65ec6247 RD |
2141 | val SCE_ERR_NET=7 |
2142 | val SCE_ERR_LUA=8 | |
a834585d | 2143 | val SCE_ERR_CTAG=9 |
65ec6247 RD |
2144 | val SCE_ERR_DIFF_CHANGED=10 |
2145 | val SCE_ERR_DIFF_ADDITION=11 | |
2146 | val SCE_ERR_DIFF_DELETION=12 | |
2147 | val SCE_ERR_DIFF_MESSAGE=13 | |
9e730a78 RD |
2148 | val SCE_ERR_PHP=14 |
2149 | val SCE_ERR_ELF=15 | |
2150 | val SCE_ERR_IFC=16 | |
8e54aaed RD |
2151 | val SCE_ERR_IFORT=17 |
2152 | val SCE_ERR_ABSF=18 | |
591d01be | 2153 | val SCE_ERR_TIDY=19 |
a33203cb | 2154 | val SCE_ERR_JAVA_STACK=20 |
65ec6247 | 2155 | # Lexical states for SCLEX_BATCH |
a834585d | 2156 | lex Batch=SCLEX_BATCH SCE_BAT_ |
65ec6247 RD |
2157 | val SCE_BAT_DEFAULT=0 |
2158 | val SCE_BAT_COMMENT=1 | |
2159 | val SCE_BAT_WORD=2 | |
2160 | val SCE_BAT_LABEL=3 | |
2161 | val SCE_BAT_HIDE=4 | |
2162 | val SCE_BAT_COMMAND=5 | |
2163 | val SCE_BAT_IDENTIFIER=6 | |
2164 | val SCE_BAT_OPERATOR=7 | |
2165 | # Lexical states for SCLEX_MAKEFILE | |
a834585d | 2166 | lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_ |
65ec6247 RD |
2167 | val SCE_MAKE_DEFAULT=0 |
2168 | val SCE_MAKE_COMMENT=1 | |
2169 | val SCE_MAKE_PREPROCESSOR=2 | |
2170 | val SCE_MAKE_IDENTIFIER=3 | |
2171 | val SCE_MAKE_OPERATOR=4 | |
2172 | val SCE_MAKE_TARGET=5 | |
2173 | val SCE_MAKE_IDEOL=9 | |
a834585d RD |
2174 | # Lexical states for SCLEX_DIFF |
2175 | lex Diff=SCLEX_DIFF SCE_DIFF_ | |
2176 | val SCE_DIFF_DEFAULT=0 | |
2177 | val SCE_DIFF_COMMENT=1 | |
2178 | val SCE_DIFF_COMMAND=2 | |
2179 | val SCE_DIFF_HEADER=3 | |
2180 | val SCE_DIFF_POSITION=4 | |
2181 | val SCE_DIFF_DELETED=5 | |
2182 | val SCE_DIFF_ADDED=6 | |
2183 | # Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) | |
2184 | lex Conf=SCLEX_CONF SCE_CONF_ | |
65ec6247 RD |
2185 | val SCE_CONF_DEFAULT=0 |
2186 | val SCE_CONF_COMMENT=1 | |
2187 | val SCE_CONF_NUMBER=2 | |
2188 | val SCE_CONF_IDENTIFIER=3 | |
2189 | val SCE_CONF_EXTENSION=4 | |
2190 | val SCE_CONF_PARAMETER=5 | |
2191 | val SCE_CONF_STRING=6 | |
2192 | val SCE_CONF_OPERATOR=7 | |
2193 | val SCE_CONF_IP=8 | |
2194 | val SCE_CONF_DIRECTIVE=9 | |
a834585d RD |
2195 | # Lexical states for SCLEX_AVE, Avenue |
2196 | lex Avenue=SCLEX_AVE SCE_AVE_ | |
65ec6247 RD |
2197 | val SCE_AVE_DEFAULT=0 |
2198 | val SCE_AVE_COMMENT=1 | |
2199 | val SCE_AVE_NUMBER=2 | |
2200 | val SCE_AVE_WORD=3 | |
65ec6247 RD |
2201 | val SCE_AVE_STRING=6 |
2202 | val SCE_AVE_ENUM=7 | |
2203 | val SCE_AVE_STRINGEOL=8 | |
2204 | val SCE_AVE_IDENTIFIER=9 | |
2205 | val SCE_AVE_OPERATOR=10 | |
9e730a78 RD |
2206 | val SCE_AVE_WORD1=11 |
2207 | val SCE_AVE_WORD2=12 | |
2208 | val SCE_AVE_WORD3=13 | |
2209 | val SCE_AVE_WORD4=14 | |
2210 | val SCE_AVE_WORD5=15 | |
2211 | val SCE_AVE_WORD6=16 | |
65ec6247 | 2212 | # Lexical states for SCLEX_ADA |
a834585d | 2213 | lex Ada=SCLEX_ADA SCE_ADA_ |
65ec6247 | 2214 | val SCE_ADA_DEFAULT=0 |
9e730a78 RD |
2215 | val SCE_ADA_WORD=1 |
2216 | val SCE_ADA_IDENTIFIER=2 | |
2217 | val SCE_ADA_NUMBER=3 | |
2218 | val SCE_ADA_DELIMITER=4 | |
65ec6247 | 2219 | val SCE_ADA_CHARACTER=5 |
9e730a78 RD |
2220 | val SCE_ADA_CHARACTEREOL=6 |
2221 | val SCE_ADA_STRING=7 | |
65ec6247 | 2222 | val SCE_ADA_STRINGEOL=8 |
9e730a78 RD |
2223 | val SCE_ADA_LABEL=9 |
2224 | val SCE_ADA_COMMENTLINE=10 | |
2225 | val SCE_ADA_ILLEGAL=11 | |
1a2fb4cd | 2226 | # Lexical states for SCLEX_BAAN |
a834585d | 2227 | lex Baan=SCLEX_BAAN SCE_BAAN_ |
1a2fb4cd RD |
2228 | val SCE_BAAN_DEFAULT=0 |
2229 | val SCE_BAAN_COMMENT=1 | |
2230 | val SCE_BAAN_COMMENTDOC=2 | |
2231 | val SCE_BAAN_NUMBER=3 | |
2232 | val SCE_BAAN_WORD=4 | |
2233 | val SCE_BAAN_STRING=5 | |
2234 | val SCE_BAAN_PREPROCESSOR=6 | |
2235 | val SCE_BAAN_OPERATOR=7 | |
2236 | val SCE_BAAN_IDENTIFIER=8 | |
2237 | val SCE_BAAN_STRINGEOL=9 | |
2238 | val SCE_BAAN_WORD2=10 | |
65ec6247 | 2239 | # Lexical states for SCLEX_LISP |
a834585d | 2240 | lex Lisp=SCLEX_LISP SCE_LISP_ |
65ec6247 RD |
2241 | val SCE_LISP_DEFAULT=0 |
2242 | val SCE_LISP_COMMENT=1 | |
2243 | val SCE_LISP_NUMBER=2 | |
2244 | val SCE_LISP_KEYWORD=3 | |
1e9bafca RD |
2245 | val SCE_LISP_KEYWORD_KW=4 |
2246 | val SCE_LISP_SYMBOL=5 | |
65ec6247 RD |
2247 | val SCE_LISP_STRING=6 |
2248 | val SCE_LISP_STRINGEOL=8 | |
2249 | val SCE_LISP_IDENTIFIER=9 | |
2250 | val SCE_LISP_OPERATOR=10 | |
1e9bafca RD |
2251 | val SCE_LISP_SPECIAL=11 |
2252 | val SCE_LISP_MULTI_COMMENT=12 | |
65ec6247 | 2253 | # Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW |
a834585d RD |
2254 | lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_ |
2255 | lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_ | |
65ec6247 RD |
2256 | val SCE_EIFFEL_DEFAULT=0 |
2257 | val SCE_EIFFEL_COMMENTLINE=1 | |
2258 | val SCE_EIFFEL_NUMBER=2 | |
2259 | val SCE_EIFFEL_WORD=3 | |
2260 | val SCE_EIFFEL_STRING=4 | |
2261 | val SCE_EIFFEL_CHARACTER=5 | |
2262 | val SCE_EIFFEL_OPERATOR=6 | |
2263 | val SCE_EIFFEL_IDENTIFIER=7 | |
2264 | val SCE_EIFFEL_STRINGEOL=8 | |
a834585d RD |
2265 | # Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) |
2266 | lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_ | |
b8b0e402 RD |
2267 | val SCE_NNCRONTAB_DEFAULT=0 |
2268 | val SCE_NNCRONTAB_COMMENT=1 | |
2269 | val SCE_NNCRONTAB_TASK=2 | |
2270 | val SCE_NNCRONTAB_SECTION=3 | |
2271 | val SCE_NNCRONTAB_KEYWORD=4 | |
2272 | val SCE_NNCRONTAB_MODIFIER=5 | |
2273 | val SCE_NNCRONTAB_ASTERISK=6 | |
2274 | val SCE_NNCRONTAB_NUMBER=7 | |
2275 | val SCE_NNCRONTAB_STRING=8 | |
2276 | val SCE_NNCRONTAB_ENVIRONMENT=9 | |
2277 | val SCE_NNCRONTAB_IDENTIFIER=10 | |
8e54aaed RD |
2278 | # Lexical states for SCLEX_FORTH (Forth Lexer) |
2279 | lex Forth=SCLEX_FORTH SCE_FORTH_ | |
2280 | val SCE_FORTH_DEFAULT=0 | |
2281 | val SCE_FORTH_COMMENT=1 | |
2282 | val SCE_FORTH_COMMENT_ML=2 | |
2283 | val SCE_FORTH_IDENTIFIER=3 | |
2284 | val SCE_FORTH_CONTROL=4 | |
2285 | val SCE_FORTH_KEYWORD=5 | |
2286 | val SCE_FORTH_DEFWORD=6 | |
2287 | val SCE_FORTH_PREWORD1=7 | |
2288 | val SCE_FORTH_PREWORD2=8 | |
2289 | val SCE_FORTH_NUMBER=9 | |
2290 | val SCE_FORTH_STRING=10 | |
2291 | val SCE_FORTH_LOCALE=11 | |
1a2fb4cd | 2292 | # Lexical states for SCLEX_MATLAB |
a834585d | 2293 | lex MatLab=SCLEX_MATLAB SCE_MATLAB_ |
1a2fb4cd RD |
2294 | val SCE_MATLAB_DEFAULT=0 |
2295 | val SCE_MATLAB_COMMENT=1 | |
2296 | val SCE_MATLAB_COMMAND=2 | |
2297 | val SCE_MATLAB_NUMBER=3 | |
2298 | val SCE_MATLAB_KEYWORD=4 | |
8e54aaed | 2299 | # single quoted string |
1a2fb4cd RD |
2300 | val SCE_MATLAB_STRING=5 |
2301 | val SCE_MATLAB_OPERATOR=6 | |
2302 | val SCE_MATLAB_IDENTIFIER=7 | |
8e54aaed | 2303 | val SCE_MATLAB_DOUBLEQUOTESTRING=8 |
a834585d RD |
2304 | # Lexical states for SCLEX_SCRIPTOL |
2305 | lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_ | |
2306 | val SCE_SCRIPTOL_DEFAULT=0 | |
8e54aaed | 2307 | val SCE_SCRIPTOL_WHITE=1 |
a834585d | 2308 | val SCE_SCRIPTOL_COMMENTLINE=2 |
8e54aaed RD |
2309 | val SCE_SCRIPTOL_PERSISTENT=3 |
2310 | val SCE_SCRIPTOL_CSTYLE=4 | |
2311 | val SCE_SCRIPTOL_COMMENTBLOCK=5 | |
2312 | val SCE_SCRIPTOL_NUMBER=6 | |
2313 | val SCE_SCRIPTOL_STRING=7 | |
2314 | val SCE_SCRIPTOL_CHARACTER=8 | |
2315 | val SCE_SCRIPTOL_STRINGEOL=9 | |
2316 | val SCE_SCRIPTOL_KEYWORD=10 | |
2317 | val SCE_SCRIPTOL_OPERATOR=11 | |
2318 | val SCE_SCRIPTOL_IDENTIFIER=12 | |
2319 | val SCE_SCRIPTOL_TRIPLE=13 | |
2320 | val SCE_SCRIPTOL_CLASSNAME=14 | |
2321 | val SCE_SCRIPTOL_PREPROCESSOR=15 | |
9e730a78 RD |
2322 | # Lexical states for SCLEX_ASM |
2323 | lex Asm=SCLEX_ASM SCE_ASM_ | |
2324 | val SCE_ASM_DEFAULT=0 | |
2325 | val SCE_ASM_COMMENT=1 | |
2326 | val SCE_ASM_NUMBER=2 | |
2327 | val SCE_ASM_STRING=3 | |
2328 | val SCE_ASM_OPERATOR=4 | |
2329 | val SCE_ASM_IDENTIFIER=5 | |
2330 | val SCE_ASM_CPUINSTRUCTION=6 | |
2331 | val SCE_ASM_MATHINSTRUCTION=7 | |
2332 | val SCE_ASM_REGISTER=8 | |
2333 | val SCE_ASM_DIRECTIVE=9 | |
2334 | val SCE_ASM_DIRECTIVEOPERAND=10 | |
8e54aaed RD |
2335 | val SCE_ASM_COMMENTBLOCK=11 |
2336 | val SCE_ASM_CHARACTER=12 | |
2337 | val SCE_ASM_STRINGEOL=13 | |
2338 | val SCE_ASM_EXTINSTRUCTION=14 | |
9e730a78 RD |
2339 | # Lexical states for SCLEX_FORTRAN |
2340 | lex Fortran=SCLEX_FORTRAN SCE_F_ | |
2341 | lex F77=SCLEX_F77 SCE_F_ | |
2342 | val SCE_F_DEFAULT=0 | |
2343 | val SCE_F_COMMENT=1 | |
2344 | val SCE_F_NUMBER=2 | |
2345 | val SCE_F_STRING1=3 | |
2346 | val SCE_F_STRING2=4 | |
2347 | val SCE_F_STRINGEOL=5 | |
2348 | val SCE_F_OPERATOR=6 | |
2349 | val SCE_F_IDENTIFIER=7 | |
2350 | val SCE_F_WORD=8 | |
2351 | val SCE_F_WORD2=9 | |
2352 | val SCE_F_WORD3=10 | |
2353 | val SCE_F_PREPROCESSOR=11 | |
2354 | val SCE_F_OPERATOR2=12 | |
2355 | val SCE_F_LABEL=13 | |
2356 | val SCE_F_CONTINUATION=14 | |
2357 | # Lexical states for SCLEX_CSS | |
2358 | lex CSS=SCLEX_CSS SCE_CSS_ | |
2359 | val SCE_CSS_DEFAULT=0 | |
2360 | val SCE_CSS_TAG=1 | |
2361 | val SCE_CSS_CLASS=2 | |
2362 | val SCE_CSS_PSEUDOCLASS=3 | |
2363 | val SCE_CSS_UNKNOWN_PSEUDOCLASS=4 | |
2364 | val SCE_CSS_OPERATOR=5 | |
2365 | val SCE_CSS_IDENTIFIER=6 | |
2366 | val SCE_CSS_UNKNOWN_IDENTIFIER=7 | |
2367 | val SCE_CSS_VALUE=8 | |
2368 | val SCE_CSS_COMMENT=9 | |
2369 | val SCE_CSS_ID=10 | |
2370 | val SCE_CSS_IMPORTANT=11 | |
2371 | val SCE_CSS_DIRECTIVE=12 | |
2372 | val SCE_CSS_DOUBLESTRING=13 | |
2373 | val SCE_CSS_SINGLESTRING=14 | |
a33203cb | 2374 | val SCE_CSS_IDENTIFIER2=15 |
1e9bafca | 2375 | val SCE_CSS_ATTRIBUTE=16 |
9e730a78 RD |
2376 | # Lexical states for SCLEX_POV |
2377 | lex POV=SCLEX_POV SCE_POV_ | |
2378 | val SCE_POV_DEFAULT=0 | |
2379 | val SCE_POV_COMMENT=1 | |
2380 | val SCE_POV_COMMENTLINE=2 | |
88a8b04e RD |
2381 | val SCE_POV_NUMBER=3 |
2382 | val SCE_POV_OPERATOR=4 | |
2383 | val SCE_POV_IDENTIFIER=5 | |
9e730a78 | 2384 | val SCE_POV_STRING=6 |
88a8b04e RD |
2385 | val SCE_POV_STRINGEOL=7 |
2386 | val SCE_POV_DIRECTIVE=8 | |
2387 | val SCE_POV_BADDIRECTIVE=9 | |
9e730a78 | 2388 | val SCE_POV_WORD2=10 |
88a8b04e RD |
2389 | val SCE_POV_WORD3=11 |
2390 | val SCE_POV_WORD4=12 | |
2391 | val SCE_POV_WORD5=13 | |
2392 | val SCE_POV_WORD6=14 | |
2393 | val SCE_POV_WORD7=15 | |
2394 | val SCE_POV_WORD8=16 | |
e14d10b0 RD |
2395 | # Lexical states for SCLEX_LOUT |
2396 | lex LOUT=SCLEX_LOUT SCE_LOUT_ | |
2397 | val SCE_LOUT_DEFAULT=0 | |
2398 | val SCE_LOUT_COMMENT=1 | |
2399 | val SCE_LOUT_NUMBER=2 | |
2400 | val SCE_LOUT_WORD=3 | |
2401 | val SCE_LOUT_WORD2=4 | |
2402 | val SCE_LOUT_WORD3=5 | |
2403 | val SCE_LOUT_WORD4=6 | |
2404 | val SCE_LOUT_STRING=7 | |
2405 | val SCE_LOUT_OPERATOR=8 | |
2406 | val SCE_LOUT_IDENTIFIER=9 | |
2407 | val SCE_LOUT_STRINGEOL=10 | |
2408 | # Lexical states for SCLEX_ESCRIPT | |
2409 | lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_ | |
2410 | val SCE_ESCRIPT_DEFAULT=0 | |
2411 | val SCE_ESCRIPT_COMMENT=1 | |
2412 | val SCE_ESCRIPT_COMMENTLINE=2 | |
2413 | val SCE_ESCRIPT_COMMENTDOC=3 | |
2414 | val SCE_ESCRIPT_NUMBER=4 | |
2415 | val SCE_ESCRIPT_WORD=5 | |
2416 | val SCE_ESCRIPT_STRING=6 | |
2417 | val SCE_ESCRIPT_OPERATOR=7 | |
2418 | val SCE_ESCRIPT_IDENTIFIER=8 | |
2419 | val SCE_ESCRIPT_BRACE=9 | |
2420 | val SCE_ESCRIPT_WORD2=10 | |
2421 | val SCE_ESCRIPT_WORD3=11 | |
88a8b04e RD |
2422 | # Lexical states for SCLEX_PS |
2423 | lex PS=SCLEX_PS SCE_PS_ | |
2424 | val SCE_PS_DEFAULT=0 | |
2425 | val SCE_PS_COMMENT=1 | |
2426 | val SCE_PS_DSC_COMMENT=2 | |
2427 | val SCE_PS_DSC_VALUE=3 | |
2428 | val SCE_PS_NUMBER=4 | |
2429 | val SCE_PS_NAME=5 | |
2430 | val SCE_PS_KEYWORD=6 | |
2431 | val SCE_PS_LITERAL=7 | |
2432 | val SCE_PS_IMMEVAL=8 | |
2433 | val SCE_PS_PAREN_ARRAY=9 | |
2434 | val SCE_PS_PAREN_DICT=10 | |
2435 | val SCE_PS_PAREN_PROC=11 | |
2436 | val SCE_PS_TEXT=12 | |
2437 | val SCE_PS_HEXSTRING=13 | |
2438 | val SCE_PS_BASE85STRING=14 | |
2439 | val SCE_PS_BADSTRINGCHAR=15 | |
2440 | # Lexical states for SCLEX_NSIS | |
2441 | lex NSIS=SCLEX_NSIS SCE_NSIS_ | |
2442 | val SCE_NSIS_DEFAULT=0 | |
2443 | val SCE_NSIS_COMMENT=1 | |
2444 | val SCE_NSIS_STRINGDQ=2 | |
2445 | val SCE_NSIS_STRINGLQ=3 | |
2446 | val SCE_NSIS_STRINGRQ=4 | |
2447 | val SCE_NSIS_FUNCTION=5 | |
2448 | val SCE_NSIS_VARIABLE=6 | |
2449 | val SCE_NSIS_LABEL=7 | |
2450 | val SCE_NSIS_USERDEFINED=8 | |
2451 | val SCE_NSIS_SECTIONDEF=9 | |
2452 | val SCE_NSIS_SUBSECTIONDEF=10 | |
2453 | val SCE_NSIS_IFDEFINEDEF=11 | |
2454 | val SCE_NSIS_MACRODEF=12 | |
2455 | val SCE_NSIS_STRINGVAR=13 | |
591d01be | 2456 | val SCE_NSIS_NUMBER=14 |
1e9bafca RD |
2457 | val SCE_NSIS_SECTIONGROUP=15 |
2458 | val SCE_NSIS_PAGEEX=16 | |
2459 | val SCE_NSIS_FUNCTIONDEF=17 | |
2460 | val SCE_NSIS_COMMENTBOX=18 | |
88a8b04e RD |
2461 | # Lexical states for SCLEX_MMIXAL |
2462 | lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_ | |
2463 | val SCE_MMIXAL_LEADWS=0 | |
2464 | val SCE_MMIXAL_COMMENT=1 | |
2465 | val SCE_MMIXAL_LABEL=2 | |
2466 | val SCE_MMIXAL_OPCODE=3 | |
2467 | val SCE_MMIXAL_OPCODE_PRE=4 | |
2468 | val SCE_MMIXAL_OPCODE_VALID=5 | |
2469 | val SCE_MMIXAL_OPCODE_UNKNOWN=6 | |
2470 | val SCE_MMIXAL_OPCODE_POST=7 | |
2471 | val SCE_MMIXAL_OPERANDS=8 | |
2472 | val SCE_MMIXAL_NUMBER=9 | |
2473 | val SCE_MMIXAL_REF=10 | |
2474 | val SCE_MMIXAL_CHAR=11 | |
2475 | val SCE_MMIXAL_STRING=12 | |
2476 | val SCE_MMIXAL_REGISTER=13 | |
2477 | val SCE_MMIXAL_HEX=14 | |
2478 | val SCE_MMIXAL_OPERATOR=15 | |
2479 | val SCE_MMIXAL_SYMBOL=16 | |
2480 | val SCE_MMIXAL_INCLUDE=17 | |
8e54aaed RD |
2481 | # Lexical states for SCLEX_CLW |
2482 | lex Clarion=SCLEX_CLW SCE_CLW_ | |
2483 | val SCE_CLW_DEFAULT=0 | |
2484 | val SCE_CLW_LABEL=1 | |
2485 | val SCE_CLW_COMMENT=2 | |
2486 | val SCE_CLW_STRING=3 | |
2487 | val SCE_CLW_USER_IDENTIFIER=4 | |
2488 | val SCE_CLW_INTEGER_CONSTANT=5 | |
2489 | val SCE_CLW_REAL_CONSTANT=6 | |
2490 | val SCE_CLW_PICTURE_STRING=7 | |
2491 | val SCE_CLW_KEYWORD=8 | |
2492 | val SCE_CLW_COMPILER_DIRECTIVE=9 | |
1e9bafca RD |
2493 | val SCE_CLW_RUNTIME_EXPRESSIONS=10 |
2494 | val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11 | |
2495 | val SCE_CLW_STRUCTURE_DATA_TYPE=12 | |
2496 | val SCE_CLW_ATTRIBUTE=13 | |
2497 | val SCE_CLW_STANDARD_EQUATE=14 | |
2498 | val SCE_CLW_ERROR=15 | |
2499 | val SCE_CLW_DEPRECATED=16 | |
8e54aaed RD |
2500 | # Lexical states for SCLEX_LOT |
2501 | lex LOT=SCLEX_LOT SCE_LOT_ | |
2502 | val SCE_LOT_DEFAULT=0 | |
2503 | val SCE_LOT_HEADER=1 | |
2504 | val SCE_LOT_BREAK=2 | |
2505 | val SCE_LOT_SET=3 | |
2506 | val SCE_LOT_PASS=4 | |
2507 | val SCE_LOT_FAIL=5 | |
2508 | val SCE_LOT_ABORT=6 | |
2509 | # Lexical states for SCLEX_YAML | |
2510 | lex YAML=SCLEX_YAML SCE_YAML_ | |
2511 | val SCE_YAML_DEFAULT=0 | |
2512 | val SCE_YAML_COMMENT=1 | |
2513 | val SCE_YAML_IDENTIFIER=2 | |
2514 | val SCE_YAML_KEYWORD=3 | |
2515 | val SCE_YAML_NUMBER=4 | |
2516 | val SCE_YAML_REFERENCE=5 | |
2517 | val SCE_YAML_DOCUMENT=6 | |
2518 | val SCE_YAML_TEXT=7 | |
2519 | val SCE_YAML_ERROR=8 | |
2520 | # Lexical states for SCLEX_TEX | |
2521 | lex TeX=SCLEX_TEX SCE_TEX_ | |
2522 | val SCE_TEX_DEFAULT=0 | |
2523 | val SCE_TEX_SPECIAL=1 | |
2524 | val SCE_TEX_GROUP=2 | |
2525 | val SCE_TEX_SYMBOL=3 | |
2526 | val SCE_TEX_COMMAND=4 | |
2527 | val SCE_TEX_TEXT=5 | |
2528 | lex Metapost=SCLEX_METAPOST SCE_METAPOST_ | |
2529 | val SCE_METAPOST_DEFAULT=0 | |
2530 | val SCE_METAPOST_SPECIAL=1 | |
2531 | val SCE_METAPOST_GROUP=2 | |
2532 | val SCE_METAPOST_SYMBOL=3 | |
2533 | val SCE_METAPOST_COMMAND=4 | |
2534 | val SCE_METAPOST_TEXT=5 | |
2535 | val SCE_METAPOST_EXTRA=6 | |
2536 | # Lexical states for SCLEX_ERLANG | |
2537 | lex Erlang=SCLEX_ERLANG SCE_ERLANG_ | |
2538 | val SCE_ERLANG_DEFAULT=0 | |
2539 | val SCE_ERLANG_COMMENT=1 | |
2540 | val SCE_ERLANG_VARIABLE=2 | |
2541 | val SCE_ERLANG_NUMBER=3 | |
2542 | val SCE_ERLANG_KEYWORD=4 | |
2543 | val SCE_ERLANG_STRING=5 | |
2544 | val SCE_ERLANG_OPERATOR=6 | |
2545 | val SCE_ERLANG_ATOM=7 | |
2546 | val SCE_ERLANG_FUNCTION_NAME=8 | |
2547 | val SCE_ERLANG_CHARACTER=9 | |
2548 | val SCE_ERLANG_MACRO=10 | |
2549 | val SCE_ERLANG_RECORD=11 | |
2550 | val SCE_ERLANG_SEPARATOR=12 | |
2551 | val SCE_ERLANG_NODE_NAME=13 | |
2552 | val SCE_ERLANG_UNKNOWN=31 | |
2553 | # Lexical states for SCLEX_OCTAVE are identical to MatLab | |
2554 | lex Octave=SCLEX_OCTAVE SCE_MATLAB_ | |
591d01be RD |
2555 | # Lexical states for SCLEX_MSSQL |
2556 | lex MSSQL=SCLEX_MSSQL SCE_MSSQL_ | |
2557 | val SCE_MSSQL_DEFAULT=0 | |
2558 | val SCE_MSSQL_COMMENT=1 | |
2559 | val SCE_MSSQL_LINE_COMMENT=2 | |
2560 | val SCE_MSSQL_NUMBER=3 | |
2561 | val SCE_MSSQL_STRING=4 | |
2562 | val SCE_MSSQL_OPERATOR=5 | |
2563 | val SCE_MSSQL_IDENTIFIER=6 | |
2564 | val SCE_MSSQL_VARIABLE=7 | |
2565 | val SCE_MSSQL_COLUMN_NAME=8 | |
2566 | val SCE_MSSQL_STATEMENT=9 | |
2567 | val SCE_MSSQL_DATATYPE=10 | |
2568 | val SCE_MSSQL_SYSTABLE=11 | |
2569 | val SCE_MSSQL_GLOBAL_VARIABLE=12 | |
2570 | val SCE_MSSQL_FUNCTION=13 | |
2571 | val SCE_MSSQL_STORED_PROCEDURE=14 | |
2572 | val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15 | |
2573 | val SCE_MSSQL_COLUMN_NAME_2=16 | |
2574 | # Lexical states for SCLEX_VERILOG | |
2575 | lex Verilog=SCLEX_VERILOG SCE_V_ | |
2576 | val SCE_V_DEFAULT=0 | |
2577 | val SCE_V_COMMENT=1 | |
2578 | val SCE_V_COMMENTLINE=2 | |
2579 | val SCE_V_COMMENTLINEBANG=3 | |
2580 | val SCE_V_NUMBER=4 | |
2581 | val SCE_V_WORD=5 | |
2582 | val SCE_V_STRING=6 | |
2583 | val SCE_V_WORD2=7 | |
2584 | val SCE_V_WORD3=8 | |
2585 | val SCE_V_PREPROCESSOR=9 | |
2586 | val SCE_V_OPERATOR=10 | |
2587 | val SCE_V_IDENTIFIER=11 | |
2588 | val SCE_V_STRINGEOL=12 | |
2589 | val SCE_V_USER=19 | |
2590 | # Lexical states for SCLEX_KIX | |
2591 | lex Kix=SCLEX_KIX SCE_KIX_ | |
2592 | val SCE_KIX_DEFAULT=0 | |
2593 | val SCE_KIX_COMMENT=1 | |
2594 | val SCE_KIX_STRING1=2 | |
2595 | val SCE_KIX_STRING2=3 | |
2596 | val SCE_KIX_NUMBER=4 | |
2597 | val SCE_KIX_VAR=5 | |
2598 | val SCE_KIX_MACRO=6 | |
2599 | val SCE_KIX_KEYWORD=7 | |
2600 | val SCE_KIX_FUNCTIONS=8 | |
2601 | val SCE_KIX_OPERATOR=9 | |
2602 | val SCE_KIX_IDENTIFIER=31 | |
2603 | # Lexical states for SCLEX_GUI4CLI | |
2604 | val SCE_GC_DEFAULT=0 | |
2605 | val SCE_GC_COMMENTLINE=1 | |
2606 | val SCE_GC_COMMENTBLOCK=2 | |
2607 | val SCE_GC_GLOBAL=3 | |
2608 | val SCE_GC_EVENT=4 | |
2609 | val SCE_GC_ATTRIBUTE=5 | |
2610 | val SCE_GC_CONTROL=6 | |
2611 | val SCE_GC_COMMAND=7 | |
2612 | val SCE_GC_STRING=8 | |
2613 | val SCE_GC_OPERATOR=9 | |
2614 | # Lexical states for SCLEX_SPECMAN | |
2615 | lex Specman=SCLEX_SPECMAN SCE_SN_ | |
2616 | val SCE_SN_DEFAULT=0 | |
2617 | val SCE_SN_CODE=1 | |
2618 | val SCE_SN_COMMENTLINE=2 | |
2619 | val SCE_SN_COMMENTLINEBANG=3 | |
2620 | val SCE_SN_NUMBER=4 | |
2621 | val SCE_SN_WORD=5 | |
2622 | val SCE_SN_STRING=6 | |
2623 | val SCE_SN_WORD2=7 | |
2624 | val SCE_SN_WORD3=8 | |
2625 | val SCE_SN_PREPROCESSOR=9 | |
2626 | val SCE_SN_OPERATOR=10 | |
2627 | val SCE_SN_IDENTIFIER=11 | |
2628 | val SCE_SN_STRINGEOL=12 | |
2629 | val SCE_SN_REGEXTAG=13 | |
2630 | val SCE_SN_SIGNAL=14 | |
2631 | val SCE_SN_USER=19 | |
2632 | # Lexical states for SCLEX_AU3 | |
2633 | lex Au3=SCLEX_AU3 SCE_AU3_ | |
2634 | val SCE_AU3_DEFAULT=0 | |
2635 | val SCE_AU3_COMMENT=1 | |
2636 | val SCE_AU3_COMMENTBLOCK=2 | |
2637 | val SCE_AU3_NUMBER=3 | |
2638 | val SCE_AU3_FUNCTION=4 | |
2639 | val SCE_AU3_KEYWORD=5 | |
2640 | val SCE_AU3_MACRO=6 | |
2641 | val SCE_AU3_STRING=7 | |
2642 | val SCE_AU3_OPERATOR=8 | |
2643 | val SCE_AU3_VARIABLE=9 | |
2644 | val SCE_AU3_SENT=10 | |
2645 | val SCE_AU3_PREPROCESSOR=11 | |
a33203cb | 2646 | val SCE_AU3_SPECIAL=12 |
1e9bafca RD |
2647 | val SCE_AU3_EXPAND=13 |
2648 | val SCE_AU3_COMOBJ=14 | |
591d01be RD |
2649 | # Lexical states for SCLEX_APDL |
2650 | lex APDL=SCLEX_APDL SCE_APDL_ | |
2651 | val SCE_APDL_DEFAULT=0 | |
2652 | val SCE_APDL_COMMENT=1 | |
2653 | val SCE_APDL_COMMENTBLOCK=2 | |
2654 | val SCE_APDL_NUMBER=3 | |
2655 | val SCE_APDL_STRING=4 | |
a33203cb RD |
2656 | val SCE_APDL_OPERATOR=5 |
2657 | val SCE_APDL_WORD=6 | |
591d01be | 2658 | val SCE_APDL_PROCESSOR=7 |
a33203cb RD |
2659 | val SCE_APDL_COMMAND=8 |
2660 | val SCE_APDL_SLASHCOMMAND=9 | |
2661 | val SCE_APDL_STARCOMMAND=10 | |
2662 | val SCE_APDL_ARGUMENT=11 | |
2663 | val SCE_APDL_FUNCTION=12 | |
591d01be RD |
2664 | # Lexical states for SCLEX_BASH |
2665 | lex Bash=SCLEX_BASH SCE_SH_ | |
2666 | val SCE_SH_DEFAULT=0 | |
2667 | val SCE_SH_ERROR=1 | |
2668 | val SCE_SH_COMMENTLINE=2 | |
2669 | val SCE_SH_NUMBER=3 | |
2670 | val SCE_SH_WORD=4 | |
2671 | val SCE_SH_STRING=5 | |
2672 | val SCE_SH_CHARACTER=6 | |
2673 | val SCE_SH_OPERATOR=7 | |
2674 | val SCE_SH_IDENTIFIER=8 | |
2675 | val SCE_SH_SCALAR=9 | |
2676 | val SCE_SH_PARAM=10 | |
2677 | val SCE_SH_BACKTICKS=11 | |
2678 | val SCE_SH_HERE_DELIM=12 | |
2679 | val SCE_SH_HERE_Q=13 | |
a33203cb RD |
2680 | # Lexical states for SCLEX_ASN1 |
2681 | lex Asn1=SCLEX_ASN1 SCE_ASN1_ | |
2682 | val SCE_ASN1_DEFAULT=0 | |
2683 | val SCE_ASN1_COMMENT=1 | |
2684 | val SCE_ASN1_IDENTIFIER=2 | |
2685 | val SCE_ASN1_STRING=3 | |
2686 | val SCE_ASN1_OID=4 | |
2687 | val SCE_ASN1_SCALAR=5 | |
2688 | val SCE_ASN1_KEYWORD=6 | |
2689 | val SCE_ASN1_ATTRIBUTE=7 | |
2690 | val SCE_ASN1_DESCRIPTOR=8 | |
2691 | val SCE_ASN1_TYPE=9 | |
2692 | val SCE_ASN1_OPERATOR=10 | |
2693 | # Lexical states for SCLEX_VHDL | |
2694 | lex VHDL=SCLEX_VHDL SCE_VHDL_ | |
2695 | val SCE_VHDL_DEFAULT=0 | |
2696 | val SCE_VHDL_COMMENT=1 | |
2697 | val SCE_VHDL_COMMENTLINEBANG=2 | |
2698 | val SCE_VHDL_NUMBER=3 | |
2699 | val SCE_VHDL_STRING=4 | |
2700 | val SCE_VHDL_OPERATOR=5 | |
2701 | val SCE_VHDL_IDENTIFIER=6 | |
2702 | val SCE_VHDL_STRINGEOL=7 | |
2703 | val SCE_VHDL_KEYWORD=8 | |
2704 | val SCE_VHDL_STDOPERATOR=9 | |
2705 | val SCE_VHDL_ATTRIBUTE=10 | |
2706 | val SCE_VHDL_STDFUNCTION=11 | |
2707 | val SCE_VHDL_STDPACKAGE=12 | |
2708 | val SCE_VHDL_STDTYPE=13 | |
2709 | val SCE_VHDL_USERWORD=14 | |
1e9bafca RD |
2710 | # Lexical states for SCLEX_CAML |
2711 | lex Caml=SCLEX_CAML SCE_CAML_ | |
2712 | val SCE_CAML_DEFAULT=0 | |
2713 | val SCE_CAML_IDENTIFIER=1 | |
2714 | val SCE_CAML_TAGNAME=2 | |
2715 | val SCE_CAML_KEYWORD=3 | |
2716 | val SCE_CAML_KEYWORD2=4 | |
2717 | val SCE_CAML_KEYWORD3=5 | |
2718 | val SCE_CAML_LINENUM=6 | |
2719 | val SCE_CAML_OPERATOR=7 | |
2720 | val SCE_CAML_NUMBER=8 | |
2721 | val SCE_CAML_CHAR=9 | |
2722 | val SCE_CAML_STRING=11 | |
2723 | val SCE_CAML_COMMENT=12 | |
2724 | val SCE_CAML_COMMENT1=13 | |
2725 | val SCE_CAML_COMMENT2=14 | |
2726 | val SCE_CAML_COMMENT3=15 | |
2727 | # Lexical states for SCLEX_HASKELL | |
2728 | lex Haskell=SCLEX_HASKELL SCE_HA_ | |
2729 | val SCE_HA_DEFAULT=0 | |
2730 | val SCE_HA_IDENTIFIER=1 | |
2731 | val SCE_HA_KEYWORD=2 | |
2732 | val SCE_HA_NUMBER=3 | |
2733 | val SCE_HA_STRING=4 | |
2734 | val SCE_HA_CHARACTER=5 | |
2735 | val SCE_HA_CLASS=6 | |
2736 | val SCE_HA_MODULE=7 | |
2737 | val SCE_HA_CAPITAL=8 | |
2738 | val SCE_HA_DATA=9 | |
2739 | val SCE_HA_IMPORT=10 | |
2740 | val SCE_HA_OPERATOR=11 | |
2741 | val SCE_HA_INSTANCE=12 | |
2742 | val SCE_HA_COMMENTLINE=13 | |
2743 | val SCE_HA_COMMENTBLOCK=14 | |
2744 | val SCE_HA_COMMENTBLOCK2=15 | |
2745 | val SCE_HA_COMMENTBLOCK3=16 | |
2746 | # Lexical states of SCLEX_TADS3 | |
2747 | lex TADS3=SCLEX_TADS3 SCE_T3_ | |
2748 | val SCE_T3_DEFAULT=0 | |
2749 | val SCE_T3_X_DEFAULT=1 | |
2750 | val SCE_T3_PREPROCESSOR=2 | |
2751 | val SCE_T3_BLOCK_COMMENT=3 | |
2752 | val SCE_T3_LINE_COMMENT=4 | |
2753 | val SCE_T3_OPERATOR=5 | |
2754 | val SCE_T3_KEYWORD=6 | |
2755 | val SCE_T3_NUMBER=7 | |
2756 | val SCE_T3_IDENTIFIER=8 | |
2757 | val SCE_T3_S_STRING=9 | |
2758 | val SCE_T3_D_STRING=10 | |
2759 | val SCE_T3_X_STRING=11 | |
2760 | val SCE_T3_LIB_DIRECTIVE=12 | |
2761 | val SCE_T3_MSG_PARAM=13 | |
2762 | val SCE_T3_HTML_TAG=14 | |
2763 | val SCE_T3_HTML_DEFAULT=15 | |
2764 | val SCE_T3_HTML_STRING=16 | |
2765 | val SCE_T3_USER1=17 | |
2766 | val SCE_T3_USER2=18 | |
2767 | val SCE_T3_USER3=19 | |
2768 | # Lexical states for SCLEX_REBOL | |
2769 | lex Rebol=SCLEX_REBOL SCE_REBOL_ | |
2770 | val SCE_REBOL_DEFAULT=0 | |
2771 | val SCE_REBOL_COMMENTLINE=1 | |
2772 | val SCE_REBOL_COMMENTBLOCK=2 | |
2773 | val SCE_REBOL_PREFACE=3 | |
2774 | val SCE_REBOL_OPERATOR=4 | |
2775 | val SCE_REBOL_CHARACTER=5 | |
2776 | val SCE_REBOL_QUOTEDSTRING=6 | |
2777 | val SCE_REBOL_BRACEDSTRING=7 | |
2778 | val SCE_REBOL_NUMBER=8 | |
2779 | val SCE_REBOL_PAIR=9 | |
2780 | val SCE_REBOL_TUPLE=10 | |
2781 | val SCE_REBOL_BINARY=11 | |
2782 | val SCE_REBOL_MONEY=12 | |
2783 | val SCE_REBOL_ISSUE=13 | |
2784 | val SCE_REBOL_TAG=14 | |
2785 | val SCE_REBOL_FILE=15 | |
2786 | val SCE_REBOL_EMAIL=16 | |
2787 | val SCE_REBOL_URL=17 | |
2788 | val SCE_REBOL_DATE=18 | |
2789 | val SCE_REBOL_TIME=19 | |
2790 | val SCE_REBOL_IDENTIFIER=20 | |
2791 | val SCE_REBOL_WORD=21 | |
2792 | val SCE_REBOL_WORD2=22 | |
2793 | val SCE_REBOL_WORD3=23 | |
2794 | val SCE_REBOL_WORD4=24 | |
2795 | val SCE_REBOL_WORD5=25 | |
2796 | val SCE_REBOL_WORD6=26 | |
2797 | val SCE_REBOL_WORD7=27 | |
2798 | val SCE_REBOL_WORD8=28 | |
2799 | # Lexical states for SCLEX_SQL | |
2800 | lex SQL=SCLEX_SQL SCE_SQL_ | |
2801 | val SCE_SQL_DEFAULT=0 | |
2802 | val SCE_SQL_COMMENT=1 | |
2803 | val SCE_SQL_COMMENTLINE=2 | |
2804 | val SCE_SQL_COMMENTDOC=3 | |
2805 | val SCE_SQL_NUMBER=4 | |
2806 | val SCE_SQL_WORD=5 | |
2807 | val SCE_SQL_STRING=6 | |
2808 | val SCE_SQL_CHARACTER=7 | |
2809 | val SCE_SQL_SQLPLUS=8 | |
2810 | val SCE_SQL_SQLPLUS_PROMPT=9 | |
2811 | val SCE_SQL_OPERATOR=10 | |
2812 | val SCE_SQL_IDENTIFIER=11 | |
2813 | val SCE_SQL_SQLPLUS_COMMENT=13 | |
2814 | val SCE_SQL_COMMENTLINEDOC=15 | |
2815 | val SCE_SQL_WORD2=16 | |
2816 | val SCE_SQL_COMMENTDOCKEYWORD=17 | |
2817 | val SCE_SQL_COMMENTDOCKEYWORDERROR=18 | |
2818 | val SCE_SQL_USER1=19 | |
2819 | val SCE_SQL_USER2=20 | |
2820 | val SCE_SQL_USER3=21 | |
2821 | val SCE_SQL_USER4=22 | |
2822 | val SCE_SQL_QUOTEDIDENTIFIER=23 | |
2823 | # Lexical states for SCLEX_SMALLTALK | |
2824 | lex Smalltalk=SCLEX_SMALLTALK SCE_ST_ | |
2825 | val SCE_ST_DEFAULT=0 | |
2826 | val SCE_ST_STRING=1 | |
2827 | val SCE_ST_NUMBER=2 | |
2828 | val SCE_ST_COMMENT=3 | |
2829 | val SCE_ST_SYMBOL=4 | |
2830 | val SCE_ST_BINARY=5 | |
2831 | val SCE_ST_BOOL=6 | |
2832 | val SCE_ST_SELF=7 | |
2833 | val SCE_ST_SUPER=8 | |
2834 | val SCE_ST_NIL=9 | |
2835 | val SCE_ST_GLOBAL=10 | |
2836 | val SCE_ST_RETURN=11 | |
2837 | val SCE_ST_SPECIAL=12 | |
2838 | val SCE_ST_KWSEND=13 | |
2839 | val SCE_ST_ASSIGN=14 | |
2840 | val SCE_ST_CHARACTER=15 | |
2841 | val SCE_ST_SPEC_SEL=16 | |
2842 | # Lexical states for SCLEX_FLAGSHIP (clipper) | |
2843 | lex FlagShip=SCLEX_FLAGSHIP SCE_B_ | |
2844 | val SCE_FS_DEFAULT=0 | |
2845 | val SCE_FS_COMMENT=1 | |
2846 | val SCE_FS_COMMENTLINE=2 | |
2847 | val SCE_FS_COMMENTDOC=3 | |
2848 | val SCE_FS_COMMENTLINEDOC=4 | |
2849 | val SCE_FS_COMMENTDOCKEYWORD=5 | |
2850 | val SCE_FS_COMMENTDOCKEYWORDERROR=6 | |
2851 | val SCE_FS_KEYWORD=7 | |
2852 | val SCE_FS_KEYWORD2=8 | |
2853 | val SCE_FS_KEYWORD3=9 | |
2854 | val SCE_FS_KEYWORD4=10 | |
2855 | val SCE_FS_NUMBER=11 | |
2856 | val SCE_FS_STRING=12 | |
2857 | val SCE_FS_PREPROCESSOR=13 | |
2858 | val SCE_FS_OPERATOR=14 | |
2859 | val SCE_FS_IDENTIFIER=15 | |
2860 | val SCE_FS_DATE=16 | |
2861 | val SCE_FS_STRINGEOL=17 | |
2862 | val SCE_FS_CONSTANT=18 | |
2863 | val SCE_FS_ASM=19 | |
2864 | val SCE_FS_LABEL=20 | |
2865 | val SCE_FS_ERROR=21 | |
2866 | val SCE_FS_HEXNUMBER=22 | |
2867 | val SCE_FS_BINNUMBER=23 | |
2868 | # Lexical states for SCLEX_CSOUND | |
2869 | lex Csound=SCLEX_CSOUND SCE_CSOUND_ | |
2870 | val SCE_CSOUND_DEFAULT=0 | |
2871 | val SCE_CSOUND_COMMENT=1 | |
2872 | val SCE_CSOUND_NUMBER=2 | |
2873 | val SCE_CSOUND_OPERATOR=3 | |
2874 | val SCE_CSOUND_INSTR=4 | |
2875 | val SCE_CSOUND_IDENTIFIER=5 | |
2876 | val SCE_CSOUND_OPCODE=6 | |
2877 | val SCE_CSOUND_HEADERSTMT=7 | |
2878 | val SCE_CSOUND_USERKEYWORD=8 | |
2879 | val SCE_CSOUND_COMMENTBLOCK=9 | |
2880 | val SCE_CSOUND_PARAM=10 | |
2881 | val SCE_CSOUND_ARATE_VAR=11 | |
2882 | val SCE_CSOUND_KRATE_VAR=12 | |
2883 | val SCE_CSOUND_IRATE_VAR=13 | |
2884 | val SCE_CSOUND_GLOBAL_VAR=14 | |
2885 | val SCE_CSOUND_STRINGEOL=15 | |
a33203cb | 2886 | |
d134f170 RD |
2887 | # Events |
2888 | ||
2889 | evt void StyleNeeded=2000(int position) | |
2890 | evt void CharAdded=2001(int ch) | |
2891 | evt void SavePointReached=2002(void) | |
2892 | evt void SavePointLeft=2003(void) | |
2893 | evt void ModifyAttemptRO=2004(void) | |
2894 | # GTK+ Specific to work around focus and accelerator problems: | |
2895 | evt void Key=2005(int ch, int modifiers) | |
2896 | evt void DoubleClick=2006(void) | |
2897 | evt void UpdateUI=2007(void) | |
d134f170 | 2898 | evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev) |
d134f170 RD |
2899 | evt void MacroRecord=2009(int message, int wParam, int lParam) |
2900 | evt void MarginClick=2010(int modifiers, int position, int margin) | |
2901 | evt void NeedShown=2011(int position, int length) | |
65ec6247 RD |
2902 | evt void Painted=2013(void) |
2903 | evt void UserListSelection=2014(int listType, string text) | |
2904 | evt void URIDropped=2015(string text) | |
2905 | evt void DwellStart=2016(int position) | |
2906 | evt void DwellEnd=2017(int position) | |
a834585d | 2907 | evt void Zoom=2018(void) |
9e730a78 RD |
2908 | evt void HotSpotClick=2019(int modifiers, int position) |
2909 | evt void HotSpotDoubleClick=2020(int modifiers, int position) | |
2910 | evt void CallTipClick=2021(int position) | |
1e9bafca | 2911 | evt void AutoCSelection=2022(string text) |
d134f170 | 2912 | |
d25f5fbb | 2913 | cat Deprecated |
1a2fb4cd | 2914 | |
a834585d RD |
2915 | # CARET_POLICY changed in 1.47 |
2916 | fun void SetCaretPolicy=2369(int caretPolicy, int caretSlop) | |
2917 | val CARET_CENTER=0x02 | |
2918 | val CARET_XEVEN=0x08 | |
2919 | val CARET_XJUMPS=0x10 | |
2920 | ||
1a2fb4cd RD |
2921 | # The old name for SCN_UPDATEUI |
2922 | val SCN_CHECKBRACE=2007 | |
2923 | evt void PosChanged=2012(int position) | |
a834585d | 2924 | |
1e9bafca RD |
2925 | # SCLEX_HTML should be used in preference to these. |
2926 | val SCLEX_ASP=29 | |
2927 | val SCLEX_PHP=30 |