1## First line may be used for shbang
2
3## This file defines the interface to Scintilla
4
5## Copyright 2000-2003 by Neil Hodgson <neilh@scintilla.org>
6## The License.txt file describes the conditions under which this software may be distributed.
7
8## A line starting with ## is a pure comment and should be stripped by readers.
9## A line starting with #! is for future shbang use
10## A line starting with # followed by a space is a documentation comment and refers
11## to the next feature definition.
12
13## Each feature is defined by a line starting with fun, get, set, val, evt, enu, lex, or ali.
14##     cat -> start a category
15##     fun -> a function
16##     get -> a property get function
17##     set -> a property set function
18##     val -> definition of a constant
19##     evt -> an event
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##     ali -> add an alias for a val, commonly adding '_' to separate words
23##
24## All other feature names should be ignored. They may be defined in the future.
25## A property may have a set function, a get function or both. Each will have
26## "Get" or "Set" in their names and the corresponding name will have the obvious switch.
27## A property may be subscripted, in which case the first parameter is the subscript.
28## fun, get, and set features have a strict syntax:
29## <featureType><ws><returnType><ws><name>[=<number](<param>,<param>)
30## where <ws> stands for white space.
31## param may be empty (null value) or is <paramType><ws><paramName>[=<value>]
32## Additional white space is allowed between elements.
33## The syntax for evt is <featureType><ws><returnType><ws><name>[=<number]([<param>[,<param>]*])
34## Feature names that contain an underscore are defined by Windows, so in these
35## cases, using the Windows definition is preferred where available.
36## The feature numbers are stable so features will not be renumbered.
37## Features may be removed but they will go through a period of deprecation
38## before removal which is signalled by moving them into the Deprecated category.
39##
40## enu has the syntax enu<ws><enumeration>=<prefix>[<ws><prefix>]* where all the val
41## features in this file starting with a given <prefix> are considered part of the
42## enumeration.
43##
44## lex has the syntax lex<ws><name>=<lexerVal><ws><prefix>[<ws><prefix>]*
45## where name is a reasonably capitalised (Python, XML) identifier or UI name,
46## lexerVal is the val used to specify the lexer, and the list of prefixes is similar
47## to enu. The name may not be the same as that used within the lexer so the lexerVal
48## should be used to tie these entities together.
49
50## Types: Never start with a capital letter
51##     void
52##     int
53##     bool -> integer, 1=true, 0=false
54##     position -> intptr_t position in a document
55##     line -> intptr_t line in a document
56##     colour -> colour integer containing red, green and blue bytes.
57##     string -> pointer to const character
58##     stringresult -> pointer to character, NULL-> return size of result
59##     cells -> pointer to array of cells, each cell containing a style byte and character byte
60##     pointer -> void* pointer that may point to a document, loader, internal text storage or similar
61##     textrange -> range of a min and a max position with an output string
62##     findtext -> searchrange, text -> foundposition
63##     keymod -> integer containing key in low half and modifiers in high half
64##     formatrange
65## Enumeration types always start with a capital letter
66## Types no longer used:
67##     findtextex -> searchrange
68##     charrange -> range of a min and a max position
69##     charrangeresult -> like charrange, but output param
70##     countedstring
71##     point -> x,y
72##     pointresult  -> like point, but output param
73##     rectangle -> left,top,right,bottom
74## Client code should ignore definitions containing types it does not understand, except
75## for possibly #defining the constants
76
77## Line numbers and positions start at 0.
78## String arguments may contain NUL ('\0') characters where the calls provide a length
79## argument and retrieve NUL characters. APIs marked as NUL-terminated also have a
80## NUL appended but client code should calculate the size that will be returned rather
81## than relying upon the NUL whenever possible. Allow for the extra NUL character when
82## allocating buffers. The size to allocate for a stringresult (not including NUL) can be
83## determined by calling with a NULL (0) pointer.
84
85cat Basics
86
87################################################
88## For Scintilla.h
89val INVALID_POSITION=-1
90# Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
91# as many EM_ messages can be used although that use is deprecated.
92val SCI_START=2000
93val SCI_OPTIONAL_START=3000
94val SCI_LEXER_START=4000
95
96# Add text to the document at current position.
97fun void AddText=2001(position length, string text)
98
99# Add array of cells to document.
100fun void AddStyledText=2002(position length, cells c)
101
102# Insert string at a position.
103fun void InsertText=2003(position pos, string text)
104
105# Change the text that is being inserted in response to SC_MOD_INSERTCHECK
106fun void ChangeInsertion=2672(position length, string text)
107
108# Delete all text in the document.
109fun void ClearAll=2004(,)
110
111# Delete a range of text in the document.
112fun void DeleteRange=2645(position start, position lengthDelete)
113
114# Set all style bytes to 0, remove all folding information.
115fun void ClearDocumentStyle=2005(,)
116
117# Returns the number of bytes in the document.
118get position GetLength=2006(,)
119
120# Returns the character byte at the position.
121get int GetCharAt=2007(position pos,)
122
123# Returns the position of the caret.
124get position GetCurrentPos=2008(,)
125
126# Returns the position of the opposite end of the selection to the caret.
127get position GetAnchor=2009(,)
128
129# Returns the style byte at the position.
130get int GetStyleAt=2010(position pos,)
131
132# Redoes the next action on the undo history.
133fun void Redo=2011(,)
134
135# Choose between collecting actions into the undo
136# history and discarding them.
137set void SetUndoCollection=2012(bool collectUndo,)
138
139# Select all the text in the document.
140fun void SelectAll=2013(,)
141
142# Remember the current position in the undo history as the position
143# at which the document was saved.
144fun void SetSavePoint=2014(,)
145
146# Retrieve a buffer of cells.
147# Returns the number of bytes in the buffer not including terminating NULs.
148fun position GetStyledText=2015(, textrange tr)
149
150# Are there any redoable actions in the undo history?
151fun bool CanRedo=2016(,)
152
153# Retrieve the line number at which a particular marker is located.
154fun line MarkerLineFromHandle=2017(int markerHandle,)
155
156# Delete a marker.
157fun void MarkerDeleteHandle=2018(int markerHandle,)
158
159# Retrieve marker handles of a line
160fun int MarkerHandleFromLine=2732(line line, int which)
161
162# Retrieve marker number of a marker handle
163fun int MarkerNumberFromLine=2733(line line, int which)
164
165# Is undo history being collected?
166get bool GetUndoCollection=2019(,)
167
168enu WhiteSpace=SCWS_
169val SCWS_INVISIBLE=0
170val SCWS_VISIBLEALWAYS=1
171val SCWS_VISIBLEAFTERINDENT=2
172val SCWS_VISIBLEONLYININDENT=3
173
174ali SCWS_VISIBLEALWAYS=VISIBLE_ALWAYS
175ali SCWS_VISIBLEAFTERINDENT=VISIBLE_AFTER_INDENT
176ali SCWS_VISIBLEONLYININDENT=VISIBLE_ONLY_IN_INDENT
177
178# Are white space characters currently visible?
179# Returns one of SCWS_* constants.
180get WhiteSpace GetViewWS=2020(,)
181
182# Make white space characters invisible, always visible or visible outside indentation.
183set void SetViewWS=2021(WhiteSpace viewWS,)
184
185enu TabDrawMode=SCTD_
186val SCTD_LONGARROW=0
187val SCTD_STRIKEOUT=1
188
189ali SCTD_LONGARROW=LONG_ARROW
190ali SCTD_STRIKEOUT=STRIKE_OUT
191
192# Retrieve the current tab draw mode.
193# Returns one of SCTD_* constants.
194get TabDrawMode GetTabDrawMode=2698(,)
195
196# Set how tabs are drawn when visible.
197set void SetTabDrawMode=2699(TabDrawMode tabDrawMode,)
198
199# Find the position from a point within the window.
200fun position PositionFromPoint=2022(int x, int y)
201
202# Find the position from a point within the window but return
203# INVALID_POSITION if not close to text.
204fun position PositionFromPointClose=2023(int x, int y)
205
206# Set caret to start of a line and ensure it is visible.
207fun void GotoLine=2024(line line,)
208
209# Set caret to a position and ensure it is visible.
210fun void GotoPos=2025(position caret,)
211
212# Set the selection anchor to a position. The anchor is the opposite
213# end of the selection from the caret.
214set void SetAnchor=2026(position anchor,)
215
216# Retrieve the text of the line containing the caret.
217# Returns the index of the caret on the line.
218# Result is NUL-terminated.
219fun position GetCurLine=2027(position length, stringresult text)
220
221# Retrieve the position of the last correctly styled character.
222get position GetEndStyled=2028(,)
223
224enu EndOfLine=SC_EOL_
225val SC_EOL_CRLF=0
226val SC_EOL_CR=1
227val SC_EOL_LF=2
228
229ali SC_EOL_CRLF=CR_LF
230
231# Convert all line endings in the document to one mode.
232fun void ConvertEOLs=2029(EndOfLine eolMode,)
233
234# Retrieve the current end of line mode - one of CRLF, CR, or LF.
235get EndOfLine GetEOLMode=2030(,)
236
237# Set the current end of line mode.
238set void SetEOLMode=2031(EndOfLine eolMode,)
239
240# Set the current styling position to start.
241# The unused parameter is no longer used and should be set to 0.
242fun void StartStyling=2032(position start, int unused)
243
244# Change style from current styling position for length characters to a style
245# and move the current styling position to after this newly styled segment.
246fun void SetStyling=2033(position length, int style)
247
248# Is drawing done first into a buffer or direct to the screen?
249get bool GetBufferedDraw=2034(,)
250
251# If drawing is buffered then each line of text is drawn into a bitmap buffer
252# before drawing it to the screen to avoid flicker.
253set void SetBufferedDraw=2035(bool buffered,)
254
255# Change the visible size of a tab to be a multiple of the width of a space character.
256set void SetTabWidth=2036(int tabWidth,)
257
258# Retrieve the visible size of a tab.
259get int GetTabWidth=2121(,)
260
261# Set the minimum visual width of a tab.
262set void SetTabMinimumWidth=2724(int pixels,)
263
264# Get the minimum visual width of a tab.
265get int GetTabMinimumWidth=2725(,)
266
267# Clear explicit tabstops on a line.
268fun void ClearTabStops=2675(line line,)
269
270# Add an explicit tab stop for a line.
271fun void AddTabStop=2676(line line, int x)
272
273# Find the next explicit tab stop position on a line after a position.
274fun int GetNextTabStop=2677(line line, int x)
275
276# The SC_CP_UTF8 value can be used to enter Unicode mode.
277# This is the same value as CP_UTF8 in Windows
278val SC_CP_UTF8=65001
279
280# Set the code page used to interpret the bytes of the document as characters.
281# The SC_CP_UTF8 value can be used to enter Unicode mode.
282set void SetCodePage=2037(int codePage,)
283
284enu IMEInteraction=SC_IME_
285val SC_IME_WINDOWED=0
286val SC_IME_INLINE=1
287
288# Is the IME displayed in a window or inline?
289get IMEInteraction GetIMEInteraction=2678(,)
290
291# Choose to display the IME in a window or inline.
292set void SetIMEInteraction=2679(IMEInteraction imeInteraction,)
293
294enu Alpha=SC_ALPHA_
295val SC_ALPHA_TRANSPARENT=0
296val SC_ALPHA_OPAQUE=255
297val SC_ALPHA_NOALPHA=256
298
299ali SC_ALPHA_NOALPHA=NO_ALPHA
300
301enu CursorShape=SC_CURSOR
302val SC_CURSORNORMAL=-1
303val SC_CURSORARROW=2
304val SC_CURSORWAIT=4
305val SC_CURSORREVERSEARROW=7
306
307ali SC_CURSORREVERSEARROW=REVERSE_ARROW
308
309enu MarkerSymbol=SC_MARK_
310val MARKER_MAX=31
311val SC_MARK_CIRCLE=0
312val SC_MARK_ROUNDRECT=1
313val SC_MARK_ARROW=2
314val SC_MARK_SMALLRECT=3
315val SC_MARK_SHORTARROW=4
316val SC_MARK_EMPTY=5
317val SC_MARK_ARROWDOWN=6
318val SC_MARK_MINUS=7
319val SC_MARK_PLUS=8
320
321# Shapes used for outlining column.
322val SC_MARK_VLINE=9
323val SC_MARK_LCORNER=10
324val SC_MARK_TCORNER=11
325val SC_MARK_BOXPLUS=12
326val SC_MARK_BOXPLUSCONNECTED=13
327val SC_MARK_BOXMINUS=14
328val SC_MARK_BOXMINUSCONNECTED=15
329val SC_MARK_LCORNERCURVE=16
330val SC_MARK_TCORNERCURVE=17
331val SC_MARK_CIRCLEPLUS=18
332val SC_MARK_CIRCLEPLUSCONNECTED=19
333val SC_MARK_CIRCLEMINUS=20
334val SC_MARK_CIRCLEMINUSCONNECTED=21
335
336# Invisible mark that only sets the line background colour.
337val SC_MARK_BACKGROUND=22
338val SC_MARK_DOTDOTDOT=23
339val SC_MARK_ARROWS=24
340val SC_MARK_PIXMAP=25
341val SC_MARK_FULLRECT=26
342val SC_MARK_LEFTRECT=27
343val SC_MARK_AVAILABLE=28
344val SC_MARK_UNDERLINE=29
345val SC_MARK_RGBAIMAGE=30
346val SC_MARK_BOOKMARK=31
347val SC_MARK_VERTICALBOOKMARK=32
348
349val SC_MARK_CHARACTER=10000
350
351ali SC_MARK_ROUNDRECT=ROUND_RECT
352ali SC_MARK_SMALLRECT=SMALL_RECT
353ali SC_MARK_SHORTARROW=SHORT_ARROW
354ali SC_MARK_ARROWDOWN=ARROW_DOWN
355ali SC_MARK_VLINE=V_LINE
356ali SC_MARK_LCORNER=L_CORNER
357ali SC_MARK_TCORNER=T_CORNER
358ali SC_MARK_BOXPLUS=BOX_PLUS
359ali SC_MARK_BOXPLUSCONNECTED=BOX_PLUS_CONNECTED
360ali SC_MARK_BOXMINUS=BOX_MINUS
361ali SC_MARK_BOXMINUSCONNECTED=BOX_MINUS_CONNECTED
362ali SC_MARK_LCORNERCURVE=L_CORNER_CURVE
363ali SC_MARK_TCORNERCURVE=T_CORNER_CURVE
364ali SC_MARK_CIRCLEPLUS=CIRCLE_PLUS
365ali SC_MARK_CIRCLEPLUSCONNECTED=CIRCLE_PLUS_CONNECTED
366ali SC_MARK_CIRCLEMINUS=CIRCLE_MINUS
367ali SC_MARK_CIRCLEMINUSCONNECTED=CIRCLE_MINUS_CONNECTED
368ali SC_MARK_DOTDOTDOT=DOT_DOT_DOT
369ali SC_MARK_FULLRECT=FULL_RECT
370ali SC_MARK_LEFTRECT=LEFT_RECT
371ali SC_MARK_RGBAIMAGE=RGBA_IMAGE
372ali SC_MARK_VERTICALBOOKMARK=VERTICAL_BOOKMARK
373
374enu MarkerOutline=SC_MARKNUM_
375# Markers used for outlining column.
376val SC_MARKNUM_FOLDEREND=25
377val SC_MARKNUM_FOLDEROPENMID=26
378val SC_MARKNUM_FOLDERMIDTAIL=27
379val SC_MARKNUM_FOLDERTAIL=28
380val SC_MARKNUM_FOLDERSUB=29
381val SC_MARKNUM_FOLDER=30
382val SC_MARKNUM_FOLDEROPEN=31
383
384ali SC_MARKNUM_FOLDEREND=FOLDER_END
385ali SC_MARKNUM_FOLDEROPENMID=FOLDER_OPEN_MID
386ali SC_MARKNUM_FOLDERMIDTAIL=FOLDER_MID_TAIL
387ali SC_MARKNUM_FOLDERTAIL=FOLDER_TAIL
388ali SC_MARKNUM_FOLDERSUB=FOLDER_SUB
389ali SC_MARKNUM_FOLDEROPEN=FOLDER_OPEN
390
391# SC_MASK_FOLDERS doesn't go in an enumeration as larger than max 32-bit positive integer
392val SC_MASK_FOLDERS=0xFE000000
393
394# Set the symbol used for a particular marker number.
395fun void MarkerDefine=2040(int markerNumber, MarkerSymbol markerSymbol)
396
397# Set the foreground colour used for a particular marker number.
398set void MarkerSetFore=2041(int markerNumber, colour fore)
399
400# Set the background colour used for a particular marker number.
401set void MarkerSetBack=2042(int markerNumber, colour back)
402
403# Set the background colour used for a particular marker number when its folding block is selected.
404set void MarkerSetBackSelected=2292(int markerNumber, colour back)
405
406# Enable/disable highlight for current folding block (smallest one that contains the caret)
407fun void MarkerEnableHighlight=2293(bool enabled,)
408
409# Add a marker to a line, returning an ID which can be used to find or delete the marker.
410fun int MarkerAdd=2043(line line, int markerNumber)
411
412# Delete a marker from a line.
413fun void MarkerDelete=2044(line line, int markerNumber)
414
415# Delete all markers with a particular number from all lines.
416fun void MarkerDeleteAll=2045(int markerNumber,)
417
418# Get a bit mask of all the markers set on a line.
419fun int MarkerGet=2046(line line,)
420
421# Find the next line at or after lineStart that includes a marker in mask.
422# Return -1 when no more lines.
423fun line MarkerNext=2047(line lineStart, int markerMask)
424
425# Find the previous line before lineStart that includes a marker in mask.
426fun line MarkerPrevious=2048(line lineStart, int markerMask)
427
428# Define a marker from a pixmap.
429fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap)
430
431# Add a set of markers to a line.
432fun void MarkerAddSet=2466(line line, int markerSet)
433
434# Set the alpha used for a marker that is drawn in the text area, not the margin.
435set void MarkerSetAlpha=2476(int markerNumber, Alpha alpha)
436
437val SC_MAX_MARGIN=4
438
439enu MarginType=SC_MARGIN_
440val SC_MARGIN_SYMBOL=0
441val SC_MARGIN_NUMBER=1
442val SC_MARGIN_BACK=2
443val SC_MARGIN_FORE=3
444val SC_MARGIN_TEXT=4
445val SC_MARGIN_RTEXT=5
446val SC_MARGIN_COLOUR=6
447
448ali SC_MARGIN_RTEXT=R_TEXT
449
450# Set a margin to be either numeric or symbolic.
451set void SetMarginTypeN=2240(int margin, MarginType marginType)
452
453# Retrieve the type of a margin.
454get MarginType GetMarginTypeN=2241(int margin,)
455
456# Set the width of a margin to a width expressed in pixels.
457set void SetMarginWidthN=2242(int margin, int pixelWidth)
458
459# Retrieve the width of a margin in pixels.
460get int GetMarginWidthN=2243(int margin,)
461
462# Set a mask that determines which markers are displayed in a margin.
463set void SetMarginMaskN=2244(int margin, int mask)
464
465# Retrieve the marker mask of a margin.
466get int GetMarginMaskN=2245(int margin,)
467
468# Make a margin sensitive or insensitive to mouse clicks.
469set void SetMarginSensitiveN=2246(int margin, bool sensitive)
470
471# Retrieve the mouse click sensitivity of a margin.
472get bool GetMarginSensitiveN=2247(int margin,)
473
474# Set the cursor shown when the mouse is inside a margin.
475set void SetMarginCursorN=2248(int margin, CursorShape cursor)
476
477# Retrieve the cursor shown in a margin.
478get CursorShape GetMarginCursorN=2249(int margin,)
479
480# Set the background colour of a margin. Only visible for SC_MARGIN_COLOUR.
481set void SetMarginBackN=2250(int margin, colour back)
482
483# Retrieve the background colour of a margin
484get colour GetMarginBackN=2251(int margin,)
485
486# Allocate a non-standard number of margins.
487set void SetMargins=2252(int margins,)
488
489# How many margins are there?.
490get int GetMargins=2253(,)
491
492# Styles in range 32..39 are predefined for parts of the UI and are not used as normal styles.
493enu StylesCommon=STYLE_
494val STYLE_DEFAULT=32
495val STYLE_LINENUMBER=33
496val STYLE_BRACELIGHT=34
497val STYLE_BRACEBAD=35
498val STYLE_CONTROLCHAR=36
499val STYLE_INDENTGUIDE=37
500val STYLE_CALLTIP=38
501val STYLE_FOLDDISPLAYTEXT=39
502val STYLE_LASTPREDEFINED=39
503val STYLE_MAX=255
504
505ali STYLE_LINENUMBER=LINE_NUMBER
506ali STYLE_BRACELIGHT=BRACE_LIGHT
507ali STYLE_BRACEBAD=BRACE_BAD
508ali STYLE_CONTROLCHAR=CONTROL_CHAR
509ali STYLE_INDENTGUIDE=INDENT_GUIDE
510ali STYLE_CALLTIP=CALL_TIP
511ali STYLE_FOLDDISPLAYTEXT=FOLD_DISPLAY_TEXT
512ali STYLE_LASTPREDEFINED=LAST_PREDEFINED
513
514# Character set identifiers are used in StyleSetCharacterSet.
515# The values are the same as the Windows *_CHARSET values.
516enu CharacterSet=SC_CHARSET_
517val SC_CHARSET_ANSI=0
518val SC_CHARSET_DEFAULT=1
519val SC_CHARSET_BALTIC=186
520val SC_CHARSET_CHINESEBIG5=136
521val SC_CHARSET_EASTEUROPE=238
522val SC_CHARSET_GB2312=134
523val SC_CHARSET_GREEK=161
524val SC_CHARSET_HANGUL=129
525val SC_CHARSET_MAC=77
526val SC_CHARSET_OEM=255
527val SC_CHARSET_RUSSIAN=204
528val SC_CHARSET_OEM866=866
529val SC_CHARSET_CYRILLIC=1251
530val SC_CHARSET_SHIFTJIS=128
531val SC_CHARSET_SYMBOL=2
532val SC_CHARSET_TURKISH=162
533val SC_CHARSET_JOHAB=130
534val SC_CHARSET_HEBREW=177
535val SC_CHARSET_ARABIC=178
536val SC_CHARSET_VIETNAMESE=163
537val SC_CHARSET_THAI=222
538val SC_CHARSET_8859_15=1000
539
540ali SC_CHARSET_CHINESEBIG5=CHINESE_BIG5
541ali SC_CHARSET_EASTEUROPE=EAST_EUROPE
542ali SC_CHARSET_GB2312=G_B_2312
543ali SC_CHARSET_OEM866=OEM_866
544ali SC_CHARSET_SHIFTJIS=SHIFT_JIS
545ali SC_CHARSET_8859_15=ISO_8859_15
546
547# Clear all the styles and make equivalent to the global default style.
548fun void StyleClearAll=2050(,)
549
550# Set the foreground colour of a style.
551set void StyleSetFore=2051(int style, colour fore)
552
553# Set the background colour of a style.
554set void StyleSetBack=2052(int style, colour back)
555
556# Set a style to be bold or not.
557set void StyleSetBold=2053(int style, bool bold)
558
559# Set a style to be italic or not.
560set void StyleSetItalic=2054(int style, bool italic)
561
562# Set the size of characters of a style.
563set void StyleSetSize=2055(int style, int sizePoints)
564
565# Set the font of a style.
566set void StyleSetFont=2056(int style, string fontName)
567
568# Set a style to have its end of line filled or not.
569set void StyleSetEOLFilled=2057(int style, bool eolFilled)
570
571# Reset the default style to its state at startup
572fun void StyleResetDefault=2058(,)
573
574# Set a style to be underlined or not.
575set void StyleSetUnderline=2059(int style, bool underline)
576
577enu CaseVisible=SC_CASE_
578val SC_CASE_MIXED=0
579val SC_CASE_UPPER=1
580val SC_CASE_LOWER=2
581val SC_CASE_CAMEL=3
582
583# Get the foreground colour of a style.
584get colour StyleGetFore=2481(int style,)
585
586# Get the background colour of a style.
587get colour StyleGetBack=2482(int style,)
588
589# Get is a style bold or not.
590get bool StyleGetBold=2483(int style,)
591
592# Get is a style italic or not.
593get bool StyleGetItalic=2484(int style,)
594
595# Get the size of characters of a style.
596get int StyleGetSize=2485(int style,)
597
598# Get the font of a style.
599# Returns the length of the fontName
600# Result is NUL-terminated.
601get int StyleGetFont=2486(int style, stringresult fontName)
602
603# Get is a style to have its end of line filled or not.
604get bool StyleGetEOLFilled=2487(int style,)
605
606# Get is a style underlined or not.
607get bool StyleGetUnderline=2488(int style,)
608
609# Get is a style mixed case, or to force upper or lower case.
610get CaseVisible StyleGetCase=2489(int style,)
611
612# Get the character get of the font in a style.
613get CharacterSet StyleGetCharacterSet=2490(int style,)
614
615# Get is a style visible or not.
616get bool StyleGetVisible=2491(int style,)
617
618# Get is a style changeable or not (read only).
619# Experimental feature, currently buggy.
620get bool StyleGetChangeable=2492(int style,)
621
622# Get is a style a hotspot or not.
623get bool StyleGetHotSpot=2493(int style,)
624
625# Set a style to be mixed case, or to force upper or lower case.
626set void StyleSetCase=2060(int style, CaseVisible caseVisible)
627
628val SC_FONT_SIZE_MULTIPLIER=100
629
630# Set the size of characters of a style. Size is in points multiplied by 100.
631set void StyleSetSizeFractional=2061(int style, int sizeHundredthPoints)
632
633# Get the size of characters of a style in points multiplied by 100
634get int StyleGetSizeFractional=2062(int style,)
635
636enu FontWeight=SC_WEIGHT_
637val SC_WEIGHT_NORMAL=400
638val SC_WEIGHT_SEMIBOLD=600
639val SC_WEIGHT_BOLD=700
640
641ali SC_WEIGHT_SEMIBOLD=SEMI_BOLD
642
643# Set the weight of characters of a style.
644set void StyleSetWeight=2063(int style, FontWeight weight)
645
646# Get the weight of characters of a style.
647get FontWeight StyleGetWeight=2064(int style,)
648
649# Set the character set of the font in a style.
650set void StyleSetCharacterSet=2066(int style, CharacterSet characterSet)
651
652# Set a style to be a hotspot or not.
653set void StyleSetHotSpot=2409(int style, bool hotspot)
654
655# Set the foreground colour of the main and additional selections and whether to use this setting.
656fun void SetSelFore=2067(bool useSetting, colour fore)
657
658# Set the background colour of the main and additional selections and whether to use this setting.
659fun void SetSelBack=2068(bool useSetting, colour back)
660
661# Get the alpha of the selection.
662get Alpha GetSelAlpha=2477(,)
663
664# Set the alpha of the selection.
665set void SetSelAlpha=2478(Alpha alpha,)
666
667# Is the selection end of line filled?
668get bool GetSelEOLFilled=2479(,)
669
670# Set the selection to have its end of line filled or not.
671set void SetSelEOLFilled=2480(bool filled,)
672
673# Set the foreground colour of the caret.
674set void SetCaretFore=2069(colour fore,)
675
676# When key+modifier combination keyDefinition is pressed perform sciCommand.
677fun void AssignCmdKey=2070(keymod keyDefinition, int sciCommand)
678
679# When key+modifier combination keyDefinition is pressed do nothing.
680fun void ClearCmdKey=2071(keymod keyDefinition,)
681
682# Drop all key mappings.
683fun void ClearAllCmdKeys=2072(,)
684
685# Set the styles for a segment of the document.
686fun void SetStylingEx=2073(position length, string styles)
687
688# Set a style to be visible or not.
689set void StyleSetVisible=2074(int style, bool visible)
690
691# Get the time in milliseconds that the caret is on and off.
692get int GetCaretPeriod=2075(,)
693
694# Get the time in milliseconds that the caret is on and off. 0 = steady on.
695set void SetCaretPeriod=2076(int periodMilliseconds,)
696
697# Set the set of characters making up words for when moving or selecting by word.
698# First sets defaults like SetCharsDefault.
699set void SetWordChars=2077(, string characters)
700
701# Get the set of characters making up words for when moving or selecting by word.
702# Returns the number of characters
703get int GetWordChars=2646(, stringresult characters)
704
705# Set the number of characters to have directly indexed categories
706set void SetCharacterCategoryOptimization=2720(int countCharacters,)
707
708# Get the number of characters to have directly indexed categories
709get int GetCharacterCategoryOptimization=2721(,)
710
711# Start a sequence of actions that is undone and redone as a unit.
712# May be nested.
713fun void BeginUndoAction=2078(,)
714
715# End a sequence of actions that is undone and redone as a unit.
716fun void EndUndoAction=2079(,)
717
718# Indicator style enumeration and some constants
719enu IndicatorStyle=INDIC_
720val INDIC_PLAIN=0
721val INDIC_SQUIGGLE=1
722val INDIC_TT=2
723val INDIC_DIAGONAL=3
724val INDIC_STRIKE=4
725val INDIC_HIDDEN=5
726val INDIC_BOX=6
727val INDIC_ROUNDBOX=7
728val INDIC_STRAIGHTBOX=8
729val INDIC_DASH=9
730val INDIC_DOTS=10
731val INDIC_SQUIGGLELOW=11
732val INDIC_DOTBOX=12
733val INDIC_SQUIGGLEPIXMAP=13
734val INDIC_COMPOSITIONTHICK=14
735val INDIC_COMPOSITIONTHIN=15
736val INDIC_FULLBOX=16
737val INDIC_TEXTFORE=17
738val INDIC_POINT=18
739val INDIC_POINTCHARACTER=19
740val INDIC_GRADIENT=20
741val INDIC_GRADIENTCENTRE=21
742
743# INDIC_CONTAINER, INDIC_IME, INDIC_IME_MAX, and INDIC_MAX are indicator numbers,
744# not IndicatorStyles so should not really be in the INDIC_ enumeration.
745# They are redeclared in IndicatorNumbers INDICATOR_.
746val INDIC_CONTAINER=8
747val INDIC_IME=32
748val INDIC_IME_MAX=35
749val INDIC_MAX=35
750
751enu IndicatorNumbers=INDICATOR_
752val INDICATOR_CONTAINER=8
753val INDICATOR_IME=32
754val INDICATOR_IME_MAX=35
755val INDICATOR_MAX=35
756
757ali INDIC_TT=T_T
758ali INDIC_ROUNDBOX=ROUND_BOX
759ali INDIC_STRAIGHTBOX=STRAIGHT_BOX
760ali INDIC_SQUIGGLELOW=SQUIGGLE_LOW
761ali INDIC_DOTBOX=DOT_BOX
762ali INDIC_SQUIGGLEPIXMAP=SQUIGGLE_PIXMAP
763ali INDIC_COMPOSITIONTHICK=COMPOSITION_THICK
764ali INDIC_COMPOSITIONTHIN=COMPOSITION_THIN
765ali INDIC_FULLBOX=FULL_BOX
766ali INDIC_TEXTFORE=TEXT_FORE
767ali INDIC_POINTCHARACTER=POINT_CHARACTER
768ali INDIC_GRADIENTCENTRE=GRADIENT_CENTRE
769
770# Set an indicator to plain, squiggle or TT.
771set void IndicSetStyle=2080(int indicator, IndicatorStyle indicatorStyle)
772
773# Retrieve the style of an indicator.
774get IndicatorStyle IndicGetStyle=2081(int indicator,)
775
776# Set the foreground colour of an indicator.
777set void IndicSetFore=2082(int indicator, colour fore)
778
779# Retrieve the foreground colour of an indicator.
780get colour IndicGetFore=2083(int indicator,)
781
782# Set an indicator to draw under text or over(default).
783set void IndicSetUnder=2510(int indicator, bool under)
784
785# Retrieve whether indicator drawn under or over text.
786get bool IndicGetUnder=2511(int indicator,)
787
788# Set a hover indicator to plain, squiggle or TT.
789set void IndicSetHoverStyle=2680(int indicator, IndicatorStyle indicatorStyle)
790
791# Retrieve the hover style of an indicator.
792get IndicatorStyle IndicGetHoverStyle=2681(int indicator,)
793
794# Set the foreground hover colour of an indicator.
795set void IndicSetHoverFore=2682(int indicator, colour fore)
796
797# Retrieve the foreground hover colour of an indicator.
798get colour IndicGetHoverFore=2683(int indicator,)
799
800enu IndicValue=SC_INDICVALUE
801val SC_INDICVALUEBIT=0x1000000
802val SC_INDICVALUEMASK=0xFFFFFF
803
804enu IndicFlag=SC_INDICFLAG_
805val SC_INDICFLAG_VALUEFORE=1
806
807ali SC_INDICFLAG_VALUEFORE=VALUE_FORE
808
809# Set the attributes of an indicator.
810set void IndicSetFlags=2684(int indicator, IndicFlag flags)
811
812# Retrieve the attributes of an indicator.
813get IndicFlag IndicGetFlags=2685(int indicator,)
814
815# Set the foreground colour of all whitespace and whether to use this setting.
816fun void SetWhitespaceFore=2084(bool useSetting, colour fore)
817
818# Set the background colour of all whitespace and whether to use this setting.
819fun void SetWhitespaceBack=2085(bool useSetting, colour back)
820
821# Set the size of the dots used to mark space characters.
822set void SetWhitespaceSize=2086(int size,)
823
824# Get the size of the dots used to mark space characters.
825get int GetWhitespaceSize=2087(,)
826
827# Used to hold extra styling information for each line.
828set void SetLineState=2092(line line, int state)
829
830# Retrieve the extra styling information for a line.
831get int GetLineState=2093(line line,)
832
833# Retrieve the last line number that has line state.
834get int GetMaxLineState=2094(,)
835
836# Is the background of the line containing the caret in a different colour?
837get bool GetCaretLineVisible=2095(,)
838
839# Display the background of the line containing the caret in a different colour.
840set void SetCaretLineVisible=2096(bool show,)
841
842# Get the colour of the background of the line containing the caret.
843get colour GetCaretLineBack=2097(,)
844
845# Set the colour of the background of the line containing the caret.
846set void SetCaretLineBack=2098(colour back,)
847
848# Retrieve the caret line frame width.
849# Width = 0 means this option is disabled.
850get int GetCaretLineFrame=2704(,)
851
852# Display the caret line framed.
853# Set width != 0 to enable this option and width = 0 to disable it.
854set void SetCaretLineFrame=2705(int width,)
855
856# Set a style to be changeable or not (read only).
857# Experimental feature, currently buggy.
858set void StyleSetChangeable=2099(int style, bool changeable)
859
860# Display a auto-completion list.
861# The lengthEntered parameter indicates how many characters before
862# the caret should be used to provide context.
863fun void AutoCShow=2100(position lengthEntered, string itemList)
864
865# Remove the auto-completion list from the screen.
866fun void AutoCCancel=2101(,)
867
868# Is there an auto-completion list visible?
869fun bool AutoCActive=2102(,)
870
871# Retrieve the position of the caret when the auto-completion list was displayed.
872fun position AutoCPosStart=2103(,)
873
874# User has selected an item so remove the list and insert the selection.
875fun void AutoCComplete=2104(,)
876
877# Define a set of character that when typed cancel the auto-completion list.
878fun void AutoCStops=2105(, string characterSet)
879
880# Change the separator character in the string setting up an auto-completion list.
881# Default is space but can be changed if items contain space.
882set void AutoCSetSeparator=2106(int separatorCharacter,)
883
884# Retrieve the auto-completion list separator character.
885get int AutoCGetSeparator=2107(,)
886
887# Select the item in the auto-completion list that starts with a string.
888fun void AutoCSelect=2108(, string select)
889
890# Should the auto-completion list be cancelled if the user backspaces to a
891# position before where the box was created.
892set void AutoCSetCancelAtStart=2110(bool cancel,)
893
894# Retrieve whether auto-completion cancelled by backspacing before start.
895get bool AutoCGetCancelAtStart=2111(,)
896
897# Define a set of characters that when typed will cause the autocompletion to
898# choose the selected item.
899set void AutoCSetFillUps=2112(, string characterSet)
900
901# Should a single item auto-completion list automatically choose the item.
902set void AutoCSetChooseSingle=2113(bool chooseSingle,)
903
904# Retrieve whether a single item auto-completion list automatically choose the item.
905get bool AutoCGetChooseSingle=2114(,)
906
907# Set whether case is significant when performing auto-completion searches.
908set void AutoCSetIgnoreCase=2115(bool ignoreCase,)
909
910# Retrieve state of ignore case flag.
911get bool AutoCGetIgnoreCase=2116(,)
912
913# Display a list of strings and send notification when user chooses one.
914fun void UserListShow=2117(int listType, string itemList)
915
916# Set whether or not autocompletion is hidden automatically when nothing matches.
917set void AutoCSetAutoHide=2118(bool autoHide,)
918
919# Retrieve whether or not autocompletion is hidden automatically when nothing matches.
920get bool AutoCGetAutoHide=2119(,)
921
922# Set whether or not autocompletion deletes any word characters
923# after the inserted text upon completion.
924set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,)
925
926# Retrieve whether or not autocompletion deletes any word characters
927# after the inserted text upon completion.
928get bool AutoCGetDropRestOfWord=2271(,)
929
930# Register an XPM image for use in autocompletion lists.
931fun void RegisterImage=2405(int type, string xpmData)
932
933# Clear all the registered XPM images.
934fun void ClearRegisteredImages=2408(,)
935
936# Retrieve the auto-completion list type-separator character.
937get int AutoCGetTypeSeparator=2285(,)
938
939# Change the type-separator character in the string setting up an auto-completion list.
940# Default is '?' but can be changed if items contain '?'.
941set void AutoCSetTypeSeparator=2286(int separatorCharacter,)
942
943# Set the maximum width, in characters, of auto-completion and user lists.
944# Set to 0 to autosize to fit longest item, which is the default.
945set void AutoCSetMaxWidth=2208(int characterCount,)
946
947# Get the maximum width, in characters, of auto-completion and user lists.
948get int AutoCGetMaxWidth=2209(,)
949
950# Set the maximum height, in rows, of auto-completion and user lists.
951# The default is 5 rows.
952set void AutoCSetMaxHeight=2210(int rowCount,)
953
954# Set the maximum height, in rows, of auto-completion and user lists.
955get int AutoCGetMaxHeight=2211(,)
956
957# Set the number of spaces used for one level of indentation.
958set void SetIndent=2122(int indentSize,)
959
960# Retrieve indentation size.
961get int GetIndent=2123(,)
962
963# Indentation will only use space characters if useTabs is false, otherwise
964# it will use a combination of tabs and spaces.
965set void SetUseTabs=2124(bool useTabs,)
966
967# Retrieve whether tabs will be used in indentation.
968get bool GetUseTabs=2125(,)
969
970# Change the indentation of a line to a number of columns.
971set void SetLineIndentation=2126(line line, int indentation)
972
973# Retrieve the number of columns that a line is indented.
974get int GetLineIndentation=2127(line line,)
975
976# Retrieve the position before the first non indentation character on a line.
977get position GetLineIndentPosition=2128(line line,)
978
979# Retrieve the column number of a position, taking tab width into account.
980get position GetColumn=2129(position pos,)
981
982# Count characters between two positions.
983fun position CountCharacters=2633(position start, position end)
984
985# Count code units between two positions.
986fun position CountCodeUnits=2715(position start, position end)
987
988# Show or hide the horizontal scroll bar.
989set void SetHScrollBar=2130(bool visible,)
990# Is the horizontal scroll bar visible?
991get bool GetHScrollBar=2131(,)
992
993enu IndentView=SC_IV_
994val SC_IV_NONE=0
995val SC_IV_REAL=1
996val SC_IV_LOOKFORWARD=2
997val SC_IV_LOOKBOTH=3
998
999ali SC_IV_LOOKFORWARD=LOOK_FORWARD
1000ali SC_IV_LOOKBOTH=LOOK_BOTH
1001
1002# Show or hide indentation guides.
1003set void SetIndentationGuides=2132(IndentView indentView,)
1004
1005# Are the indentation guides visible?
1006get IndentView GetIndentationGuides=2133(,)
1007
1008# Set the highlighted indentation guide column.
1009# 0 = no highlighted guide.
1010set void SetHighlightGuide=2134(position column,)
1011
1012# Get the highlighted indentation guide column.
1013get position GetHighlightGuide=2135(,)
1014
1015# Get the position after the last visible characters on a line.
1016get position GetLineEndPosition=2136(line line,)
1017
1018# Get the code page used to interpret the bytes of the document as characters.
1019get int GetCodePage=2137(,)
1020
1021# Get the foreground colour of the caret.
1022get colour GetCaretFore=2138(,)
1023
1024# In read-only mode?
1025get bool GetReadOnly=2140(,)
1026
1027# Sets the position of the caret.
1028set void SetCurrentPos=2141(position caret,)
1029
1030# Sets the position that starts the selection - this becomes the anchor.
1031set void SetSelectionStart=2142(position anchor,)
1032
1033# Returns the position at the start of the selection.
1034get position GetSelectionStart=2143(,)
1035
1036# Sets the position that ends the selection - this becomes the caret.
1037set void SetSelectionEnd=2144(position caret,)
1038
1039# Returns the position at the end of the selection.
1040get position GetSelectionEnd=2145(,)
1041
1042# Set caret to a position, while removing any existing selection.
1043fun void SetEmptySelection=2556(position caret,)
1044
1045# Sets the print magnification added to the point size of each style for printing.
1046set void SetPrintMagnification=2146(int magnification,)
1047
1048# Returns the print magnification.
1049get int GetPrintMagnification=2147(,)
1050
1051enu PrintOption=SC_PRINT_
1052# PrintColourMode - use same colours as screen.
1053# with the exception of line number margins, which use a white background
1054val SC_PRINT_NORMAL=0
1055# PrintColourMode - invert the light value of each style for printing.
1056val SC_PRINT_INVERTLIGHT=1
1057# PrintColourMode - force black text on white background for printing.
1058val SC_PRINT_BLACKONWHITE=2
1059# PrintColourMode - text stays coloured, but all background is forced to be white for printing.
1060val SC_PRINT_COLOURONWHITE=3
1061# PrintColourMode - only the default-background is forced to be white for printing.
1062val SC_PRINT_COLOURONWHITEDEFAULTBG=4
1063# PrintColourMode - use same colours as screen, including line number margins.
1064val SC_PRINT_SCREENCOLOURS=5
1065
1066ali SC_PRINT_INVERTLIGHT=INVERT_LIGHT
1067ali SC_PRINT_BLACKONWHITE=BLACK_ON_WHITE
1068ali SC_PRINT_COLOURONWHITE=COLOUR_ON_WHITE
1069ali SC_PRINT_COLOURONWHITEDEFAULTBG=COLOUR_ON_WHITE_DEFAULT_B_G
1070ali SC_PRINT_SCREENCOLOURS=SCREEN_COLOURS
1071
1072# Modify colours when printing for clearer printed text.
1073set void SetPrintColourMode=2148(PrintOption mode,)
1074
1075# Returns the print colour mode.
1076get PrintOption GetPrintColourMode=2149(,)
1077
1078enu FindOption=SCFIND_
1079val SCFIND_NONE=0x0
1080val SCFIND_WHOLEWORD=0x2
1081val SCFIND_MATCHCASE=0x4
1082val SCFIND_WORDSTART=0x00100000
1083val SCFIND_REGEXP=0x00200000
1084val SCFIND_POSIX=0x00400000
1085val SCFIND_CXX11REGEX=0x00800000
1086
1087ali SCFIND_WHOLEWORD=WHOLE_WORD
1088ali SCFIND_MATCHCASE=MATCH_CASE
1089ali SCFIND_WORDSTART=WORD_START
1090ali SCFIND_REGEXP=REG_EXP
1091ali SCFIND_CXX11REGEX=CXX11_REG_EX
1092
1093# Find some text in the document.
1094fun position FindText=2150(FindOption searchFlags, findtext ft)
1095
1096# On Windows, will draw the document into a display context such as a printer.
1097fun position FormatRange=2151(bool draw, formatrange fr)
1098
1099# Retrieve the display line at the top of the display.
1100get line GetFirstVisibleLine=2152(,)
1101
1102# Retrieve the contents of a line.
1103# Returns the length of the line.
1104fun position GetLine=2153(line line, stringresult text)
1105
1106# Returns the number of lines in the document. There is always at least one.
1107get line GetLineCount=2154(,)
1108
1109# Sets the size in pixels of the left margin.
1110set void SetMarginLeft=2155(, int pixelWidth)
1111
1112# Returns the size in pixels of the left margin.
1113get int GetMarginLeft=2156(,)
1114
1115# Sets the size in pixels of the right margin.
1116set void SetMarginRight=2157(, int pixelWidth)
1117
1118# Returns the size in pixels of the right margin.
1119get int GetMarginRight=2158(,)
1120
1121# Is the document different from when it was last saved?
1122get bool GetModify=2159(,)
1123
1124# Select a range of text.
1125fun void SetSel=2160(position anchor, position caret)
1126
1127# Retrieve the selected text.
1128# Return the length of the text.
1129# Result is NUL-terminated.
1130fun position GetSelText=2161(, stringresult text)
1131
1132# Retrieve a range of text.
1133# Return the length of the text.
1134fun position GetTextRange=2162(, textrange tr)
1135
1136# Draw the selection either highlighted or in normal (non-highlighted) style.
1137fun void HideSelection=2163(bool hide,)
1138
1139# Retrieve the x value of the point in the window where a position is displayed.
1140fun int PointXFromPosition=2164(, position pos)
1141
1142# Retrieve the y value of the point in the window where a position is displayed.
1143fun int PointYFromPosition=2165(, position pos)
1144
1145# Retrieve the line containing a position.
1146fun line LineFromPosition=2166(position pos,)
1147
1148# Retrieve the position at the start of a line.
1149fun position PositionFromLine=2167(line line,)
1150
1151# Scroll horizontally and vertically.
1152fun void LineScroll=2168(position columns, line lines)
1153
1154# Ensure the caret is visible.
1155fun void ScrollCaret=2169(,)
1156
1157# Scroll the argument positions and the range between them into view giving
1158# priority to the primary position then the secondary position.
1159# This may be used to make a search match visible.
1160fun void ScrollRange=2569(position secondary, position primary)
1161
1162# Replace the selected text with the argument text.
1163fun void ReplaceSel=2170(, string text)
1164
1165# Set to read only or read write.
1166set void SetReadOnly=2171(bool readOnly,)
1167
1168# Null operation.
1169fun void Null=2172(,)
1170
1171# Will a paste succeed?
1172fun bool CanPaste=2173(,)
1173
1174# Are there any undoable actions in the undo history?
1175fun bool CanUndo=2174(,)
1176
1177# Delete the undo history.
1178fun void EmptyUndoBuffer=2175(,)
1179
1180# Undo one action in the undo history.
1181fun void Undo=2176(,)
1182
1183# Cut the selection to the clipboard.
1184fun void Cut=2177(,)
1185
1186# Copy the selection to the clipboard.
1187fun void Copy=2178(,)
1188
1189# Paste the contents of the clipboard into the document replacing the selection.
1190fun void Paste=2179(,)
1191
1192# Clear the selection.
1193fun void Clear=2180(,)
1194
1195# Replace the contents of the document with the argument text.
1196fun void SetText=2181(, string text)
1197
1198# Retrieve all the text in the document.
1199# Returns number of characters retrieved.
1200# Result is NUL-terminated.
1201fun position GetText=2182(position length, stringresult text)
1202
1203# Retrieve the number of characters in the document.
1204get position GetTextLength=2183(,)
1205
1206# Retrieve a pointer to a function that processes messages for this Scintilla.
1207get pointer GetDirectFunction=2184(,)
1208
1209# Retrieve a pointer value to use as the first argument when calling
1210# the function returned by GetDirectFunction.
1211get pointer GetDirectPointer=2185(,)
1212
1213# Set to overtype (true) or insert mode.
1214set void SetOvertype=2186(bool overType,)
1215
1216# Returns true if overtype mode is active otherwise false is returned.
1217get bool GetOvertype=2187(,)
1218
1219# Set the width of the insert mode caret.
1220set void SetCaretWidth=2188(int pixelWidth,)
1221
1222# Returns the width of the insert mode caret.
1223get int GetCaretWidth=2189(,)
1224
1225# Sets the position that starts the target which is used for updating the
1226# document without affecting the scroll position.
1227set void SetTargetStart=2190(position start,)
1228
1229# Get the position that starts the target.
1230get position GetTargetStart=2191(,)
1231
1232# Sets the virtual space of the target start
1233set void SetTargetStartVirtualSpace=2728(position space,)
1234
1235# Get the virtual space of the target start
1236get position GetTargetStartVirtualSpace=2729(,)
1237
1238# Sets the position that ends the target which is used for updating the
1239# document without affecting the scroll position.
1240set void SetTargetEnd=2192(position end,)
1241
1242# Get the position that ends the target.
1243get position GetTargetEnd=2193(,)
1244
1245# Sets the virtual space of the target end
1246set void SetTargetEndVirtualSpace=2730(position space,)
1247
1248# Get the virtual space of the target end
1249get position GetTargetEndVirtualSpace=2731(,)
1250
1251# Sets both the start and end of the target in one call.
1252fun void SetTargetRange=2686(position start, position end)
1253
1254# Retrieve the text in the target.
1255get position GetTargetText=2687(, stringresult text)
1256
1257# Make the target range start and end be the same as the selection range start and end.
1258fun void TargetFromSelection=2287(,)
1259
1260# Sets the target to the whole document.
1261fun void TargetWholeDocument=2690(,)
1262
1263# Replace the target text with the argument text.
1264# Text is counted so it can contain NULs.
1265# Returns the length of the replacement text.
1266fun position ReplaceTarget=2194(position length, string text)
1267
1268# Replace the target text with the argument text after \d processing.
1269# Text is counted so it can contain NULs.
1270# Looks for \d where d is between 1 and 9 and replaces these with the strings
1271# matched in the last search operation which were surrounded by \( and \).
1272# Returns the length of the replacement text including any change
1273# caused by processing the \d patterns.
1274fun position ReplaceTargetRE=2195(position length, string text)
1275
1276# Search for a counted string in the target and set the target to the found
1277# range. Text is counted so it can contain NULs.
1278# Returns start of found range or -1 for failure in which case target is not moved.
1279fun position SearchInTarget=2197(position length, string text)
1280
1281# Set the search flags used by SearchInTarget.
1282set void SetSearchFlags=2198(FindOption searchFlags,)
1283
1284# Get the search flags used by SearchInTarget.
1285get FindOption GetSearchFlags=2199(,)
1286
1287# Show a call tip containing a definition near position pos.
1288fun void CallTipShow=2200(position pos, string definition)
1289
1290# Remove the call tip from the screen.
1291fun void CallTipCancel=2201(,)
1292
1293# Is there an active call tip?
1294fun bool CallTipActive=2202(,)
1295
1296# Retrieve the position where the caret was before displaying the call tip.
1297fun position CallTipPosStart=2203(,)
1298
1299# Set the start position in order to change when backspacing removes the calltip.
1300set void CallTipSetPosStart=2214(position posStart,)
1301
1302# Highlight a segment of the definition.
1303fun void CallTipSetHlt=2204(position highlightStart, position highlightEnd)
1304
1305# Set the background colour for the call tip.
1306set void CallTipSetBack=2205(colour back,)
1307
1308# Set the foreground colour for the call tip.
1309set void CallTipSetFore=2206(colour fore,)
1310
1311# Set the foreground colour for the highlighted part of the call tip.
1312set void CallTipSetForeHlt=2207(colour fore,)
1313
1314# Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
1315set void CallTipUseStyle=2212(int tabSize,)
1316
1317# Set position of calltip, above or below text.
1318set void CallTipSetPosition=2213(bool above,)
1319
1320# Find the display line of a document line taking hidden lines into account.
1321fun line VisibleFromDocLine=2220(line docLine,)
1322
1323# Find the document line of a display line taking hidden lines into account.
1324fun line DocLineFromVisible=2221(line displayLine,)
1325
1326# The number of display lines needed to wrap a document line
1327fun line WrapCount=2235(line docLine,)
1328
1329enu FoldLevel=SC_FOLDLEVEL
1330val SC_FOLDLEVELBASE=0x400
1331val SC_FOLDLEVELWHITEFLAG=0x1000
1332val SC_FOLDLEVELHEADERFLAG=0x2000
1333val SC_FOLDLEVELNUMBERMASK=0x0FFF
1334
1335ali SC_FOLDLEVELWHITEFLAG=WHITE_FLAG
1336ali SC_FOLDLEVELHEADERFLAG=HEADER_FLAG
1337ali SC_FOLDLEVELNUMBERMASK=NUMBER_MASK
1338
1339# Set the fold level of a line.
1340# This encodes an integer level along with flags indicating whether the
1341# line is a header and whether it is effectively white space.
1342set void SetFoldLevel=2222(line line, FoldLevel level)
1343
1344# Retrieve the fold level of a line.
1345get FoldLevel GetFoldLevel=2223(line line,)
1346
1347# Find the last child line of a header line.
1348get line GetLastChild=2224(line line, FoldLevel level)
1349
1350# Find the parent line of a child line.
1351get line GetFoldParent=2225(line line,)
1352
1353# Make a range of lines visible.
1354fun void ShowLines=2226(line lineStart, line lineEnd)
1355
1356# Make a range of lines invisible.
1357fun void HideLines=2227(line lineStart, line lineEnd)
1358
1359# Is a line visible?
1360get bool GetLineVisible=2228(line line,)
1361
1362# Are all lines visible?
1363get bool GetAllLinesVisible=2236(,)
1364
1365# Show the children of a header line.
1366set void SetFoldExpanded=2229(line line, bool expanded)
1367
1368# Is a header line expanded?
1369get bool GetFoldExpanded=2230(line line,)
1370
1371# Switch a header line between expanded and contracted.
1372fun void ToggleFold=2231(line line,)
1373
1374# Switch a header line between expanded and contracted and show some text after the line.
1375fun void ToggleFoldShowText=2700(line line, string text)
1376
1377enu FoldDisplayTextStyle=SC_FOLDDISPLAYTEXT_
1378val SC_FOLDDISPLAYTEXT_HIDDEN=0
1379val SC_FOLDDISPLAYTEXT_STANDARD=1
1380val SC_FOLDDISPLAYTEXT_BOXED=2
1381
1382# Set the style of fold display text.
1383set void FoldDisplayTextSetStyle=2701(FoldDisplayTextStyle style,)
1384
1385# Get the style of fold display text.
1386get FoldDisplayTextStyle FoldDisplayTextGetStyle=2707(,)
1387
1388# Set the default fold display text.
1389fun void SetDefaultFoldDisplayText=2722(, string text)
1390
1391# Get the default fold display text.
1392fun int GetDefaultFoldDisplayText=2723(, stringresult text)
1393
1394enu FoldAction=SC_FOLDACTION_
1395val SC_FOLDACTION_CONTRACT=0
1396val SC_FOLDACTION_EXPAND=1
1397val SC_FOLDACTION_TOGGLE=2
1398
1399# Expand or contract a fold header.
1400fun void FoldLine=2237(line line, FoldAction action)
1401
1402# Expand or contract a fold header and its children.
1403fun void FoldChildren=2238(line line, FoldAction action)
1404
1405# Expand a fold header and all children. Use the level argument instead of the line's current level.
1406fun void ExpandChildren=2239(line line, FoldLevel level)
1407
1408# Expand or contract all fold headers.
1409fun void FoldAll=2662(FoldAction action,)
1410
1411# Ensure a particular line is visible by expanding any header line hiding it.
1412fun void EnsureVisible=2232(line line,)
1413
1414enu AutomaticFold=SC_AUTOMATICFOLD_
1415val SC_AUTOMATICFOLD_SHOW=0x0001
1416val SC_AUTOMATICFOLD_CLICK=0x0002
1417val SC_AUTOMATICFOLD_CHANGE=0x0004
1418
1419# Set automatic folding behaviours.
1420set void SetAutomaticFold=2663(AutomaticFold automaticFold,)
1421
1422# Get automatic folding behaviours.
1423get AutomaticFold GetAutomaticFold=2664(,)
1424
1425enu FoldFlag=SC_FOLDFLAG_
1426val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002
1427val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004
1428val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008
1429val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010
1430val SC_FOLDFLAG_LEVELNUMBERS=0x0040
1431val SC_FOLDFLAG_LINESTATE=0x0080
1432
1433ali SC_FOLDFLAG_LINEBEFORE_EXPANDED=LINE_BEFORE_EXPANDED
1434ali SC_FOLDFLAG_LINEBEFORE_CONTRACTED=LINE_BEFORE_CONTRACTED
1435ali SC_FOLDFLAG_LINEAFTER_EXPANDED=LINE_AFTER_EXPANDED
1436ali SC_FOLDFLAG_LINEAFTER_CONTRACTED=LINE_AFTER_CONTRACTED
1437ali SC_FOLDFLAG_LEVELNUMBERS=LEVEL_NUMBERS
1438ali SC_FOLDFLAG_LINESTATE=LINE_STATE
1439
1440# Set some style options for folding.
1441set void SetFoldFlags=2233(FoldFlag flags,)
1442
1443# Ensure a particular line is visible by expanding any header line hiding it.
1444# Use the currently set visibility policy to determine which range to display.
1445fun void EnsureVisibleEnforcePolicy=2234(line line,)
1446
1447# Sets whether a tab pressed when caret is within indentation indents.
1448set void SetTabIndents=2260(bool tabIndents,)
1449
1450# Does a tab pressed when caret is within indentation indent?
1451get bool GetTabIndents=2261(,)
1452
1453# Sets whether a backspace pressed when caret is within indentation unindents.
1454set void SetBackSpaceUnIndents=2262(bool bsUnIndents,)
1455
1456# Does a backspace pressed when caret is within indentation unindent?
1457get bool GetBackSpaceUnIndents=2263(,)
1458
1459val SC_TIME_FOREVER=10000000
1460
1461# Sets the time the mouse must sit still to generate a mouse dwell event.
1462set void SetMouseDwellTime=2264(int periodMilliseconds,)
1463
1464# Retrieve the time the mouse must sit still to generate a mouse dwell event.
1465get int GetMouseDwellTime=2265(,)
1466
1467# Get position of start of word.
1468fun position WordStartPosition=2266(position pos, bool onlyWordCharacters)
1469
1470# Get position of end of word.
1471fun position WordEndPosition=2267(position pos, bool onlyWordCharacters)
1472
1473# Is the range start..end considered a word?
1474fun bool IsRangeWord=2691(position start, position end)
1475
1476enu IdleStyling=SC_IDLESTYLING_
1477val SC_IDLESTYLING_NONE=0
1478val SC_IDLESTYLING_TOVISIBLE=1
1479val SC_IDLESTYLING_AFTERVISIBLE=2
1480val SC_IDLESTYLING_ALL=3
1481
1482ali SC_IDLESTYLING_TOVISIBLE=TO_VISIBLE
1483ali SC_IDLESTYLING_AFTERVISIBLE=AFTER_VISIBLE
1484
1485# Sets limits to idle styling.
1486set void SetIdleStyling=2692(IdleStyling idleStyling,)
1487
1488# Retrieve the limits to idle styling.
1489get IdleStyling GetIdleStyling=2693(,)
1490
1491enu Wrap=SC_WRAP_
1492val SC_WRAP_NONE=0
1493val SC_WRAP_WORD=1
1494val SC_WRAP_CHAR=2
1495val SC_WRAP_WHITESPACE=3
1496
1497ali SC_WRAP_WHITESPACE=WHITE_SPACE
1498
1499# Sets whether text is word wrapped.
1500set void SetWrapMode=2268(Wrap wrapMode,)
1501
1502# Retrieve whether text is word wrapped.
1503get Wrap GetWrapMode=2269(,)
1504
1505enu WrapVisualFlag=SC_WRAPVISUALFLAG_
1506val SC_WRAPVISUALFLAG_NONE=0x0000
1507val SC_WRAPVISUALFLAG_END=0x0001
1508val SC_WRAPVISUALFLAG_START=0x0002
1509val SC_WRAPVISUALFLAG_MARGIN=0x0004
1510
1511# Set the display mode of visual flags for wrapped lines.
1512set void SetWrapVisualFlags=2460(WrapVisualFlag wrapVisualFlags,)
1513
1514# Retrive the display mode of visual flags for wrapped lines.
1515get WrapVisualFlag GetWrapVisualFlags=2461(,)
1516
1517enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_
1518val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000
1519val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001
1520val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002
1521
1522# Set the location of visual flags for wrapped lines.
1523set void SetWrapVisualFlagsLocation=2462(WrapVisualLocation wrapVisualFlagsLocation,)
1524
1525# Retrive the location of visual flags for wrapped lines.
1526get WrapVisualLocation GetWrapVisualFlagsLocation=2463(,)
1527
1528# Set the start indent for wrapped lines.
1529set void SetWrapStartIndent=2464(int indent,)
1530
1531# Retrive the start indent for wrapped lines.
1532get int GetWrapStartIndent=2465(,)
1533
1534enu WrapIndentMode=SC_WRAPINDENT_
1535val SC_WRAPINDENT_FIXED=0
1536val SC_WRAPINDENT_SAME=1
1537val SC_WRAPINDENT_INDENT=2
1538val SC_WRAPINDENT_DEEPINDENT=3
1539
1540ali SC_WRAPINDENT_DEEPINDENT=DEEP_INDENT
1541
1542# Sets how wrapped sublines are placed. Default is fixed.
1543set void SetWrapIndentMode=2472(WrapIndentMode wrapIndentMode,)
1544
1545# Retrieve how wrapped sublines are placed. Default is fixed.
1546get WrapIndentMode GetWrapIndentMode=2473(,)
1547
1548enu LineCache=SC_CACHE_
1549val SC_CACHE_NONE=0
1550val SC_CACHE_CARET=1
1551val SC_CACHE_PAGE=2
1552val SC_CACHE_DOCUMENT=3
1553
1554# Sets the degree of caching of layout information.
1555set void SetLayoutCache=2272(LineCache cacheMode,)
1556
1557# Retrieve the degree of caching of layout information.
1558get LineCache GetLayoutCache=2273(,)
1559
1560# Sets the document width assumed for scrolling.
1561set void SetScrollWidth=2274(int pixelWidth,)
1562
1563# Retrieve the document width assumed for scrolling.
1564get int GetScrollWidth=2275(,)
1565
1566# Sets whether the maximum width line displayed is used to set scroll width.
1567set void SetScrollWidthTracking=2516(bool tracking,)
1568
1569# Retrieve whether the scroll width tracks wide lines.
1570get bool GetScrollWidthTracking=2517(,)
1571
1572# Measure the pixel width of some text in a particular style.
1573# NUL terminated text argument.
1574# Does not handle tab or control characters.
1575fun int TextWidth=2276(int style, string text)
1576
1577# Sets the scroll range so that maximum scroll position has
1578# the last line at the bottom of the view (default).
1579# Setting this to false allows scrolling one page below the last line.
1580set void SetEndAtLastLine=2277(bool endAtLastLine,)
1581
1582# Retrieve whether the maximum scroll position has the last
1583# line at the bottom of the view.
1584get bool GetEndAtLastLine=2278(,)
1585
1586# Retrieve the height of a particular line of text in pixels.
1587fun int TextHeight=2279(line line,)
1588
1589# Show or hide the vertical scroll bar.
1590set void SetVScrollBar=2280(bool visible,)
1591
1592# Is the vertical scroll bar visible?
1593get bool GetVScrollBar=2281(,)
1594
1595# Append a string to the end of the document without changing the selection.
1596fun void AppendText=2282(position length, string text)
1597
1598enu PhasesDraw=SC_PHASES_
1599val SC_PHASES_ONE=0
1600val SC_PHASES_TWO=1
1601val SC_PHASES_MULTIPLE=2
1602
1603# How many phases is drawing done in?
1604get PhasesDraw GetPhasesDraw=2673(,)
1605
1606# In one phase draw, text is drawn in a series of rectangular blocks with no overlap.
1607# In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally.
1608# In multiple phase draw, each element is drawn over the whole drawing area, allowing text
1609# to overlap from one line to the next.
1610set void SetPhasesDraw=2674(PhasesDraw phases,)
1611
1612# Control font anti-aliasing.
1613
1614enu FontQuality=SC_EFF_
1615val SC_EFF_QUALITY_MASK=0xF
1616val SC_EFF_QUALITY_DEFAULT=0
1617val SC_EFF_QUALITY_NON_ANTIALIASED=1
1618val SC_EFF_QUALITY_ANTIALIASED=2
1619val SC_EFF_QUALITY_LCD_OPTIMIZED=3
1620
1621# Choose the quality level for text from the FontQuality enumeration.
1622set void SetFontQuality=2611(FontQuality fontQuality,)
1623
1624# Retrieve the quality level for text.
1625get FontQuality GetFontQuality=2612(,)
1626
1627# Scroll so that a display line is at the top of the display.
1628set void SetFirstVisibleLine=2613(line displayLine,)
1629
1630enu MultiPaste=SC_MULTIPASTE_
1631val SC_MULTIPASTE_ONCE=0
1632val SC_MULTIPASTE_EACH=1
1633
1634# Change the effect of pasting when there are multiple selections.
1635set void SetMultiPaste=2614(MultiPaste multiPaste,)
1636
1637# Retrieve the effect of pasting when there are multiple selections.
1638get MultiPaste GetMultiPaste=2615(,)
1639
1640# Retrieve the value of a tag from a regular expression search.
1641# Result is NUL-terminated.
1642get int GetTag=2616(int tagNumber, stringresult tagValue)
1643
1644# Join the lines in the target.
1645fun void LinesJoin=2288(,)
1646
1647# Split the lines in the target into lines that are less wide than pixelWidth
1648# where possible.
1649fun void LinesSplit=2289(int pixelWidth,)
1650
1651# Set one of the colours used as a chequerboard pattern in the fold margin
1652fun void SetFoldMarginColour=2290(bool useSetting, colour back)
1653# Set the other colour used as a chequerboard pattern in the fold margin
1654fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore)
1655
1656enu Accessibility=SC_ACCESSIBILITY_
1657val SC_ACCESSIBILITY_DISABLED=0
1658val SC_ACCESSIBILITY_ENABLED=1
1659
1660# Enable or disable accessibility.
1661set void SetAccessibility=2702(Accessibility accessibility,)
1662
1663# Report accessibility status.
1664get Accessibility GetAccessibility=2703(,)
1665
1666## New messages go here
1667
1668## Start of key messages
1669# Move caret down one line.
1670fun void LineDown=2300(,)
1671
1672# Move caret down one line extending selection to new caret position.
1673fun void LineDownExtend=2301(,)
1674
1675# Move caret up one line.
1676fun void LineUp=2302(,)
1677
1678# Move caret up one line extending selection to new caret position.
1679fun void LineUpExtend=2303(,)
1680
1681# Move caret left one character.
1682fun void CharLeft=2304(,)
1683
1684# Move caret left one character extending selection to new caret position.
1685fun void CharLeftExtend=2305(,)
1686
1687# Move caret right one character.
1688fun void CharRight=2306(,)
1689
1690# Move caret right one character extending selection to new caret position.
1691fun void CharRightExtend=2307(,)
1692
1693# Move caret left one word.
1694fun void WordLeft=2308(,)
1695
1696# Move caret left one word extending selection to new caret position.
1697fun void WordLeftExtend=2309(,)
1698
1699# Move caret right one word.
1700fun void WordRight=2310(,)
1701
1702# Move caret right one word extending selection to new caret position.
1703fun void WordRightExtend=2311(,)
1704
1705# Move caret to first position on line.
1706fun void Home=2312(,)
1707
1708# Move caret to first position on line extending selection to new caret position.
1709fun void HomeExtend=2313(,)
1710
1711# Move caret to last position on line.
1712fun void LineEnd=2314(,)
1713
1714# Move caret to last position on line extending selection to new caret position.
1715fun void LineEndExtend=2315(,)
1716
1717# Move caret to first position in document.
1718fun void DocumentStart=2316(,)
1719
1720# Move caret to first position in document extending selection to new caret position.
1721fun void DocumentStartExtend=2317(,)
1722
1723# Move caret to last position in document.
1724fun void DocumentEnd=2318(,)
1725
1726# Move caret to last position in document extending selection to new caret position.
1727fun void DocumentEndExtend=2319(,)
1728
1729# Move caret one page up.
1730fun void PageUp=2320(,)
1731
1732# Move caret one page up extending selection to new caret position.
1733fun void PageUpExtend=2321(,)
1734
1735# Move caret one page down.
1736fun void PageDown=2322(,)
1737
1738# Move caret one page down extending selection to new caret position.
1739fun void PageDownExtend=2323(,)
1740
1741# Switch from insert to overtype mode or the reverse.
1742fun void EditToggleOvertype=2324(,)
1743
1744# Cancel any modes such as call tip or auto-completion list display.
1745fun void Cancel=2325(,)
1746
1747# Delete the selection or if no selection, the character before the caret.
1748fun void DeleteBack=2326(,)
1749
1750# If selection is empty or all on one line replace the selection with a tab character.
1751# If more than one line selected, indent the lines.
1752fun void Tab=2327(,)
1753
1754# Dedent the selected lines.
1755fun void BackTab=2328(,)
1756
1757# Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
1758fun void NewLine=2329(,)
1759
1760# Insert a Form Feed character.
1761fun void FormFeed=2330(,)
1762
1763# Move caret to before first visible character on line.
1764# If already there move to first character on line.
1765fun void VCHome=2331(,)
1766
1767# Like VCHome but extending selection to new caret position.
1768fun void VCHomeExtend=2332(,)
1769
1770# Magnify the displayed text by increasing the sizes by 1 point.
1771fun void ZoomIn=2333(,)
1772
1773# Make the displayed text smaller by decreasing the sizes by 1 point.
1774fun void ZoomOut=2334(,)
1775
1776# Delete the word to the left of the caret.
1777fun void DelWordLeft=2335(,)
1778
1779# Delete the word to the right of the caret.
1780fun void DelWordRight=2336(,)
1781
1782# Delete the word to the right of the caret, but not the trailing non-word characters.
1783fun void DelWordRightEnd=2518(,)
1784
1785# Cut the line containing the caret.
1786fun void LineCut=2337(,)
1787
1788# Delete the line containing the caret.
1789fun void LineDelete=2338(,)
1790
1791# Switch the current line with the previous.
1792fun void LineTranspose=2339(,)
1793
1794# Reverse order of selected lines.
1795fun void LineReverse=2354(,)
1796
1797# Duplicate the current line.
1798fun void LineDuplicate=2404(,)
1799
1800# Transform the selection to lower case.
1801fun void LowerCase=2340(,)
1802
1803# Transform the selection to upper case.
1804fun void UpperCase=2341(,)
1805
1806# Scroll the document down, keeping the caret visible.
1807fun void LineScrollDown=2342(,)
1808
1809# Scroll the document up, keeping the caret visible.
1810fun void LineScrollUp=2343(,)
1811
1812# Delete the selection or if no selection, the character before the caret.
1813# Will not delete the character before at the start of a line.
1814fun void DeleteBackNotLine=2344(,)
1815
1816# Move caret to first position on display line.
1817fun void HomeDisplay=2345(,)
1818
1819# Move caret to first position on display line extending selection to
1820# new caret position.
1821fun void HomeDisplayExtend=2346(,)
1822
1823# Move caret to last position on display line.
1824fun void LineEndDisplay=2347(,)
1825
1826# Move caret to last position on display line extending selection to new
1827# caret position.
1828fun void LineEndDisplayExtend=2348(,)
1829
1830# Like Home but when word-wrap is enabled goes first to start of display line
1831# HomeDisplay, then to start of document line Home.
1832fun void HomeWrap=2349(,)
1833
1834# Like HomeExtend but when word-wrap is enabled extends first to start of display line
1835# HomeDisplayExtend, then to start of document line HomeExtend.
1836fun void HomeWrapExtend=2450(,)
1837
1838# Like LineEnd but when word-wrap is enabled goes first to end of display line
1839# LineEndDisplay, then to start of document line LineEnd.
1840fun void LineEndWrap=2451(,)
1841
1842# Like LineEndExtend but when word-wrap is enabled extends first to end of display line
1843# LineEndDisplayExtend, then to start of document line LineEndExtend.
1844fun void LineEndWrapExtend=2452(,)
1845
1846# Like VCHome but when word-wrap is enabled goes first to start of display line
1847# VCHomeDisplay, then behaves like VCHome.
1848fun void VCHomeWrap=2453(,)
1849
1850# Like VCHomeExtend but when word-wrap is enabled extends first to start of display line
1851# VCHomeDisplayExtend, then behaves like VCHomeExtend.
1852fun void VCHomeWrapExtend=2454(,)
1853
1854# Copy the line containing the caret.
1855fun void LineCopy=2455(,)
1856
1857# Move the caret inside current view if it's not there already.
1858fun void MoveCaretInsideView=2401(,)
1859
1860# How many characters are on a line, including end of line characters?
1861fun position LineLength=2350(line line,)
1862
1863# Highlight the characters at two positions.
1864fun void BraceHighlight=2351(position posA, position posB)
1865
1866# Use specified indicator to highlight matching braces instead of changing their style.
1867fun void BraceHighlightIndicator=2498(bool useSetting, int indicator)
1868
1869# Highlight the character at a position indicating there is no matching brace.
1870fun void BraceBadLight=2352(position pos,)
1871
1872# Use specified indicator to highlight non matching brace instead of changing its style.
1873fun void BraceBadLightIndicator=2499(bool useSetting, int indicator)
1874
1875# Find the position of a matching brace or INVALID_POSITION if no match.
1876# The maxReStyle must be 0 for now. It may be defined in a future release.
1877fun position BraceMatch=2353(position pos, int maxReStyle)
1878
1879# Similar to BraceMatch, but matching starts at the explicit start position.
1880fun position BraceMatchNext=2369(position pos, position startPos)
1881
1882# Are the end of line characters visible?
1883get bool GetViewEOL=2355(,)
1884
1885# Make the end of line characters visible or invisible.
1886set void SetViewEOL=2356(bool visible,)
1887
1888# Retrieve a pointer to the document object.
1889get pointer GetDocPointer=2357(,)
1890
1891# Change the document object used.
1892set void SetDocPointer=2358(, pointer doc)
1893
1894# Set which document modification events are sent to the container.
1895set void SetModEventMask=2359(ModificationFlags eventMask,)
1896
1897enu EdgeVisualStyle=EDGE_
1898val EDGE_NONE=0
1899val EDGE_LINE=1
1900val EDGE_BACKGROUND=2
1901val EDGE_MULTILINE=3
1902
1903ali EDGE_MULTILINE=MULTI_LINE
1904
1905# Retrieve the column number which text should be kept within.
1906get position GetEdgeColumn=2360(,)
1907
1908# Set the column number of the edge.
1909# If text goes past the edge then it is highlighted.
1910set void SetEdgeColumn=2361(position column,)
1911
1912# Retrieve the edge highlight mode.
1913get EdgeVisualStyle GetEdgeMode=2362(,)
1914
1915# The edge may be displayed by a line (EDGE_LINE/EDGE_MULTILINE) or by highlighting text that
1916# goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1917set void SetEdgeMode=2363(EdgeVisualStyle edgeMode,)
1918
1919# Retrieve the colour used in edge indication.
1920get colour GetEdgeColour=2364(,)
1921
1922# Change the colour used in edge indication.
1923set void SetEdgeColour=2365(colour edgeColour,)
1924
1925# Add a new vertical edge to the view.
1926fun void MultiEdgeAddLine=2694(position column, colour edgeColour)
1927
1928# Clear all vertical edges.
1929fun void MultiEdgeClearAll=2695(,)
1930
1931# Get multi edge positions.
1932get position GetMultiEdgeColumn=2749(int which,)
1933
1934# Sets the current caret position to be the search anchor.
1935fun void SearchAnchor=2366(,)
1936
1937# Find some text starting at the search anchor.
1938# Does not ensure the selection is visible.
1939fun position SearchNext=2367(FindOption searchFlags, string text)
1940
1941# Find some text starting at the search anchor and moving backwards.
1942# Does not ensure the selection is visible.
1943fun position SearchPrev=2368(FindOption searchFlags, string text)
1944
1945# Retrieves the number of lines completely visible.
1946get line LinesOnScreen=2370(,)
1947
1948enu PopUp=SC_POPUP_
1949val SC_POPUP_NEVER=0
1950val SC_POPUP_ALL=1
1951val SC_POPUP_TEXT=2
1952
1953# Set whether a pop up menu is displayed automatically when the user presses
1954# the wrong mouse button on certain areas.
1955fun void UsePopUp=2371(PopUp popUpMode,)
1956
1957# Is the selection rectangular? The alternative is the more common stream selection.
1958get bool SelectionIsRectangle=2372(,)
1959
1960# Set the zoom level. This number of points is added to the size of all fonts.
1961# It may be positive to magnify or negative to reduce.
1962set void SetZoom=2373(int zoomInPoints,)
1963# Retrieve the zoom level.
1964get int GetZoom=2374(,)
1965
1966enu DocumentOption=SC_DOCUMENTOPTION_
1967val SC_DOCUMENTOPTION_DEFAULT=0
1968val SC_DOCUMENTOPTION_STYLES_NONE=0x1
1969val SC_DOCUMENTOPTION_TEXT_LARGE=0x100
1970
1971# Create a new document object.
1972# Starts with reference count of 1 and not selected into editor.
1973fun pointer CreateDocument=2375(position bytes, DocumentOption documentOptions)
1974# Extend life of document.
1975fun void AddRefDocument=2376(, pointer doc)
1976# Release a reference to the document, deleting document if it fades to black.
1977fun void ReleaseDocument=2377(, pointer doc)
1978
1979# Get which document options are set.
1980get DocumentOption GetDocumentOptions=2379(,)
1981
1982# Get which document modification events are sent to the container.
1983get ModificationFlags GetModEventMask=2378(,)
1984
1985# Set whether command events are sent to the container.
1986set void SetCommandEvents=2717(bool commandEvents,)
1987
1988# Get whether command events are sent to the container.
1989get bool GetCommandEvents=2718(,)
1990
1991# Change internal focus flag.
1992set void SetFocus=2380(bool focus,)
1993# Get internal focus flag.
1994get bool GetFocus=2381(,)
1995
1996enu Status=SC_STATUS_
1997val SC_STATUS_OK=0
1998val SC_STATUS_FAILURE=1
1999val SC_STATUS_BADALLOC=2
2000val SC_STATUS_WARN_START=1000
2001val SC_STATUS_WARN_REGEX=1001
2002
2003ali SC_STATUS_BADALLOC=BAD_ALLOC
2004ali SC_STATUS_WARN_REGEX=REG_EX
2005
2006# Change error status - 0 = OK.
2007set void SetStatus=2382(Status status,)
2008# Get error status.
2009get Status GetStatus=2383(,)
2010
2011# Set whether the mouse is captured when its button is pressed.
2012set void SetMouseDownCaptures=2384(bool captures,)
2013# Get whether mouse gets captured.
2014get bool GetMouseDownCaptures=2385(,)
2015
2016# Set whether the mouse wheel can be active outside the window.
2017set void SetMouseWheelCaptures=2696(bool captures,)
2018# Get whether mouse wheel can be active outside the window.
2019get bool GetMouseWheelCaptures=2697(,)
2020
2021# Sets the cursor to one of the SC_CURSOR* values.
2022set void SetCursor=2386(CursorShape cursorType,)
2023# Get cursor type.
2024get CursorShape GetCursor=2387(,)
2025
2026# Change the way control characters are displayed:
2027# If symbol is < 32, keep the drawn way, else, use the given character.
2028set void SetControlCharSymbol=2388(int symbol,)
2029# Get the way control characters are displayed.
2030get int GetControlCharSymbol=2389(,)
2031
2032# Move to the previous change in capitalisation.
2033fun void WordPartLeft=2390(,)
2034# Move to the previous change in capitalisation extending selection
2035# to new caret position.
2036fun void WordPartLeftExtend=2391(,)
2037# Move to the change next in capitalisation.
2038fun void WordPartRight=2392(,)
2039# Move to the next change in capitalisation extending selection
2040# to new caret position.
2041fun void WordPartRightExtend=2393(,)
2042
2043# Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
2044enu VisiblePolicy=VISIBLE_
2045val VISIBLE_SLOP=0x01
2046val VISIBLE_STRICT=0x04
2047
2048# Set the way the display area is determined when a particular line
2049# is to be moved to by Find, FindNext, GotoLine, etc.
2050fun void SetVisiblePolicy=2394(VisiblePolicy visiblePolicy, int visibleSlop)
2051
2052# Delete back from the current position to the start of the line.
2053fun void DelLineLeft=2395(,)
2054
2055# Delete forwards from the current position to the end of the line.
2056fun void DelLineRight=2396(,)
2057
2058# Set the xOffset (ie, horizontal scroll position).
2059set void SetXOffset=2397(int xOffset,)
2060
2061# Get the xOffset (ie, horizontal scroll position).
2062get int GetXOffset=2398(,)
2063
2064# Set the last x chosen value to be the caret x position.
2065fun void ChooseCaretX=2399(,)
2066
2067# Set the focus to this Scintilla widget.
2068fun void GrabFocus=2400(,)
2069
2070enu CaretPolicy=CARET_
2071# Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
2072# If CARET_SLOP is set, we can define a slop value: caretSlop.
2073# This value defines an unwanted zone (UZ) where the caret is... unwanted.
2074# This zone is defined as a number of pixels near the vertical margins,
2075# and as a number of lines near the horizontal margins.
2076# By keeping the caret away from the edges, it is seen within its context,
2077# so it is likely that the identifier that the caret is on can be completely seen,
2078# and that the current line is seen with some of the lines following it which are
2079# often dependent on that line.
2080val CARET_SLOP=0x01
2081# If CARET_STRICT is set, the policy is enforced... strictly.
2082# The caret is centred on the display if slop is not set,
2083# and cannot go in the UZ if slop is set.
2084val CARET_STRICT=0x04
2085# If CARET_JUMPS is set, the display is moved more energetically
2086# so the caret can move in the same direction longer before the policy is applied again.
2087val CARET_JUMPS=0x10
2088# If CARET_EVEN is not set, instead of having symmetrical UZs,
2089# the left and bottom UZs are extended up to right and top UZs respectively.
2090# This way, we favour the displaying of useful information: the beginning of lines,
2091# where most code reside, and the lines after the caret, eg. the body of a function.
2092val CARET_EVEN=0x08
2093
2094# Set the way the caret is kept visible when going sideways.
2095# The exclusion zone is given in pixels.
2096fun void SetXCaretPolicy=2402(CaretPolicy caretPolicy, int caretSlop)
2097
2098# Set the way the line the caret is on is kept visible.
2099# The exclusion zone is given in lines.
2100fun void SetYCaretPolicy=2403(CaretPolicy caretPolicy, int caretSlop)
2101
2102# Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
2103set void SetPrintWrapMode=2406(Wrap wrapMode,)
2104
2105# Is printing line wrapped?
2106get Wrap GetPrintWrapMode=2407(,)
2107
2108# Set a fore colour for active hotspots.
2109set void SetHotspotActiveFore=2410(bool useSetting, colour fore)
2110
2111# Get the fore colour for active hotspots.
2112get colour GetHotspotActiveFore=2494(,)
2113
2114# Set a back colour for active hotspots.
2115set void SetHotspotActiveBack=2411(bool useSetting, colour back)
2116
2117# Get the back colour for active hotspots.
2118get colour GetHotspotActiveBack=2495(,)
2119
2120# Enable / Disable underlining active hotspots.
2121set void SetHotspotActiveUnderline=2412(bool underline,)
2122
2123# Get whether underlining for active hotspots.
2124get bool GetHotspotActiveUnderline=2496(,)
2125
2126# Limit hotspots to single line so hotspots on two lines don't merge.
2127set void SetHotspotSingleLine=2421(bool singleLine,)
2128
2129# Get the HotspotSingleLine property
2130get bool GetHotspotSingleLine=2497(,)
2131
2132# Move caret down one paragraph (delimited by empty lines).
2133fun void ParaDown=2413(,)
2134
2135# Extend selection down one paragraph (delimited by empty lines).
2136fun void ParaDownExtend=2414(,)
2137
2138# Move caret up one paragraph (delimited by empty lines).
2139fun void ParaUp=2415(,)
2140
2141# Extend selection up one paragraph (delimited by empty lines).
2142fun void ParaUpExtend=2416(,)
2143
2144# Given a valid document position, return the previous position taking code
2145# page into account. Returns 0 if passed 0.
2146fun position PositionBefore=2417(position pos,)
2147
2148# Given a valid document position, return the next position taking code
2149# page into account. Maximum value returned is the last position in the document.
2150fun position PositionAfter=2418(position pos,)
2151
2152# Given a valid document position, return a position that differs in a number
2153# of characters. Returned value is always between 0 and last position in document.
2154fun position PositionRelative=2670(position pos, position relative)
2155
2156# Given a valid document position, return a position that differs in a number
2157# of UTF-16 code units. Returned value is always between 0 and last position in document.
2158# The result may point half way (2 bytes) inside a non-BMP character.
2159fun position PositionRelativeCodeUnits=2716(position pos, position relative)
2160
2161# Copy a range of text to the clipboard. Positions are clipped into the document.
2162fun void CopyRange=2419(position start, position end)
2163
2164# Copy argument text to the clipboard.
2165fun void CopyText=2420(position length, string text)
2166
2167enu SelectionMode=SC_SEL_
2168val SC_SEL_STREAM=0
2169val SC_SEL_RECTANGLE=1
2170val SC_SEL_LINES=2
2171val SC_SEL_THIN=3
2172
2173# Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
2174# by lines (SC_SEL_LINES).
2175set void SetSelectionMode=2422(SelectionMode selectionMode,)
2176
2177# Get the mode of the current selection.
2178get SelectionMode GetSelectionMode=2423(,)
2179
2180# Get whether or not regular caret moves will extend or reduce the selection.
2181get bool GetMoveExtendsSelection=2706(,)
2182
2183# Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
2184fun position GetLineSelStartPosition=2424(line line,)
2185
2186# Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
2187fun position GetLineSelEndPosition=2425(line line,)
2188
2189## RectExtended rectangular selection moves
2190# Move caret down one line, extending rectangular selection to new caret position.
2191fun void LineDownRectExtend=2426(,)
2192
2193# Move caret up one line, extending rectangular selection to new caret position.
2194fun void LineUpRectExtend=2427(,)
2195
2196# Move caret left one character, extending rectangular selection to new caret position.
2197fun void CharLeftRectExtend=2428(,)
2198
2199# Move caret right one character, extending rectangular selection to new caret position.
2200fun void CharRightRectExtend=2429(,)
2201
2202# Move caret to first position on line, extending rectangular selection to new caret position.
2203fun void HomeRectExtend=2430(,)
2204
2205# Move caret to before first visible character on line.
2206# If already there move to first character on line.
2207# In either case, extend rectangular selection to new caret position.
2208fun void VCHomeRectExtend=2431(,)
2209
2210# Move caret to last position on line, extending rectangular selection to new caret position.
2211fun void LineEndRectExtend=2432(,)
2212
2213# Move caret one page up, extending rectangular selection to new caret position.
2214fun void PageUpRectExtend=2433(,)
2215
2216# Move caret one page down, extending rectangular selection to new caret position.
2217fun void PageDownRectExtend=2434(,)
2218
2219
2220# Move caret to top of page, or one page up if already at top of page.
2221fun void StutteredPageUp=2435(,)
2222
2223# Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
2224fun void StutteredPageUpExtend=2436(,)
2225
2226# Move caret to bottom of page, or one page down if already at bottom of page.
2227fun void StutteredPageDown=2437(,)
2228
2229# Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
2230fun void StutteredPageDownExtend=2438(,)
2231
2232
2233# Move caret left one word, position cursor at end of word.
2234fun void WordLeftEnd=2439(,)
2235
2236# Move caret left one word, position cursor at end of word, extending selection to new caret position.
2237fun void WordLeftEndExtend=2440(,)
2238
2239# Move caret right one word, position cursor at end of word.
2240fun void WordRightEnd=2441(,)
2241
2242# Move caret right one word, position cursor at end of word, extending selection to new caret position.
2243fun void WordRightEndExtend=2442(,)
2244
2245# Set the set of characters making up whitespace for when moving or selecting by word.
2246# Should be called after SetWordChars.
2247set void SetWhitespaceChars=2443(, string characters)
2248
2249# Get the set of characters making up whitespace for when moving or selecting by word.
2250get int GetWhitespaceChars=2647(, stringresult characters)
2251
2252# Set the set of characters making up punctuation characters
2253# Should be called after SetWordChars.
2254set void SetPunctuationChars=2648(, string characters)
2255
2256# Get the set of characters making up punctuation characters
2257get int GetPunctuationChars=2649(, stringresult characters)
2258
2259# Reset the set of characters for whitespace and word characters to the defaults.
2260fun void SetCharsDefault=2444(,)
2261
2262# Get currently selected item position in the auto-completion list
2263get int AutoCGetCurrent=2445(,)
2264
2265# Get currently selected item text in the auto-completion list
2266# Returns the length of the item text
2267# Result is NUL-terminated.
2268get int AutoCGetCurrentText=2610(, stringresult text)
2269
2270enu CaseInsensitiveBehaviour=SC_CASEINSENSITIVEBEHAVIOUR_
2271val SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE=0
2272val SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE=1
2273
2274ali SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE=RESPECT_CASE
2275ali SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE=IGNORE_CASE
2276
2277# Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
2278set void AutoCSetCaseInsensitiveBehaviour=2634(CaseInsensitiveBehaviour behaviour,)
2279
2280# Get auto-completion case insensitive behaviour.
2281get CaseInsensitiveBehaviour AutoCGetCaseInsensitiveBehaviour=2635(,)
2282
2283enu MultiAutoComplete=SC_MULTIAUTOC_
2284val SC_MULTIAUTOC_ONCE=0
2285val SC_MULTIAUTOC_EACH=1
2286
2287# Change the effect of autocompleting when there are multiple selections.
2288set void AutoCSetMulti=2636(MultiAutoComplete multi,)
2289
2290# Retrieve the effect of autocompleting when there are multiple selections.
2291get MultiAutoComplete AutoCGetMulti=2637(,)
2292
2293enu Ordering=SC_ORDER_
2294val SC_ORDER_PRESORTED=0
2295val SC_ORDER_PERFORMSORT=1
2296val SC_ORDER_CUSTOM=2
2297
2298ali SC_ORDER_PRESORTED=PRE_SORTED
2299ali SC_ORDER_PERFORMSORT=PERFORM_SORT
2300
2301# Set the way autocompletion lists are ordered.
2302set void AutoCSetOrder=2660(Ordering order,)
2303
2304# Get the way autocompletion lists are ordered.
2305get Ordering AutoCGetOrder=2661(,)
2306
2307# Enlarge the document to a particular size of text bytes.
2308fun void Allocate=2446(position bytes,)
2309
2310# Returns the target converted to UTF8.
2311# Return the length in bytes.
2312fun position TargetAsUTF8=2447(, stringresult s)
2313
2314# Set the length of the utf8 argument for calling EncodedFromUTF8.
2315# Set to -1 and the string will be measured to the first nul.
2316fun void SetLengthForEncode=2448(position bytes,)
2317
2318# Translates a UTF8 string into the document encoding.
2319# Return the length of the result in bytes.
2320# On error return 0.
2321fun position EncodedFromUTF8=2449(string utf8, stringresult encoded)
2322
2323# Find the position of a column on a line taking into account tabs and
2324# multi-byte characters. If beyond end of line, return line end position.
2325fun position FindColumn=2456(line line, position column)
2326
2327enu CaretSticky=SC_CARETSTICKY_
2328val SC_CARETSTICKY_OFF=0
2329val SC_CARETSTICKY_ON=1
2330val SC_CARETSTICKY_WHITESPACE=2
2331
2332ali SC_CARETSTICKY_WHITESPACE=WHITE_SPACE
2333
2334# Can the caret preferred x position only be changed by explicit movement commands?
2335get CaretSticky GetCaretSticky=2457(,)
2336
2337# Stop the caret preferred x position changing when the user types.
2338set void SetCaretSticky=2458(CaretSticky useCaretStickyBehaviour,)
2339
2340# Switch between sticky and non-sticky: meant to be bound to a key.
2341fun void ToggleCaretSticky=2459(,)
2342
2343# Enable/Disable convert-on-paste for line endings
2344set void SetPasteConvertEndings=2467(bool convert,)
2345
2346# Get convert-on-paste setting
2347get bool GetPasteConvertEndings=2468(,)
2348
2349# Duplicate the selection. If selection empty duplicate the line containing the caret.
2350fun void SelectionDuplicate=2469(,)
2351
2352# Set background alpha of the caret line.
2353set void SetCaretLineBackAlpha=2470(Alpha alpha,)
2354
2355# Get the background alpha of the caret line.
2356get Alpha GetCaretLineBackAlpha=2471(,)
2357
2358enu CaretStyle=CARETSTYLE_
2359val CARETSTYLE_INVISIBLE=0
2360val CARETSTYLE_LINE=1
2361val CARETSTYLE_BLOCK=2
2362val CARETSTYLE_OVERSTRIKE_BAR=0
2363val CARETSTYLE_OVERSTRIKE_BLOCK=0x10
2364val CARETSTYLE_INS_MASK=0xF
2365val CARETSTYLE_BLOCK_AFTER=0x100
2366
2367# Set the style of the caret to be drawn.
2368set void SetCaretStyle=2512(CaretStyle caretStyle,)
2369
2370# Returns the current style of the caret.
2371get CaretStyle GetCaretStyle=2513(,)
2372
2373# Set the indicator used for IndicatorFillRange and IndicatorClearRange
2374set void SetIndicatorCurrent=2500(int indicator,)
2375
2376# Get the current indicator
2377get int GetIndicatorCurrent=2501(,)
2378
2379# Set the value used for IndicatorFillRange
2380set void SetIndicatorValue=2502(int value,)
2381
2382# Get the current indicator value
2383get int GetIndicatorValue=2503(,)
2384
2385# Turn a indicator on over a range.
2386fun void IndicatorFillRange=2504(position start, position lengthFill)
2387
2388# Turn a indicator off over a range.
2389fun void IndicatorClearRange=2505(position start, position lengthClear)
2390
2391# Are any indicators present at pos?
2392fun int IndicatorAllOnFor=2506(position pos,)
2393
2394# What value does a particular indicator have at a position?
2395fun int IndicatorValueAt=2507(int indicator, position pos)
2396
2397# Where does a particular indicator start?
2398fun position IndicatorStart=2508(int indicator, position pos)
2399
2400# Where does a particular indicator end?
2401fun position IndicatorEnd=2509(int indicator, position pos)
2402
2403# Set number of entries in position cache
2404set void SetPositionCache=2514(int size,)
2405
2406# How many entries are allocated to the position cache?
2407get int GetPositionCache=2515(,)
2408
2409# Copy the selection, if selection empty copy the line with the caret
2410fun void CopyAllowLine=2519(,)
2411
2412# Compact the document buffer and return a read-only pointer to the
2413# characters in the document.
2414get pointer GetCharacterPointer=2520(,)
2415
2416# Return a read-only pointer to a range of characters in the document.
2417# May move the gap so that the range is contiguous, but will only move up
2418# to lengthRange bytes.
2419get pointer GetRangePointer=2643(position start, position lengthRange)
2420
2421# Return a position which, to avoid performance costs, should not be within
2422# the range of a call to GetRangePointer.
2423get position GetGapPosition=2644(,)
2424
2425# Set the alpha fill colour of the given indicator.
2426set void IndicSetAlpha=2523(int indicator, Alpha alpha)
2427
2428# Get the alpha fill colour of the given indicator.
2429get Alpha IndicGetAlpha=2524(int indicator,)
2430
2431# Set the alpha outline colour of the given indicator.
2432set void IndicSetOutlineAlpha=2558(int indicator, Alpha alpha)
2433
2434# Get the alpha outline colour of the given indicator.
2435get Alpha IndicGetOutlineAlpha=2559(int indicator,)
2436
2437# Set extra ascent for each line
2438set void SetExtraAscent=2525(int extraAscent,)
2439
2440# Get extra ascent for each line
2441get int GetExtraAscent=2526(,)
2442
2443# Set extra descent for each line
2444set void SetExtraDescent=2527(int extraDescent,)
2445
2446# Get extra descent for each line
2447get int GetExtraDescent=2528(,)
2448
2449# Which symbol was defined for markerNumber with MarkerDefine
2450fun int MarkerSymbolDefined=2529(int markerNumber,)
2451
2452# Set the text in the text margin for a line
2453set void MarginSetText=2530(line line, string text)
2454
2455# Get the text in the text margin for a line
2456get int MarginGetText=2531(line line, stringresult text)
2457
2458# Set the style number for the text margin for a line
2459set void MarginSetStyle=2532(line line, int style)
2460
2461# Get the style number for the text margin for a line
2462get int MarginGetStyle=2533(line line,)
2463
2464# Set the style in the text margin for a line
2465set void MarginSetStyles=2534(line line, string styles)
2466
2467# Get the styles in the text margin for a line
2468get int MarginGetStyles=2535(line line, stringresult styles)
2469
2470# Clear the margin text on all lines
2471fun void MarginTextClearAll=2536(,)
2472
2473# Get the start of the range of style numbers used for margin text
2474set void MarginSetStyleOffset=2537(int style,)
2475
2476# Get the start of the range of style numbers used for margin text
2477get int MarginGetStyleOffset=2538(,)
2478
2479enu MarginOption=SC_MARGINOPTION_
2480val SC_MARGINOPTION_NONE=0
2481val SC_MARGINOPTION_SUBLINESELECT=1
2482
2483ali SC_MARGINOPTION_SUBLINESELECT=SUB_LINE_SELECT
2484
2485# Set the margin options.
2486set void SetMarginOptions=2539(MarginOption marginOptions,)
2487
2488# Get the margin options.
2489get MarginOption GetMarginOptions=2557(,)
2490
2491# Set the annotation text for a line
2492set void AnnotationSetText=2540(line line, string text)
2493
2494# Get the annotation text for a line
2495get int AnnotationGetText=2541(line line, stringresult text)
2496
2497# Set the style number for the annotations for a line
2498set void AnnotationSetStyle=2542(line line, int style)
2499
2500# Get the style number for the annotations for a line
2501get int AnnotationGetStyle=2543(line line,)
2502
2503# Set the annotation styles for a line
2504set void AnnotationSetStyles=2544(line line, string styles)
2505
2506# Get the annotation styles for a line
2507get int AnnotationGetStyles=2545(line line, stringresult styles)
2508
2509# Get the number of annotation lines for a line
2510get int AnnotationGetLines=2546(line line,)
2511
2512# Clear the annotations from all lines
2513fun void AnnotationClearAll=2547(,)
2514
2515enu AnnotationVisible=ANNOTATION_
2516val ANNOTATION_HIDDEN=0
2517val ANNOTATION_STANDARD=1
2518val ANNOTATION_BOXED=2
2519val ANNOTATION_INDENTED=3
2520
2521# Set the visibility for the annotations for a view
2522set void AnnotationSetVisible=2548(AnnotationVisible visible,)
2523
2524# Get the visibility for the annotations for a view
2525get AnnotationVisible AnnotationGetVisible=2549(,)
2526
2527# Get the start of the range of style numbers used for annotations
2528set void AnnotationSetStyleOffset=2550(int style,)
2529
2530# Get the start of the range of style numbers used for annotations
2531get int AnnotationGetStyleOffset=2551(,)
2532
2533# Release all extended (>255) style numbers
2534fun void ReleaseAllExtendedStyles=2552(,)
2535
2536# Allocate some extended (>255) style numbers and return the start of the range
2537fun int AllocateExtendedStyles=2553(int numberStyles,)
2538
2539enu UndoFlags=UNDO_
2540val UNDO_NONE=0
2541val UNDO_MAY_COALESCE=1
2542
2543# Add a container action to the undo stack
2544fun void AddUndoAction=2560(int token, UndoFlags flags)
2545
2546# Find the position of a character from a point within the window.
2547fun position CharPositionFromPoint=2561(int x, int y)
2548
2549# Find the position of a character from a point within the window.
2550# Return INVALID_POSITION if not close to text.
2551fun position CharPositionFromPointClose=2562(int x, int y)
2552
2553# Set whether switching to rectangular mode while selecting with the mouse is allowed.
2554set void SetMouseSelectionRectangularSwitch=2668(bool mouseSelectionRectangularSwitch,)
2555
2556# Whether switching to rectangular mode while selecting with the mouse is allowed.
2557get bool GetMouseSelectionRectangularSwitch=2669(,)
2558
2559# Set whether multiple selections can be made
2560set void SetMultipleSelection=2563(bool multipleSelection,)
2561
2562# Whether multiple selections can be made
2563get bool GetMultipleSelection=2564(,)
2564
2565# Set whether typing can be performed into multiple selections
2566set void SetAdditionalSelectionTyping=2565(bool additionalSelectionTyping,)
2567
2568# Whether typing can be performed into multiple selections
2569get bool GetAdditionalSelectionTyping=2566(,)
2570
2571# Set whether additional carets will blink
2572set void SetAdditionalCaretsBlink=2567(bool additionalCaretsBlink,)
2573
2574# Whether additional carets will blink
2575get bool GetAdditionalCaretsBlink=2568(,)
2576
2577# Set whether additional carets are visible
2578set void SetAdditionalCaretsVisible=2608(bool additionalCaretsVisible,)
2579
2580# Whether additional carets are visible
2581get bool GetAdditionalCaretsVisible=2609(,)
2582
2583# How many selections are there?
2584get int GetSelections=2570(,)
2585
2586# Is every selected range empty?
2587get bool GetSelectionEmpty=2650(,)
2588
2589# Clear selections to a single empty stream selection
2590fun void ClearSelections=2571(,)
2591
2592# Set a simple selection
2593fun void SetSelection=2572(position caret, position anchor)
2594
2595# Add a selection
2596fun void AddSelection=2573(position caret, position anchor)
2597
2598# Drop one selection
2599fun void DropSelectionN=2671(int selection,)
2600
2601# Set the main selection
2602set void SetMainSelection=2574(int selection,)
2603
2604# Which selection is the main selection
2605get int GetMainSelection=2575(,)
2606
2607# Set the caret position of the nth selection.
2608set void SetSelectionNCaret=2576(int selection, position caret)
2609
2610# Return the caret position of the nth selection.
2611get position GetSelectionNCaret=2577(int selection,)
2612
2613# Set the anchor position of the nth selection.
2614set void SetSelectionNAnchor=2578(int selection, position anchor)
2615
2616# Return the anchor position of the nth selection.
2617get position GetSelectionNAnchor=2579(int selection,)
2618
2619# Set the virtual space of the caret of the nth selection.
2620set void SetSelectionNCaretVirtualSpace=2580(int selection, position space)
2621
2622# Return the virtual space of the caret of the nth selection.
2623get position GetSelectionNCaretVirtualSpace=2581(int selection,)
2624
2625# Set the virtual space of the anchor of the nth selection.
2626set void SetSelectionNAnchorVirtualSpace=2582(int selection, position space)
2627
2628# Return the virtual space of the anchor of the nth selection.
2629get position GetSelectionNAnchorVirtualSpace=2583(int selection,)
2630
2631# Sets the position that starts the selection - this becomes the anchor.
2632set void SetSelectionNStart=2584(int selection, position anchor)
2633
2634# Returns the position at the start of the selection.
2635get position GetSelectionNStart=2585(int selection,)
2636
2637# Returns the virtual space at the start of the selection.
2638get position GetSelectionNStartVirtualSpace=2726(int selection,)
2639
2640# Sets the position that ends the selection - this becomes the currentPosition.
2641set void SetSelectionNEnd=2586(int selection, position caret)
2642
2643# Returns the virtual space at the end of the selection.
2644get position GetSelectionNEndVirtualSpace=2727(int selection,)
2645
2646# Returns the position at the end of the selection.
2647get position GetSelectionNEnd=2587(int selection,)
2648
2649# Set the caret position of the rectangular selection.
2650set void SetRectangularSelectionCaret=2588(position caret,)
2651
2652# Return the caret position of the rectangular selection.
2653get position GetRectangularSelectionCaret=2589(,)
2654
2655# Set the anchor position of the rectangular selection.
2656set void SetRectangularSelectionAnchor=2590(position anchor,)
2657
2658# Return the anchor position of the rectangular selection.
2659get position GetRectangularSelectionAnchor=2591(,)
2660
2661# Set the virtual space of the caret of the rectangular selection.
2662set void SetRectangularSelectionCaretVirtualSpace=2592(position space,)
2663
2664# Return the virtual space of the caret of the rectangular selection.
2665get position GetRectangularSelectionCaretVirtualSpace=2593(,)
2666
2667# Set the virtual space of the anchor of the rectangular selection.
2668set void SetRectangularSelectionAnchorVirtualSpace=2594(position space,)
2669
2670# Return the virtual space of the anchor of the rectangular selection.
2671get position GetRectangularSelectionAnchorVirtualSpace=2595(,)
2672
2673enu VirtualSpace=SCVS_
2674val SCVS_NONE=0
2675val SCVS_RECTANGULARSELECTION=1
2676val SCVS_USERACCESSIBLE=2
2677val SCVS_NOWRAPLINESTART=4
2678
2679ali SCVS_RECTANGULARSELECTION=RECTANGULAR_SELECTION
2680ali SCVS_USERACCESSIBLE=USER_ACCESSIBLE
2681ali SCVS_NOWRAPLINESTART=NO_WRAP_LINE_START
2682
2683# Set options for virtual space behaviour.
2684set void SetVirtualSpaceOptions=2596(VirtualSpace virtualSpaceOptions,)
2685
2686# Return options for virtual space behaviour.
2687get VirtualSpace GetVirtualSpaceOptions=2597(,)
2688
2689# On GTK, allow selecting the modifier key to use for mouse-based
2690# rectangular selection. Often the window manager requires Alt+Mouse Drag
2691# for moving windows.
2692# Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
2693
2694set void SetRectangularSelectionModifier=2598(int modifier,)
2695
2696# Get the modifier key used for rectangular selection.
2697get int GetRectangularSelectionModifier=2599(,)
2698
2699# Set the foreground colour of additional selections.
2700# Must have previously called SetSelFore with non-zero first argument for this to have an effect.
2701set void SetAdditionalSelFore=2600(colour fore,)
2702
2703# Set the background colour of additional selections.
2704# Must have previously called SetSelBack with non-zero first argument for this to have an effect.
2705set void SetAdditionalSelBack=2601(colour back,)
2706
2707# Set the alpha of the selection.
2708set void SetAdditionalSelAlpha=2602(Alpha alpha,)
2709
2710# Get the alpha of the selection.
2711get Alpha GetAdditionalSelAlpha=2603(,)
2712
2713# Set the foreground colour of additional carets.
2714set void SetAdditionalCaretFore=2604(colour fore,)
2715
2716# Get the foreground colour of additional carets.
2717get colour GetAdditionalCaretFore=2605(,)
2718
2719# Set the main selection to the next selection.
2720fun void RotateSelection=2606(,)
2721
2722# Swap that caret and anchor of the main selection.
2723fun void SwapMainAnchorCaret=2607(,)
2724
2725# Add the next occurrence of the main selection to the set of selections as main.
2726# If the current selection is empty then select word around caret.
2727fun void MultipleSelectAddNext=2688(,)
2728
2729# Add each occurrence of the main selection in the target to the set of selections.
2730# If the current selection is empty then select word around caret.
2731fun void MultipleSelectAddEach=2689(,)
2732
2733# Indicate that the internal state of a lexer has changed over a range and therefore
2734# there may be a need to redraw.
2735fun int ChangeLexerState=2617(position start, position end)
2736
2737# Find the next line at or after lineStart that is a contracted fold header line.
2738# Return -1 when no more lines.
2739fun line ContractedFoldNext=2618(line lineStart,)
2740
2741# Centre current line in window.
2742fun void VerticalCentreCaret=2619(,)
2743
2744# Move the selected lines up one line, shifting the line above after the selection
2745fun void MoveSelectedLinesUp=2620(,)
2746
2747# Move the selected lines down one line, shifting the line below before the selection
2748fun void MoveSelectedLinesDown=2621(,)
2749
2750# Set the identifier reported as idFrom in notification messages.
2751set void SetIdentifier=2622(int identifier,)
2752
2753# Get the identifier.
2754get int GetIdentifier=2623(,)
2755
2756# Set the width for future RGBA image data.
2757set void RGBAImageSetWidth=2624(int width,)
2758
2759# Set the height for future RGBA image data.
2760set void RGBAImageSetHeight=2625(int height,)
2761
2762# Set the scale factor in percent for future RGBA image data.
2763set void RGBAImageSetScale=2651(int scalePercent,)
2764
2765# Define a marker from RGBA data.
2766# It has the width and height from RGBAImageSetWidth/Height
2767fun void MarkerDefineRGBAImage=2626(int markerNumber, string pixels)
2768
2769# Register an RGBA image for use in autocompletion lists.
2770# It has the width and height from RGBAImageSetWidth/Height
2771fun void RegisterRGBAImage=2627(int type, string pixels)
2772
2773# Scroll to start of document.
2774fun void ScrollToStart=2628(,)
2775
2776# Scroll to end of document.
2777fun void ScrollToEnd=2629(,)
2778
2779enu Technology=SC_TECHNOLOGY_
2780val SC_TECHNOLOGY_DEFAULT=0
2781val SC_TECHNOLOGY_DIRECTWRITE=1
2782val SC_TECHNOLOGY_DIRECTWRITERETAIN=2
2783val SC_TECHNOLOGY_DIRECTWRITEDC=3
2784
2785ali SC_TECHNOLOGY_DIRECTWRITE=DIRECT_WRITE
2786ali SC_TECHNOLOGY_DIRECTWRITERETAIN=DIRECT_WRITE_RETAIN
2787ali SC_TECHNOLOGY_DIRECTWRITEDC=DIRECT_WRITE_D_C
2788
2789# Set the technology used.
2790set void SetTechnology=2630(Technology technology,)
2791
2792# Get the tech.
2793get Technology GetTechnology=2631(,)
2794
2795# Create an ILoader*.
2796fun pointer CreateLoader=2632(position bytes, DocumentOption documentOptions)
2797
2798# On OS X, show a find indicator.
2799fun void FindIndicatorShow=2640(position start, position end)
2800
2801# On OS X, flash a find indicator, then fade out.
2802fun void FindIndicatorFlash=2641(position start, position end)
2803
2804# On OS X, hide the find indicator.
2805fun void FindIndicatorHide=2642(,)
2806
2807# Move caret to before first visible character on display line.
2808# If already there move to first character on display line.
2809fun void VCHomeDisplay=2652(,)
2810
2811# Like VCHomeDisplay but extending selection to new caret position.
2812fun void VCHomeDisplayExtend=2653(,)
2813
2814# Is the caret line always visible?
2815get bool GetCaretLineVisibleAlways=2654(,)
2816
2817# Sets the caret line to always visible.
2818set void SetCaretLineVisibleAlways=2655(bool alwaysVisible,)
2819
2820# Line end types which may be used in addition to LF, CR, and CRLF
2821# SC_LINE_END_TYPE_UNICODE includes U+2028 Line Separator,
2822# U+2029 Paragraph Separator, and U+0085 Next Line
2823enu LineEndType=SC_LINE_END_TYPE_
2824val SC_LINE_END_TYPE_DEFAULT=0
2825val SC_LINE_END_TYPE_UNICODE=1
2826
2827# Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding.
2828set void SetLineEndTypesAllowed=2656(LineEndType lineEndBitSet,)
2829
2830# Get the line end types currently allowed.
2831get LineEndType GetLineEndTypesAllowed=2657(,)
2832
2833# Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation.
2834get LineEndType GetLineEndTypesActive=2658(,)
2835
2836# Set the way a character is drawn.
2837set void SetRepresentation=2665(string encodedCharacter, string representation)
2838
2839# Set the way a character is drawn.
2840# Result is NUL-terminated.
2841get int GetRepresentation=2666(string encodedCharacter, stringresult representation)
2842
2843# Remove a character representation.
2844fun void ClearRepresentation=2667(string encodedCharacter,)
2845
2846# Set the end of line annotation text for a line
2847set void EOLAnnotationSetText=2740(line line, string text)
2848
2849# Get the end of line annotation text for a line
2850get int EOLAnnotationGetText=2741(line line, stringresult text)
2851
2852# Set the style number for the end of line annotations for a line
2853set void EOLAnnotationSetStyle=2742(line line, int style)
2854
2855# Get the style number for the end of line annotations for a line
2856get int EOLAnnotationGetStyle=2743(line line,)
2857
2858# Clear the end of annotations from all lines
2859fun void EOLAnnotationClearAll=2744(,)
2860
2861enu EOLAnnotationVisible=EOLANNOTATION_
2862val EOLANNOTATION_HIDDEN=0
2863val EOLANNOTATION_STANDARD=1
2864val EOLANNOTATION_BOXED=2
2865
2866# Set the visibility for the end of line annotations for a view
2867set void EOLAnnotationSetVisible=2745(EOLAnnotationVisible visible,)
2868
2869# Get the visibility for the end of line annotations for a view
2870get EOLAnnotationVisible EOLAnnotationGetVisible=2746(,)
2871
2872# Get the start of the range of style numbers used for end of line annotations
2873set void EOLAnnotationSetStyleOffset=2747(int style,)
2874
2875# Get the start of the range of style numbers used for end of line annotations
2876get int EOLAnnotationGetStyleOffset=2748(,)
2877
2878# Start notifying the container of all key presses and commands.
2879fun void StartRecord=3001(,)
2880
2881# Stop notifying the container of all key presses and commands.
2882fun void StopRecord=3002(,)
2883
2884# Set the lexing language of the document.
2885set void SetLexer=4001(int lexer,)
2886
2887# Retrieve the lexing language of the document.
2888get int GetLexer=4002(,)
2889
2890# Colourise a segment of the document using the current lexing language.
2891fun void Colourise=4003(position start, position end)
2892
2893# Set up a value that may be used by a lexer for some optional feature.
2894set void SetProperty=4004(string key, string value)
2895
2896# Maximum value of keywordSet parameter of SetKeyWords.
2897val KEYWORDSET_MAX=8
2898
2899# Set up the key words used by the lexer.
2900set void SetKeyWords=4005(int keyWordSet, string keyWords)
2901
2902# Set the lexing language of the document based on string name.
2903set void SetLexerLanguage=4006(, string language)
2904
2905# Load a lexer library (dll / so).
2906fun void LoadLexerLibrary=4007(, string path)
2907
2908# Retrieve a "property" value previously set with SetProperty.
2909# Result is NUL-terminated.
2910get int GetProperty=4008(string key, stringresult value)
2911
2912# Retrieve a "property" value previously set with SetProperty,
2913# with "$()" variable replacement on returned buffer.
2914# Result is NUL-terminated.
2915get int GetPropertyExpanded=4009(string key, stringresult value)
2916
2917# Retrieve a "property" value previously set with SetProperty,
2918# interpreted as an int AFTER any "$()" variable replacement.
2919get int GetPropertyInt=4010(string key, int defaultValue)
2920
2921# Retrieve the name of the lexer.
2922# Return the length of the text.
2923# Result is NUL-terminated.
2924get int GetLexerLanguage=4012(, stringresult language)
2925
2926# For private communication between an application and a known lexer.
2927fun pointer PrivateLexerCall=4013(int operation, pointer pointer)
2928
2929# Retrieve a '\n' separated list of properties understood by the current lexer.
2930# Result is NUL-terminated.
2931fun int PropertyNames=4014(, stringresult names)
2932
2933enu TypeProperty=SC_TYPE_
2934val SC_TYPE_BOOLEAN=0
2935val SC_TYPE_INTEGER=1
2936val SC_TYPE_STRING=2
2937
2938# Retrieve the type of a property.
2939fun TypeProperty PropertyType=4015(string name,)
2940
2941# Describe a property.
2942# Result is NUL-terminated.
2943fun int DescribeProperty=4016(string name, stringresult description)
2944
2945# Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
2946# Result is NUL-terminated.
2947fun int DescribeKeyWordSets=4017(, stringresult descriptions)
2948
2949# Bit set of LineEndType enumertion for which line ends beyond the standard
2950# LF, CR, and CRLF are supported by the lexer.
2951get int GetLineEndTypesSupported=4018(,)
2952
2953# Allocate a set of sub styles for a particular base style, returning start of range
2954fun int AllocateSubStyles=4020(int styleBase, int numberStyles)
2955
2956# The starting style number for the sub styles associated with a base style
2957get int GetSubStylesStart=4021(int styleBase,)
2958
2959# The number of sub styles associated with a base style
2960get int GetSubStylesLength=4022(int styleBase,)
2961
2962# For a sub style, return the base style, else return the argument.
2963get int GetStyleFromSubStyle=4027(int subStyle,)
2964
2965# For a secondary style, return the primary style, else return the argument.
2966get int GetPrimaryStyleFromStyle=4028(int style,)
2967
2968# Free allocated sub styles
2969fun void FreeSubStyles=4023(,)
2970
2971# Set the identifiers that are shown in a particular style
2972set void SetIdentifiers=4024(int style, string identifiers)
2973
2974# Where styles are duplicated by a feature such as active/inactive code
2975# return the distance between the two types.
2976get int DistanceToSecondaryStyles=4025(,)
2977
2978# Get the set of base styles that can be extended with sub styles
2979# Result is NUL-terminated.
2980get int GetSubStyleBases=4026(, stringresult styles)
2981
2982# Retrieve the number of named styles for the lexer.
2983get int GetNamedStyles=4029(,)
2984
2985# Retrieve the name of a style.
2986# Result is NUL-terminated.
2987fun int NameOfStyle=4030(int style, stringresult name)
2988
2989# Retrieve a ' ' separated list of style tags like "literal quoted string".
2990# Result is NUL-terminated.
2991fun int TagsOfStyle=4031(int style, stringresult tags)
2992
2993# Retrieve a description of a style.
2994# Result is NUL-terminated.
2995fun int DescriptionOfStyle=4032(int style, stringresult description)
2996
2997# Set the lexer from an ILexer*.
2998set void SetILexer=4033(, pointer ilexer)
2999
3000# Notifications
3001# Type of modification and the action which caused the modification.
3002# These are defined as a bit mask to make it easy to specify which notifications are wanted.
3003# One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
3004enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_MULTISTEPUNDOREDO SC_LASTSTEPINUNDOREDO SC_MULTILINEUNDOREDO SC_STARTACTION SC_MODEVENTMASKALL
3005val SC_MOD_NONE=0x0
3006val SC_MOD_INSERTTEXT=0x1
3007val SC_MOD_DELETETEXT=0x2
3008val SC_MOD_CHANGESTYLE=0x4
3009val SC_MOD_CHANGEFOLD=0x8
3010val SC_PERFORMED_USER=0x10
3011val SC_PERFORMED_UNDO=0x20
3012val SC_PERFORMED_REDO=0x40
3013val SC_MULTISTEPUNDOREDO=0x80
3014val SC_LASTSTEPINUNDOREDO=0x100
3015val SC_MOD_CHANGEMARKER=0x200
3016val SC_MOD_BEFOREINSERT=0x400
3017val SC_MOD_BEFOREDELETE=0x800
3018val SC_MULTILINEUNDOREDO=0x1000
3019val SC_STARTACTION=0x2000
3020val SC_MOD_CHANGEINDICATOR=0x4000
3021val SC_MOD_CHANGELINESTATE=0x8000
3022val SC_MOD_CHANGEMARGIN=0x10000
3023val SC_MOD_CHANGEANNOTATION=0x20000
3024val SC_MOD_CONTAINER=0x40000
3025val SC_MOD_LEXERSTATE=0x80000
3026val SC_MOD_INSERTCHECK=0x100000
3027val SC_MOD_CHANGETABSTOPS=0x200000
3028val SC_MOD_CHANGEEOLANNOTATION=0x400000
3029val SC_MODEVENTMASKALL=0x7FFFFF
3030
3031ali SC_MOD_INSERTTEXT=INSERT_TEXT
3032ali SC_MOD_DELETETEXT=DELETE_TEXT
3033ali SC_MOD_CHANGESTYLE=CHANGE_STYLE
3034ali SC_MOD_CHANGEFOLD=CHANGE_FOLD
3035ali SC_MULTISTEPUNDOREDO=MULTI_STEP_UNDO_REDO
3036ali SC_LASTSTEPINUNDOREDO=LAST_STEP_IN_UNDO_REDO
3037ali SC_MOD_CHANGEMARKER=CHANGE_MARKER
3038ali SC_MOD_BEFOREINSERT=BEFORE_INSERT
3039ali SC_MOD_BEFOREDELETE=BEFORE_DELETE
3040ali SC_MULTILINEUNDOREDO=MULTILINE_UNDO_REDO
3041ali SC_STARTACTION=START_ACTION
3042ali SC_MOD_CHANGEINDICATOR=CHANGE_INDICATOR
3043ali SC_MOD_CHANGELINESTATE=CHANGE_LINE_STATE
3044ali SC_MOD_CHANGEMARGIN=CHANGE_MARGIN
3045ali SC_MOD_CHANGEANNOTATION=CHANGE_ANNOTATION
3046ali SC_MOD_LEXERSTATE=LEXER_STATE
3047ali SC_MOD_INSERTCHECK=INSERT_CHECK
3048ali SC_MOD_CHANGETABSTOPS=CHANGE_TAB_STOPS
3049ali SC_MOD_CHANGEEOLANNOTATION=CHANGE_E_O_L_ANNOTATION
3050ali SC_MODEVENTMASKALL=EVENT_MASK_ALL
3051
3052enu Update=SC_UPDATE_
3053val SC_UPDATE_CONTENT=0x1
3054val SC_UPDATE_SELECTION=0x2
3055val SC_UPDATE_V_SCROLL=0x4
3056val SC_UPDATE_H_SCROLL=0x8
3057
3058# For compatibility, these go through the COMMAND notification rather than NOTIFY
3059# and should have had exactly the same values as the EN_* constants.
3060# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*
3061# As clients depend on these constants, this will not be changed.
3062val SCEN_CHANGE=768
3063val SCEN_SETFOCUS=512
3064val SCEN_KILLFOCUS=256
3065
3066# Symbolic key codes and modifier flags.
3067# ASCII and other printable characters below 256.
3068# Extended keys above 300.
3069
3070enu Keys=SCK_
3071val SCK_DOWN=300
3072val SCK_UP=301
3073val SCK_LEFT=302
3074val SCK_RIGHT=303
3075val SCK_HOME=304
3076val SCK_END=305
3077val SCK_PRIOR=306
3078val SCK_NEXT=307
3079val SCK_DELETE=308
3080val SCK_INSERT=309
3081val SCK_ESCAPE=7
3082val SCK_BACK=8
3083val SCK_TAB=9
3084val SCK_RETURN=13
3085val SCK_ADD=310
3086val SCK_SUBTRACT=311
3087val SCK_DIVIDE=312
3088val SCK_WIN=313
3089val SCK_RWIN=314
3090val SCK_MENU=315
3091
3092ali SCK_RWIN=R_WIN
3093
3094enu KeyMod=SCMOD_
3095val SCMOD_NORM=0
3096val SCMOD_SHIFT=1
3097val SCMOD_CTRL=2
3098val SCMOD_ALT=4
3099val SCMOD_SUPER=8
3100val SCMOD_META=16
3101
3102enu CompletionMethods=SC_AC_
3103val SC_AC_FILLUP=1
3104val SC_AC_DOUBLECLICK=2
3105val SC_AC_TAB=3
3106val SC_AC_NEWLINE=4
3107val SC_AC_COMMAND=5
3108
3109ali SC_AC_FILLUP=FILL_UP
3110ali SC_AC_DOUBLECLICK=DOUBLE_CLICK
3111
3112# characterSource for SCN_CHARADDED
3113enu CharacterSource=SC_CHARACTERSOURCE_
3114# Direct input characters.
3115val SC_CHARACTERSOURCE_DIRECT_INPUT=0
3116# IME (inline mode) or dead key tentative input characters.
3117val SC_CHARACTERSOURCE_TENTATIVE_INPUT=1
3118# IME (either inline or windowed mode) full composited string.
3119val SC_CHARACTERSOURCE_IME_RESULT=2
3120
3121################################################
3122# For SciLexer.h
3123enu Lexer=SCLEX_
3124val SCLEX_CONTAINER=0
3125val SCLEX_NULL=1
3126val SCLEX_PYTHON=2
3127val SCLEX_CPP=3
3128val SCLEX_HTML=4
3129val SCLEX_XML=5
3130val SCLEX_PERL=6
3131val SCLEX_SQL=7
3132val SCLEX_VB=8
3133val SCLEX_PROPERTIES=9
3134val SCLEX_ERRORLIST=10
3135val SCLEX_MAKEFILE=11
3136val SCLEX_BATCH=12
3137val SCLEX_XCODE=13
3138val SCLEX_LATEX=14
3139val SCLEX_LUA=15
3140val SCLEX_DIFF=16
3141val SCLEX_CONF=17
3142val SCLEX_PASCAL=18
3143val SCLEX_AVE=19
3144val SCLEX_ADA=20
3145val SCLEX_LISP=21
3146val SCLEX_RUBY=22
3147val SCLEX_EIFFEL=23
3148val SCLEX_EIFFELKW=24
3149val SCLEX_TCL=25
3150val SCLEX_NNCRONTAB=26
3151val SCLEX_BULLANT=27
3152val SCLEX_VBSCRIPT=28
3153val SCLEX_BAAN=31
3154val SCLEX_MATLAB=32
3155val SCLEX_SCRIPTOL=33
3156val SCLEX_ASM=34
3157val SCLEX_CPPNOCASE=35
3158val SCLEX_FORTRAN=36
3159val SCLEX_F77=37
3160val SCLEX_CSS=38
3161val SCLEX_POV=39
3162val SCLEX_LOUT=40
3163val SCLEX_ESCRIPT=41
3164val SCLEX_PS=42
3165val SCLEX_NSIS=43
3166val SCLEX_MMIXAL=44
3167val SCLEX_CLW=45
3168val SCLEX_CLWNOCASE=46
3169val SCLEX_LOT=47
3170val SCLEX_YAML=48
3171val SCLEX_TEX=49
3172val SCLEX_METAPOST=50
3173val SCLEX_POWERBASIC=51
3174val SCLEX_FORTH=52
3175val SCLEX_ERLANG=53
3176val SCLEX_OCTAVE=54
3177val SCLEX_MSSQL=55
3178val SCLEX_VERILOG=56
3179val SCLEX_KIX=57
3180val SCLEX_GUI4CLI=58
3181val SCLEX_SPECMAN=59
3182val SCLEX_AU3=60
3183val SCLEX_APDL=61
3184val SCLEX_BASH=62
3185val SCLEX_ASN1=63
3186val SCLEX_VHDL=64
3187val SCLEX_CAML=65
3188val SCLEX_BLITZBASIC=66
3189val SCLEX_PUREBASIC=67
3190val SCLEX_HASKELL=68
3191val SCLEX_PHPSCRIPT=69
3192val SCLEX_TADS3=70
3193val SCLEX_REBOL=71
3194val SCLEX_SMALLTALK=72
3195val SCLEX_FLAGSHIP=73
3196val SCLEX_CSOUND=74
3197val SCLEX_FREEBASIC=75
3198val SCLEX_INNOSETUP=76
3199val SCLEX_OPAL=77
3200val SCLEX_SPICE=78
3201val SCLEX_D=79
3202val SCLEX_CMAKE=80
3203val SCLEX_GAP=81
3204val SCLEX_PLM=82
3205val SCLEX_PROGRESS=83
3206val SCLEX_ABAQUS=84
3207val SCLEX_ASYMPTOTE=85
3208val SCLEX_R=86
3209val SCLEX_MAGIK=87
3210val SCLEX_POWERSHELL=88
3211val SCLEX_MYSQL=89
3212val SCLEX_PO=90
3213val SCLEX_TAL=91
3214val SCLEX_COBOL=92
3215val SCLEX_TACL=93
3216val SCLEX_SORCUS=94
3217val SCLEX_POWERPRO=95
3218val SCLEX_NIMROD=96
3219val SCLEX_SML=97
3220val SCLEX_MARKDOWN=98
3221val SCLEX_TXT2TAGS=99
3222val SCLEX_A68K=100
3223val SCLEX_MODULA=101
3224val SCLEX_COFFEESCRIPT=102
3225val SCLEX_TCMD=103
3226val SCLEX_AVS=104
3227val SCLEX_ECL=105
3228val SCLEX_OSCRIPT=106
3229val SCLEX_VISUALPROLOG=107
3230val SCLEX_LITERATEHASKELL=108
3231val SCLEX_STTXT=109
3232val SCLEX_KVIRC=110
3233val SCLEX_RUST=111
3234val SCLEX_DMAP=112
3235val SCLEX_AS=113
3236val SCLEX_DMIS=114
3237val SCLEX_REGISTRY=115
3238val SCLEX_BIBTEX=116
3239val SCLEX_SREC=117
3240val SCLEX_IHEX=118
3241val SCLEX_TEHEX=119
3242val SCLEX_JSON=120
3243val SCLEX_EDIFACT=121
3244val SCLEX_INDENT=122
3245val SCLEX_MAXIMA=123
3246val SCLEX_STATA=124
3247val SCLEX_SAS=125
3248val SCLEX_NIM=126
3249val SCLEX_CIL=127
3250val SCLEX_X12=128
3251val SCLEX_DATAFLEX=129
3252val SCLEX_HOLLYWOOD=130
3253val SCLEX_RAKU=131
3254
3255# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
3256# value assigned in sequence from SCLEX_AUTOMATIC+1.
3257val SCLEX_AUTOMATIC=1000
3258# Lexical states for SCLEX_PYTHON
3259lex Python=SCLEX_PYTHON SCE_P_
3260lex Nimrod=SCLEX_NIMROD SCE_P_
3261val SCE_P_DEFAULT=0
3262val SCE_P_COMMENTLINE=1
3263val SCE_P_NUMBER=2
3264val SCE_P_STRING=3
3265val SCE_P_CHARACTER=4
3266val SCE_P_WORD=5
3267val SCE_P_TRIPLE=6
3268val SCE_P_TRIPLEDOUBLE=7
3269val SCE_P_CLASSNAME=8
3270val SCE_P_DEFNAME=9
3271val SCE_P_OPERATOR=10
3272val SCE_P_IDENTIFIER=11
3273val SCE_P_COMMENTBLOCK=12
3274val SCE_P_STRINGEOL=13
3275val SCE_P_WORD2=14
3276val SCE_P_DECORATOR=15
3277val SCE_P_FSTRING=16
3278val SCE_P_FCHARACTER=17
3279val SCE_P_FTRIPLE=18
3280val SCE_P_FTRIPLEDOUBLE=19
3281# Lexical states for SCLEX_CPP
3282# Lexical states for SCLEX_BULLANT
3283# Lexical states for SCLEX_COBOL
3284# Lexical states for SCLEX_TACL
3285# Lexical states for SCLEX_TAL
3286lex Cpp=SCLEX_CPP SCE_C_
3287lex BullAnt=SCLEX_BULLANT SCE_C_
3288lex COBOL=SCLEX_COBOL SCE_C_
3289lex TACL=SCLEX_TACL SCE_C_
3290lex TAL=SCLEX_TAL SCE_C_
3291val SCE_C_DEFAULT=0
3292val SCE_C_COMMENT=1
3293val SCE_C_COMMENTLINE=2
3294val SCE_C_COMMENTDOC=3
3295val SCE_C_NUMBER=4
3296val SCE_C_WORD=5
3297val SCE_C_STRING=6
3298val SCE_C_CHARACTER=7
3299val SCE_C_UUID=8
3300val SCE_C_PREPROCESSOR=9
3301val SCE_C_OPERATOR=10
3302val SCE_C_IDENTIFIER=11
3303val SCE_C_STRINGEOL=12
3304val SCE_C_VERBATIM=13
3305val SCE_C_REGEX=14
3306val SCE_C_COMMENTLINEDOC=15
3307val SCE_C_WORD2=16
3308val SCE_C_COMMENTDOCKEYWORD=17
3309val SCE_C_COMMENTDOCKEYWORDERROR=18
3310val SCE_C_GLOBALCLASS=19
3311val SCE_C_STRINGRAW=20
3312val SCE_C_TRIPLEVERBATIM=21
3313val SCE_C_HASHQUOTEDSTRING=22
3314val SCE_C_PREPROCESSORCOMMENT=23
3315val SCE_C_PREPROCESSORCOMMENTDOC=24
3316val SCE_C_USERLITERAL=25
3317val SCE_C_TASKMARKER=26
3318val SCE_C_ESCAPESEQUENCE=27
3319# Lexical states for SCLEX_D
3320lex D=SCLEX_D SCE_D_
3321val SCE_D_DEFAULT=0
3322val SCE_D_COMMENT=1
3323val SCE_D_COMMENTLINE=2
3324val SCE_D_COMMENTDOC=3
3325val SCE_D_COMMENTNESTED=4
3326val SCE_D_NUMBER=5
3327val SCE_D_WORD=6
3328val SCE_D_WORD2=7
3329val SCE_D_WORD3=8
3330val SCE_D_TYPEDEF=9
3331val SCE_D_STRING=10
3332val SCE_D_STRINGEOL=11
3333val SCE_D_CHARACTER=12
3334val SCE_D_OPERATOR=13
3335val SCE_D_IDENTIFIER=14
3336val SCE_D_COMMENTLINEDOC=15
3337val SCE_D_COMMENTDOCKEYWORD=16
3338val SCE_D_COMMENTDOCKEYWORDERROR=17
3339val SCE_D_STRINGB=18
3340val SCE_D_STRINGR=19
3341val SCE_D_WORD5=20
3342val SCE_D_WORD6=21
3343val SCE_D_WORD7=22
3344# Lexical states for SCLEX_TCL
3345lex TCL=SCLEX_TCL SCE_TCL_
3346val SCE_TCL_DEFAULT=0
3347val SCE_TCL_COMMENT=1
3348val SCE_TCL_COMMENTLINE=2
3349val SCE_TCL_NUMBER=3
3350val SCE_TCL_WORD_IN_QUOTE=4
3351val SCE_TCL_IN_QUOTE=5
3352val SCE_TCL_OPERATOR=6
3353val SCE_TCL_IDENTIFIER=7
3354val SCE_TCL_SUBSTITUTION=8
3355val SCE_TCL_SUB_BRACE=9
3356val SCE_TCL_MODIFIER=10
3357val SCE_TCL_EXPAND=11
3358val SCE_TCL_WORD=12
3359val SCE_TCL_WORD2=13
3360val SCE_TCL_WORD3=14
3361val SCE_TCL_WORD4=15
3362val SCE_TCL_WORD5=16
3363val SCE_TCL_WORD6=17
3364val SCE_TCL_WORD7=18
3365val SCE_TCL_WORD8=19
3366val SCE_TCL_COMMENT_BOX=20
3367val SCE_TCL_BLOCK_COMMENT=21
3368# Lexical states for SCLEX_HTML, SCLEX_XML
3369lex HTML=SCLEX_HTML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
3370lex XML=SCLEX_XML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
3371val SCE_H_DEFAULT=0
3372val SCE_H_TAG=1
3373val SCE_H_TAGUNKNOWN=2
3374val SCE_H_ATTRIBUTE=3
3375val SCE_H_ATTRIBUTEUNKNOWN=4
3376val SCE_H_NUMBER=5
3377val SCE_H_DOUBLESTRING=6
3378val SCE_H_SINGLESTRING=7
3379val SCE_H_OTHER=8
3380val SCE_H_COMMENT=9
3381val SCE_H_ENTITY=10
3382# XML and ASP
3383val SCE_H_TAGEND=11
3384val SCE_H_XMLSTART=12
3385val SCE_H_XMLEND=13
3386val SCE_H_SCRIPT=14
3387val SCE_H_ASP=15
3388val SCE_H_ASPAT=16
3389val SCE_H_CDATA=17
3390val SCE_H_QUESTION=18
3391# More HTML
3392val SCE_H_VALUE=19
3393# X-Code
3394val SCE_H_XCCOMMENT=20
3395# SGML
3396val SCE_H_SGML_DEFAULT=21
3397val SCE_H_SGML_COMMAND=22
3398val SCE_H_SGML_1ST_PARAM=23
3399val SCE_H_SGML_DOUBLESTRING=24
3400val SCE_H_SGML_SIMPLESTRING=25
3401val SCE_H_SGML_ERROR=26
3402val SCE_H_SGML_SPECIAL=27
3403val SCE_H_SGML_ENTITY=28
3404val SCE_H_SGML_COMMENT=29
3405val SCE_H_SGML_1ST_PARAM_COMMENT=30
3406val SCE_H_SGML_BLOCK_DEFAULT=31
3407# Embedded Javascript
3408val SCE_HJ_START=40
3409val SCE_HJ_DEFAULT=41
3410val SCE_HJ_COMMENT=42
3411val SCE_HJ_COMMENTLINE=43
3412val SCE_HJ_COMMENTDOC=44
3413val SCE_HJ_NUMBER=45
3414val SCE_HJ_WORD=46
3415val SCE_HJ_KEYWORD=47
3416val SCE_HJ_DOUBLESTRING=48
3417val SCE_HJ_SINGLESTRING=49
3418val SCE_HJ_SYMBOLS=50
3419val SCE_HJ_STRINGEOL=51
3420val SCE_HJ_REGEX=52
3421# ASP Javascript
3422val SCE_HJA_START=55
3423val SCE_HJA_DEFAULT=56
3424val SCE_HJA_COMMENT=57
3425val SCE_HJA_COMMENTLINE=58
3426val SCE_HJA_COMMENTDOC=59
3427val SCE_HJA_NUMBER=60
3428val SCE_HJA_WORD=61
3429val SCE_HJA_KEYWORD=62
3430val SCE_HJA_DOUBLESTRING=63
3431val SCE_HJA_SINGLESTRING=64
3432val SCE_HJA_SYMBOLS=65
3433val SCE_HJA_STRINGEOL=66
3434val SCE_HJA_REGEX=67
3435# Embedded VBScript
3436val SCE_HB_START=70
3437val SCE_HB_DEFAULT=71
3438val SCE_HB_COMMENTLINE=72
3439val SCE_HB_NUMBER=73
3440val SCE_HB_WORD=74
3441val SCE_HB_STRING=75
3442val SCE_HB_IDENTIFIER=76
3443val SCE_HB_STRINGEOL=77
3444# ASP VBScript
3445val SCE_HBA_START=80
3446val SCE_HBA_DEFAULT=81
3447val SCE_HBA_COMMENTLINE=82
3448val SCE_HBA_NUMBER=83
3449val SCE_HBA_WORD=84
3450val SCE_HBA_STRING=85
3451val SCE_HBA_IDENTIFIER=86
3452val SCE_HBA_STRINGEOL=87
3453# Embedded Python
3454val SCE_HP_START=90
3455val SCE_HP_DEFAULT=91
3456val SCE_HP_COMMENTLINE=92
3457val SCE_HP_NUMBER=93
3458val SCE_HP_STRING=94
3459val SCE_HP_CHARACTER=95
3460val SCE_HP_WORD=96
3461val SCE_HP_TRIPLE=97
3462val SCE_HP_TRIPLEDOUBLE=98
3463val SCE_HP_CLASSNAME=99
3464val SCE_HP_DEFNAME=100
3465val SCE_HP_OPERATOR=101
3466val SCE_HP_IDENTIFIER=102
3467# PHP
3468val SCE_HPHP_COMPLEX_VARIABLE=104
3469# ASP Python
3470val SCE_HPA_START=105
3471val SCE_HPA_DEFAULT=106
3472val SCE_HPA_COMMENTLINE=107
3473val SCE_HPA_NUMBER=108
3474val SCE_HPA_STRING=109
3475val SCE_HPA_CHARACTER=110
3476val SCE_HPA_WORD=111
3477val SCE_HPA_TRIPLE=112
3478val SCE_HPA_TRIPLEDOUBLE=113
3479val SCE_HPA_CLASSNAME=114
3480val SCE_HPA_DEFNAME=115
3481val SCE_HPA_OPERATOR=116
3482val SCE_HPA_IDENTIFIER=117
3483# PHP
3484val SCE_HPHP_DEFAULT=118
3485val SCE_HPHP_HSTRING=119
3486val SCE_HPHP_SIMPLESTRING=120
3487val SCE_HPHP_WORD=121
3488val SCE_HPHP_NUMBER=122
3489val SCE_HPHP_VARIABLE=123
3490val SCE_HPHP_COMMENT=124
3491val SCE_HPHP_COMMENTLINE=125
3492val SCE_HPHP_HSTRING_VARIABLE=126
3493val SCE_HPHP_OPERATOR=127
3494# Lexical states for SCLEX_PERL
3495lex Perl=SCLEX_PERL SCE_PL_
3496val SCE_PL_DEFAULT=0
3497val SCE_PL_ERROR=1
3498val SCE_PL_COMMENTLINE=2
3499val SCE_PL_POD=3
3500val SCE_PL_NUMBER=4
3501val SCE_PL_WORD=5
3502val SCE_PL_STRING=6
3503val SCE_PL_CHARACTER=7
3504val SCE_PL_PUNCTUATION=8
3505val SCE_PL_PREPROCESSOR=9
3506val SCE_PL_OPERATOR=10
3507val SCE_PL_IDENTIFIER=11
3508val SCE_PL_SCALAR=12
3509val SCE_PL_ARRAY=13
3510val SCE_PL_HASH=14
3511val SCE_PL_SYMBOLTABLE=15
3512val SCE_PL_VARIABLE_INDEXER=16
3513val SCE_PL_REGEX=17
3514val SCE_PL_REGSUBST=18
3515val SCE_PL_LONGQUOTE=19
3516val SCE_PL_BACKTICKS=20
3517val SCE_PL_DATASECTION=21
3518val SCE_PL_HERE_DELIM=22
3519val SCE_PL_HERE_Q=23
3520val SCE_PL_HERE_QQ=24
3521val SCE_PL_HERE_QX=25
3522val SCE_PL_STRING_Q=26
3523val SCE_PL_STRING_QQ=27
3524val SCE_PL_STRING_QX=28
3525val SCE_PL_STRING_QR=29
3526val SCE_PL_STRING_QW=30
3527val SCE_PL_POD_VERB=31
3528val SCE_PL_SUB_PROTOTYPE=40
3529val SCE_PL_FORMAT_IDENT=41
3530val SCE_PL_FORMAT=42
3531val SCE_PL_STRING_VAR=43
3532val SCE_PL_XLAT=44
3533val SCE_PL_REGEX_VAR=54
3534val SCE_PL_REGSUBST_VAR=55
3535val SCE_PL_BACKTICKS_VAR=57
3536val SCE_PL_HERE_QQ_VAR=61
3537val SCE_PL_HERE_QX_VAR=62
3538val SCE_PL_STRING_QQ_VAR=64
3539val SCE_PL_STRING_QX_VAR=65
3540val SCE_PL_STRING_QR_VAR=66
3541# Lexical states for SCLEX_RUBY
3542lex Ruby=SCLEX_RUBY SCE_RB_
3543val SCE_RB_DEFAULT=0
3544val SCE_RB_ERROR=1
3545val SCE_RB_COMMENTLINE=2
3546val SCE_RB_POD=3
3547val SCE_RB_NUMBER=4
3548val SCE_RB_WORD=5
3549val SCE_RB_STRING=6
3550val SCE_RB_CHARACTER=7
3551val SCE_RB_CLASSNAME=8
3552val SCE_RB_DEFNAME=9
3553val SCE_RB_OPERATOR=10
3554val SCE_RB_IDENTIFIER=11
3555val SCE_RB_REGEX=12
3556val SCE_RB_GLOBAL=13
3557val SCE_RB_SYMBOL=14
3558val SCE_RB_MODULE_NAME=15
3559val SCE_RB_INSTANCE_VAR=16
3560val SCE_RB_CLASS_VAR=17
3561val SCE_RB_BACKTICKS=18
3562val SCE_RB_DATASECTION=19
3563val SCE_RB_HERE_DELIM=20
3564val SCE_RB_HERE_Q=21
3565val SCE_RB_HERE_QQ=22
3566val SCE_RB_HERE_QX=23
3567val SCE_RB_STRING_Q=24
3568val SCE_RB_STRING_QQ=25
3569val SCE_RB_STRING_QX=26
3570val SCE_RB_STRING_QR=27
3571val SCE_RB_STRING_QW=28
3572val SCE_RB_WORD_DEMOTED=29
3573val SCE_RB_STDIN=30
3574val SCE_RB_STDOUT=31
3575val SCE_RB_STDERR=40
3576val SCE_RB_UPPER_BOUND=41
3577# Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC, SCLEX_BLITZBASIC, SCLEX_PUREBASIC, SCLEX_FREEBASIC
3578lex VB=SCLEX_VB SCE_B_
3579lex VBScript=SCLEX_VBSCRIPT SCE_B_
3580lex PowerBasic=SCLEX_POWERBASIC SCE_B_
3581lex BlitzBasic=SCLEX_BLITZBASIC SCE_B_
3582lex PureBasic=SCLEX_PUREBASIC SCE_B_
3583lex FreeBasic=SCLEX_FREEBASIC SCE_B_
3584val SCE_B_DEFAULT=0
3585val SCE_B_COMMENT=1
3586val SCE_B_NUMBER=2
3587val SCE_B_KEYWORD=3
3588val SCE_B_STRING=4
3589val SCE_B_PREPROCESSOR=5
3590val SCE_B_OPERATOR=6
3591val SCE_B_IDENTIFIER=7
3592val SCE_B_DATE=8
3593val SCE_B_STRINGEOL=9
3594val SCE_B_KEYWORD2=10
3595val SCE_B_KEYWORD3=11
3596val SCE_B_KEYWORD4=12
3597val SCE_B_CONSTANT=13
3598val SCE_B_ASM=14
3599val SCE_B_LABEL=15
3600val SCE_B_ERROR=16
3601val SCE_B_HEXNUMBER=17
3602val SCE_B_BINNUMBER=18
3603val SCE_B_COMMENTBLOCK=19
3604val SCE_B_DOCLINE=20
3605val SCE_B_DOCBLOCK=21
3606val SCE_B_DOCKEYWORD=22
3607# Lexical states for SCLEX_PROPERTIES
3608lex Properties=SCLEX_PROPERTIES SCE_PROPS_
3609val SCE_PROPS_DEFAULT=0
3610val SCE_PROPS_COMMENT=1
3611val SCE_PROPS_SECTION=2
3612val SCE_PROPS_ASSIGNMENT=3
3613val SCE_PROPS_DEFVAL=4
3614val SCE_PROPS_KEY=5
3615# Lexical states for SCLEX_LATEX
3616lex LaTeX=SCLEX_LATEX SCE_L_
3617val SCE_L_DEFAULT=0
3618val SCE_L_COMMAND=1
3619val SCE_L_TAG=2
3620val SCE_L_MATH=3
3621val SCE_L_COMMENT=4
3622val SCE_L_TAG2=5
3623val SCE_L_MATH2=6
3624val SCE_L_COMMENT2=7
3625val SCE_L_VERBATIM=8
3626val SCE_L_SHORTCMD=9
3627val SCE_L_SPECIAL=10
3628val SCE_L_CMDOPT=11
3629val SCE_L_ERROR=12
3630# Lexical states for SCLEX_LUA
3631lex Lua=SCLEX_LUA SCE_LUA_
3632val SCE_LUA_DEFAULT=0
3633val SCE_LUA_COMMENT=1
3634val SCE_LUA_COMMENTLINE=2
3635val SCE_LUA_COMMENTDOC=3
3636val SCE_LUA_NUMBER=4
3637val SCE_LUA_WORD=5
3638val SCE_LUA_STRING=6
3639val SCE_LUA_CHARACTER=7
3640val SCE_LUA_LITERALSTRING=8
3641val SCE_LUA_PREPROCESSOR=9
3642val SCE_LUA_OPERATOR=10
3643val SCE_LUA_IDENTIFIER=11
3644val SCE_LUA_STRINGEOL=12
3645val SCE_LUA_WORD2=13
3646val SCE_LUA_WORD3=14
3647val SCE_LUA_WORD4=15
3648val SCE_LUA_WORD5=16
3649val SCE_LUA_WORD6=17
3650val SCE_LUA_WORD7=18
3651val SCE_LUA_WORD8=19
3652val SCE_LUA_LABEL=20
3653# Lexical states for SCLEX_ERRORLIST
3654lex ErrorList=SCLEX_ERRORLIST SCE_ERR_
3655val SCE_ERR_DEFAULT=0
3656val SCE_ERR_PYTHON=1
3657val SCE_ERR_GCC=2
3658val SCE_ERR_MS=3
3659val SCE_ERR_CMD=4
3660val SCE_ERR_BORLAND=5
3661val SCE_ERR_PERL=6
3662val SCE_ERR_NET=7
3663val SCE_ERR_LUA=8
3664val SCE_ERR_CTAG=9
3665val SCE_ERR_DIFF_CHANGED=10
3666val SCE_ERR_DIFF_ADDITION=11
3667val SCE_ERR_DIFF_DELETION=12
3668val SCE_ERR_DIFF_MESSAGE=13
3669val SCE_ERR_PHP=14
3670val SCE_ERR_ELF=15
3671val SCE_ERR_IFC=16
3672val SCE_ERR_IFORT=17
3673val SCE_ERR_ABSF=18
3674val SCE_ERR_TIDY=19
3675val SCE_ERR_JAVA_STACK=20
3676val SCE_ERR_VALUE=21
3677val SCE_ERR_GCC_INCLUDED_FROM=22
3678val SCE_ERR_ESCSEQ=23
3679val SCE_ERR_ESCSEQ_UNKNOWN=24
3680val SCE_ERR_GCC_EXCERPT=25
3681val SCE_ERR_ES_BLACK=40
3682val SCE_ERR_ES_RED=41
3683val SCE_ERR_ES_GREEN=42
3684val SCE_ERR_ES_BROWN=43
3685val SCE_ERR_ES_BLUE=44
3686val SCE_ERR_ES_MAGENTA=45
3687val SCE_ERR_ES_CYAN=46
3688val SCE_ERR_ES_GRAY=47
3689val SCE_ERR_ES_DARK_GRAY=48
3690val SCE_ERR_ES_BRIGHT_RED=49
3691val SCE_ERR_ES_BRIGHT_GREEN=50
3692val SCE_ERR_ES_YELLOW=51
3693val SCE_ERR_ES_BRIGHT_BLUE=52
3694val SCE_ERR_ES_BRIGHT_MAGENTA=53
3695val SCE_ERR_ES_BRIGHT_CYAN=54
3696val SCE_ERR_ES_WHITE=55
3697# Lexical states for SCLEX_BATCH
3698lex Batch=SCLEX_BATCH SCE_BAT_
3699val SCE_BAT_DEFAULT=0
3700val SCE_BAT_COMMENT=1
3701val SCE_BAT_WORD=2
3702val SCE_BAT_LABEL=3
3703val SCE_BAT_HIDE=4
3704val SCE_BAT_COMMAND=5
3705val SCE_BAT_IDENTIFIER=6
3706val SCE_BAT_OPERATOR=7
3707# Lexical states for SCLEX_TCMD
3708lex TCMD=SCLEX_TCMD SCE_TCMD_
3709val SCE_TCMD_DEFAULT=0
3710val SCE_TCMD_COMMENT=1
3711val SCE_TCMD_WORD=2
3712val SCE_TCMD_LABEL=3
3713val SCE_TCMD_HIDE=4
3714val SCE_TCMD_COMMAND=5
3715val SCE_TCMD_IDENTIFIER=6
3716val SCE_TCMD_OPERATOR=7
3717val SCE_TCMD_ENVIRONMENT=8
3718val SCE_TCMD_EXPANSION=9
3719val SCE_TCMD_CLABEL=10
3720# Lexical states for SCLEX_MAKEFILE
3721lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_
3722val SCE_MAKE_DEFAULT=0
3723val SCE_MAKE_COMMENT=1
3724val SCE_MAKE_PREPROCESSOR=2
3725val SCE_MAKE_IDENTIFIER=3
3726val SCE_MAKE_OPERATOR=4
3727val SCE_MAKE_TARGET=5
3728val SCE_MAKE_IDEOL=9
3729# Lexical states for SCLEX_DIFF
3730lex Diff=SCLEX_DIFF SCE_DIFF_
3731val SCE_DIFF_DEFAULT=0
3732val SCE_DIFF_COMMENT=1
3733val SCE_DIFF_COMMAND=2
3734val SCE_DIFF_HEADER=3
3735val SCE_DIFF_POSITION=4
3736val SCE_DIFF_DELETED=5
3737val SCE_DIFF_ADDED=6
3738val SCE_DIFF_CHANGED=7
3739val SCE_DIFF_PATCH_ADD=8
3740val SCE_DIFF_PATCH_DELETE=9
3741val SCE_DIFF_REMOVED_PATCH_ADD=10
3742val SCE_DIFF_REMOVED_PATCH_DELETE=11
3743# Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
3744lex Conf=SCLEX_CONF SCE_CONF_
3745val SCE_CONF_DEFAULT=0
3746val SCE_CONF_COMMENT=1
3747val SCE_CONF_NUMBER=2
3748val SCE_CONF_IDENTIFIER=3
3749val SCE_CONF_EXTENSION=4
3750val SCE_CONF_PARAMETER=5
3751val SCE_CONF_STRING=6
3752val SCE_CONF_OPERATOR=7
3753val SCE_CONF_IP=8
3754val SCE_CONF_DIRECTIVE=9
3755# Lexical states for SCLEX_AVE, Avenue
3756lex Avenue=SCLEX_AVE SCE_AVE_
3757val SCE_AVE_DEFAULT=0
3758val SCE_AVE_COMMENT=1
3759val SCE_AVE_NUMBER=2
3760val SCE_AVE_WORD=3
3761val SCE_AVE_STRING=6
3762val SCE_AVE_ENUM=7
3763val SCE_AVE_STRINGEOL=8
3764val SCE_AVE_IDENTIFIER=9
3765val SCE_AVE_OPERATOR=10
3766val SCE_AVE_WORD1=11
3767val SCE_AVE_WORD2=12
3768val SCE_AVE_WORD3=13
3769val SCE_AVE_WORD4=14
3770val SCE_AVE_WORD5=15
3771val SCE_AVE_WORD6=16
3772# Lexical states for SCLEX_ADA
3773lex Ada=SCLEX_ADA SCE_ADA_
3774val SCE_ADA_DEFAULT=0
3775val SCE_ADA_WORD=1
3776val SCE_ADA_IDENTIFIER=2
3777val SCE_ADA_NUMBER=3
3778val SCE_ADA_DELIMITER=4
3779val SCE_ADA_CHARACTER=5
3780val SCE_ADA_CHARACTEREOL=6
3781val SCE_ADA_STRING=7
3782val SCE_ADA_STRINGEOL=8
3783val SCE_ADA_LABEL=9
3784val SCE_ADA_COMMENTLINE=10
3785val SCE_ADA_ILLEGAL=11
3786# Lexical states for SCLEX_BAAN
3787lex Baan=SCLEX_BAAN SCE_BAAN_
3788val SCE_BAAN_DEFAULT=0
3789val SCE_BAAN_COMMENT=1
3790val SCE_BAAN_COMMENTDOC=2
3791val SCE_BAAN_NUMBER=3
3792val SCE_BAAN_WORD=4
3793val SCE_BAAN_STRING=5
3794val SCE_BAAN_PREPROCESSOR=6
3795val SCE_BAAN_OPERATOR=7
3796val SCE_BAAN_IDENTIFIER=8
3797val SCE_BAAN_STRINGEOL=9
3798val SCE_BAAN_WORD2=10
3799val SCE_BAAN_WORD3=11
3800val SCE_BAAN_WORD4=12
3801val SCE_BAAN_WORD5=13
3802val SCE_BAAN_WORD6=14
3803val SCE_BAAN_WORD7=15
3804val SCE_BAAN_WORD8=16
3805val SCE_BAAN_WORD9=17
3806val SCE_BAAN_TABLEDEF=18
3807val SCE_BAAN_TABLESQL=19
3808val SCE_BAAN_FUNCTION=20
3809val SCE_BAAN_DOMDEF=21
3810val SCE_BAAN_FUNCDEF=22
3811val SCE_BAAN_OBJECTDEF=23
3812val SCE_BAAN_DEFINEDEF=24
3813# Lexical states for SCLEX_LISP
3814lex Lisp=SCLEX_LISP SCE_LISP_
3815val SCE_LISP_DEFAULT=0
3816val SCE_LISP_COMMENT=1
3817val SCE_LISP_NUMBER=2
3818val SCE_LISP_KEYWORD=3
3819val SCE_LISP_KEYWORD_KW=4
3820val SCE_LISP_SYMBOL=5
3821val SCE_LISP_STRING=6
3822val SCE_LISP_STRINGEOL=8
3823val SCE_LISP_IDENTIFIER=9
3824val SCE_LISP_OPERATOR=10
3825val SCE_LISP_SPECIAL=11
3826val SCE_LISP_MULTI_COMMENT=12
3827# Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
3828lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_
3829lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_
3830val SCE_EIFFEL_DEFAULT=0
3831val SCE_EIFFEL_COMMENTLINE=1
3832val SCE_EIFFEL_NUMBER=2
3833val SCE_EIFFEL_WORD=3
3834val SCE_EIFFEL_STRING=4
3835val SCE_EIFFEL_CHARACTER=5
3836val SCE_EIFFEL_OPERATOR=6
3837val SCE_EIFFEL_IDENTIFIER=7
3838val SCE_EIFFEL_STRINGEOL=8
3839# Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
3840lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_
3841val SCE_NNCRONTAB_DEFAULT=0
3842val SCE_NNCRONTAB_COMMENT=1
3843val SCE_NNCRONTAB_TASK=2
3844val SCE_NNCRONTAB_SECTION=3
3845val SCE_NNCRONTAB_KEYWORD=4
3846val SCE_NNCRONTAB_MODIFIER=5
3847val SCE_NNCRONTAB_ASTERISK=6
3848val SCE_NNCRONTAB_NUMBER=7
3849val SCE_NNCRONTAB_STRING=8
3850val SCE_NNCRONTAB_ENVIRONMENT=9
3851val SCE_NNCRONTAB_IDENTIFIER=10
3852# Lexical states for SCLEX_FORTH (Forth Lexer)
3853lex Forth=SCLEX_FORTH SCE_FORTH_
3854val SCE_FORTH_DEFAULT=0
3855val SCE_FORTH_COMMENT=1
3856val SCE_FORTH_COMMENT_ML=2
3857val SCE_FORTH_IDENTIFIER=3
3858val SCE_FORTH_CONTROL=4
3859val SCE_FORTH_KEYWORD=5
3860val SCE_FORTH_DEFWORD=6
3861val SCE_FORTH_PREWORD1=7
3862val SCE_FORTH_PREWORD2=8
3863val SCE_FORTH_NUMBER=9
3864val SCE_FORTH_STRING=10
3865val SCE_FORTH_LOCALE=11
3866# Lexical states for SCLEX_MATLAB
3867lex MatLab=SCLEX_MATLAB SCE_MATLAB_
3868val SCE_MATLAB_DEFAULT=0
3869val SCE_MATLAB_COMMENT=1
3870val SCE_MATLAB_COMMAND=2
3871val SCE_MATLAB_NUMBER=3
3872val SCE_MATLAB_KEYWORD=4
3873# single quoted string
3874val SCE_MATLAB_STRING=5
3875val SCE_MATLAB_OPERATOR=6
3876val SCE_MATLAB_IDENTIFIER=7
3877val SCE_MATLAB_DOUBLEQUOTESTRING=8
3878# Lexical states for SCLEX_MAXIMA
3879lex Maxima=SCLEX_MAXIMA SCE_MAXIMA_
3880val SCE_MAXIMA_OPERATOR=0
3881val SCE_MAXIMA_COMMANDENDING=1
3882val SCE_MAXIMA_COMMENT=2
3883val SCE_MAXIMA_NUMBER=3
3884val SCE_MAXIMA_STRING=4
3885val SCE_MAXIMA_COMMAND=5
3886val SCE_MAXIMA_VARIABLE=6
3887val SCE_MAXIMA_UNKNOWN=7
3888# Lexical states for SCLEX_SCRIPTOL
3889lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_
3890val SCE_SCRIPTOL_DEFAULT=0
3891val SCE_SCRIPTOL_WHITE=1
3892val SCE_SCRIPTOL_COMMENTLINE=2
3893val SCE_SCRIPTOL_PERSISTENT=3
3894val SCE_SCRIPTOL_CSTYLE=4
3895val SCE_SCRIPTOL_COMMENTBLOCK=5
3896val SCE_SCRIPTOL_NUMBER=6
3897val SCE_SCRIPTOL_STRING=7
3898val SCE_SCRIPTOL_CHARACTER=8
3899val SCE_SCRIPTOL_STRINGEOL=9
3900val SCE_SCRIPTOL_KEYWORD=10
3901val SCE_SCRIPTOL_OPERATOR=11
3902val SCE_SCRIPTOL_IDENTIFIER=12
3903val SCE_SCRIPTOL_TRIPLE=13
3904val SCE_SCRIPTOL_CLASSNAME=14
3905val SCE_SCRIPTOL_PREPROCESSOR=15
3906# Lexical states for SCLEX_ASM, SCLEX_AS
3907lex Asm=SCLEX_ASM SCE_ASM_
3908lex As=SCLEX_AS SCE_ASM_
3909val SCE_ASM_DEFAULT=0
3910val SCE_ASM_COMMENT=1
3911val SCE_ASM_NUMBER=2
3912val SCE_ASM_STRING=3
3913val SCE_ASM_OPERATOR=4
3914val SCE_ASM_IDENTIFIER=5
3915val SCE_ASM_CPUINSTRUCTION=6
3916val SCE_ASM_MATHINSTRUCTION=7
3917val SCE_ASM_REGISTER=8
3918val SCE_ASM_DIRECTIVE=9
3919val SCE_ASM_DIRECTIVEOPERAND=10
3920val SCE_ASM_COMMENTBLOCK=11
3921val SCE_ASM_CHARACTER=12
3922val SCE_ASM_STRINGEOL=13
3923val SCE_ASM_EXTINSTRUCTION=14
3924val SCE_ASM_COMMENTDIRECTIVE=15
3925# Lexical states for SCLEX_FORTRAN
3926lex Fortran=SCLEX_FORTRAN SCE_F_
3927lex F77=SCLEX_F77 SCE_F_
3928val SCE_F_DEFAULT=0
3929val SCE_F_COMMENT=1
3930val SCE_F_NUMBER=2
3931val SCE_F_STRING1=3
3932val SCE_F_STRING2=4
3933val SCE_F_STRINGEOL=5
3934val SCE_F_OPERATOR=6
3935val SCE_F_IDENTIFIER=7
3936val SCE_F_WORD=8
3937val SCE_F_WORD2=9
3938val SCE_F_WORD3=10
3939val SCE_F_PREPROCESSOR=11
3940val SCE_F_OPERATOR2=12
3941val SCE_F_LABEL=13
3942val SCE_F_CONTINUATION=14
3943# Lexical states for SCLEX_CSS
3944lex CSS=SCLEX_CSS SCE_CSS_
3945val SCE_CSS_DEFAULT=0
3946val SCE_CSS_TAG=1
3947val SCE_CSS_CLASS=2
3948val SCE_CSS_PSEUDOCLASS=3
3949val SCE_CSS_UNKNOWN_PSEUDOCLASS=4
3950val SCE_CSS_OPERATOR=5
3951val SCE_CSS_IDENTIFIER=6
3952val SCE_CSS_UNKNOWN_IDENTIFIER=7
3953val SCE_CSS_VALUE=8
3954val SCE_CSS_COMMENT=9
3955val SCE_CSS_ID=10
3956val SCE_CSS_IMPORTANT=11
3957val SCE_CSS_DIRECTIVE=12
3958val SCE_CSS_DOUBLESTRING=13
3959val SCE_CSS_SINGLESTRING=14
3960val SCE_CSS_IDENTIFIER2=15
3961val SCE_CSS_ATTRIBUTE=16
3962val SCE_CSS_IDENTIFIER3=17
3963val SCE_CSS_PSEUDOELEMENT=18
3964val SCE_CSS_EXTENDED_IDENTIFIER=19
3965val SCE_CSS_EXTENDED_PSEUDOCLASS=20
3966val SCE_CSS_EXTENDED_PSEUDOELEMENT=21
3967val SCE_CSS_MEDIA=22
3968val SCE_CSS_VARIABLE=23
3969# Lexical states for SCLEX_POV
3970lex POV=SCLEX_POV SCE_POV_
3971val SCE_POV_DEFAULT=0
3972val SCE_POV_COMMENT=1
3973val SCE_POV_COMMENTLINE=2
3974val SCE_POV_NUMBER=3
3975val SCE_POV_OPERATOR=4
3976val SCE_POV_IDENTIFIER=5
3977val SCE_POV_STRING=6
3978val SCE_POV_STRINGEOL=7
3979val SCE_POV_DIRECTIVE=8
3980val SCE_POV_BADDIRECTIVE=9
3981val SCE_POV_WORD2=10
3982val SCE_POV_WORD3=11
3983val SCE_POV_WORD4=12
3984val SCE_POV_WORD5=13
3985val SCE_POV_WORD6=14
3986val SCE_POV_WORD7=15
3987val SCE_POV_WORD8=16
3988# Lexical states for SCLEX_LOUT
3989lex LOUT=SCLEX_LOUT SCE_LOUT_
3990val SCE_LOUT_DEFAULT=0
3991val SCE_LOUT_COMMENT=1
3992val SCE_LOUT_NUMBER=2
3993val SCE_LOUT_WORD=3
3994val SCE_LOUT_WORD2=4
3995val SCE_LOUT_WORD3=5
3996val SCE_LOUT_WORD4=6
3997val SCE_LOUT_STRING=7
3998val SCE_LOUT_OPERATOR=8
3999val SCE_LOUT_IDENTIFIER=9
4000val SCE_LOUT_STRINGEOL=10
4001# Lexical states for SCLEX_ESCRIPT
4002lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_
4003val SCE_ESCRIPT_DEFAULT=0
4004val SCE_ESCRIPT_COMMENT=1
4005val SCE_ESCRIPT_COMMENTLINE=2
4006val SCE_ESCRIPT_COMMENTDOC=3
4007val SCE_ESCRIPT_NUMBER=4
4008val SCE_ESCRIPT_WORD=5
4009val SCE_ESCRIPT_STRING=6
4010val SCE_ESCRIPT_OPERATOR=7
4011val SCE_ESCRIPT_IDENTIFIER=8
4012val SCE_ESCRIPT_BRACE=9
4013val SCE_ESCRIPT_WORD2=10
4014val SCE_ESCRIPT_WORD3=11
4015# Lexical states for SCLEX_PS
4016lex PS=SCLEX_PS SCE_PS_
4017val SCE_PS_DEFAULT=0
4018val SCE_PS_COMMENT=1
4019val SCE_PS_DSC_COMMENT=2
4020val SCE_PS_DSC_VALUE=3
4021val SCE_PS_NUMBER=4
4022val SCE_PS_NAME=5
4023val SCE_PS_KEYWORD=6
4024val SCE_PS_LITERAL=7
4025val SCE_PS_IMMEVAL=8
4026val SCE_PS_PAREN_ARRAY=9
4027val SCE_PS_PAREN_DICT=10
4028val SCE_PS_PAREN_PROC=11
4029val SCE_PS_TEXT=12
4030val SCE_PS_HEXSTRING=13
4031val SCE_PS_BASE85STRING=14
4032val SCE_PS_BADSTRINGCHAR=15
4033# Lexical states for SCLEX_NSIS
4034lex NSIS=SCLEX_NSIS SCE_NSIS_
4035val SCE_NSIS_DEFAULT=0
4036val SCE_NSIS_COMMENT=1
4037val SCE_NSIS_STRINGDQ=2
4038val SCE_NSIS_STRINGLQ=3
4039val SCE_NSIS_STRINGRQ=4
4040val SCE_NSIS_FUNCTION=5
4041val SCE_NSIS_VARIABLE=6
4042val SCE_NSIS_LABEL=7
4043val SCE_NSIS_USERDEFINED=8
4044val SCE_NSIS_SECTIONDEF=9
4045val SCE_NSIS_SUBSECTIONDEF=10
4046val SCE_NSIS_IFDEFINEDEF=11
4047val SCE_NSIS_MACRODEF=12
4048val SCE_NSIS_STRINGVAR=13
4049val SCE_NSIS_NUMBER=14
4050val SCE_NSIS_SECTIONGROUP=15
4051val SCE_NSIS_PAGEEX=16
4052val SCE_NSIS_FUNCTIONDEF=17
4053val SCE_NSIS_COMMENTBOX=18
4054# Lexical states for SCLEX_MMIXAL
4055lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_
4056val SCE_MMIXAL_LEADWS=0
4057val SCE_MMIXAL_COMMENT=1
4058val SCE_MMIXAL_LABEL=2
4059val SCE_MMIXAL_OPCODE=3
4060val SCE_MMIXAL_OPCODE_PRE=4
4061val SCE_MMIXAL_OPCODE_VALID=5
4062val SCE_MMIXAL_OPCODE_UNKNOWN=6
4063val SCE_MMIXAL_OPCODE_POST=7
4064val SCE_MMIXAL_OPERANDS=8
4065val SCE_MMIXAL_NUMBER=9
4066val SCE_MMIXAL_REF=10
4067val SCE_MMIXAL_CHAR=11
4068val SCE_MMIXAL_STRING=12
4069val SCE_MMIXAL_REGISTER=13
4070val SCE_MMIXAL_HEX=14
4071val SCE_MMIXAL_OPERATOR=15
4072val SCE_MMIXAL_SYMBOL=16
4073val SCE_MMIXAL_INCLUDE=17
4074# Lexical states for SCLEX_CLW
4075lex Clarion=SCLEX_CLW SCE_CLW_
4076val SCE_CLW_DEFAULT=0
4077val SCE_CLW_LABEL=1
4078val SCE_CLW_COMMENT=2
4079val SCE_CLW_STRING=3
4080val SCE_CLW_USER_IDENTIFIER=4
4081val SCE_CLW_INTEGER_CONSTANT=5
4082val SCE_CLW_REAL_CONSTANT=6
4083val SCE_CLW_PICTURE_STRING=7
4084val SCE_CLW_KEYWORD=8
4085val SCE_CLW_COMPILER_DIRECTIVE=9
4086val SCE_CLW_RUNTIME_EXPRESSIONS=10
4087val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11
4088val SCE_CLW_STRUCTURE_DATA_TYPE=12
4089val SCE_CLW_ATTRIBUTE=13
4090val SCE_CLW_STANDARD_EQUATE=14
4091val SCE_CLW_ERROR=15
4092val SCE_CLW_DEPRECATED=16
4093# Lexical states for SCLEX_LOT
4094lex LOT=SCLEX_LOT SCE_LOT_
4095val SCE_LOT_DEFAULT=0
4096val SCE_LOT_HEADER=1
4097val SCE_LOT_BREAK=2
4098val SCE_LOT_SET=3
4099val SCE_LOT_PASS=4
4100val SCE_LOT_FAIL=5
4101val SCE_LOT_ABORT=6
4102# Lexical states for SCLEX_YAML
4103lex YAML=SCLEX_YAML SCE_YAML_
4104val SCE_YAML_DEFAULT=0
4105val SCE_YAML_COMMENT=1
4106val SCE_YAML_IDENTIFIER=2
4107val SCE_YAML_KEYWORD=3
4108val SCE_YAML_NUMBER=4
4109val SCE_YAML_REFERENCE=5
4110val SCE_YAML_DOCUMENT=6
4111val SCE_YAML_TEXT=7
4112val SCE_YAML_ERROR=8
4113val SCE_YAML_OPERATOR=9
4114# Lexical states for SCLEX_TEX
4115lex TeX=SCLEX_TEX SCE_TEX_
4116val SCE_TEX_DEFAULT=0
4117val SCE_TEX_SPECIAL=1
4118val SCE_TEX_GROUP=2
4119val SCE_TEX_SYMBOL=3
4120val SCE_TEX_COMMAND=4
4121val SCE_TEX_TEXT=5
4122lex Metapost=SCLEX_METAPOST SCE_METAPOST_
4123val SCE_METAPOST_DEFAULT=0
4124val SCE_METAPOST_SPECIAL=1
4125val SCE_METAPOST_GROUP=2
4126val SCE_METAPOST_SYMBOL=3
4127val SCE_METAPOST_COMMAND=4
4128val SCE_METAPOST_TEXT=5
4129val SCE_METAPOST_EXTRA=6
4130# Lexical states for SCLEX_ERLANG
4131lex Erlang=SCLEX_ERLANG SCE_ERLANG_
4132val SCE_ERLANG_DEFAULT=0
4133val SCE_ERLANG_COMMENT=1
4134val SCE_ERLANG_VARIABLE=2
4135val SCE_ERLANG_NUMBER=3
4136val SCE_ERLANG_KEYWORD=4
4137val SCE_ERLANG_STRING=5
4138val SCE_ERLANG_OPERATOR=6
4139val SCE_ERLANG_ATOM=7
4140val SCE_ERLANG_FUNCTION_NAME=8
4141val SCE_ERLANG_CHARACTER=9
4142val SCE_ERLANG_MACRO=10
4143val SCE_ERLANG_RECORD=11
4144val SCE_ERLANG_PREPROC=12
4145val SCE_ERLANG_NODE_NAME=13
4146val SCE_ERLANG_COMMENT_FUNCTION=14
4147val SCE_ERLANG_COMMENT_MODULE=15
4148val SCE_ERLANG_COMMENT_DOC=16
4149val SCE_ERLANG_COMMENT_DOC_MACRO=17
4150val SCE_ERLANG_ATOM_QUOTED=18
4151val SCE_ERLANG_MACRO_QUOTED=19
4152val SCE_ERLANG_RECORD_QUOTED=20
4153val SCE_ERLANG_NODE_NAME_QUOTED=21
4154val SCE_ERLANG_BIFS=22
4155val SCE_ERLANG_MODULES=23
4156val SCE_ERLANG_MODULES_ATT=24
4157val SCE_ERLANG_UNKNOWN=31
4158# Lexical states for SCLEX_OCTAVE are identical to MatLab
4159lex Octave=SCLEX_OCTAVE SCE_MATLAB_
4160# Lexical states for SCLEX_MSSQL
4161lex MSSQL=SCLEX_MSSQL SCE_MSSQL_
4162val SCE_MSSQL_DEFAULT=0
4163val SCE_MSSQL_COMMENT=1
4164val SCE_MSSQL_LINE_COMMENT=2
4165val SCE_MSSQL_NUMBER=3
4166val SCE_MSSQL_STRING=4
4167val SCE_MSSQL_OPERATOR=5
4168val SCE_MSSQL_IDENTIFIER=6
4169val SCE_MSSQL_VARIABLE=7
4170val SCE_MSSQL_COLUMN_NAME=8
4171val SCE_MSSQL_STATEMENT=9
4172val SCE_MSSQL_DATATYPE=10
4173val SCE_MSSQL_SYSTABLE=11
4174val SCE_MSSQL_GLOBAL_VARIABLE=12
4175val SCE_MSSQL_FUNCTION=13
4176val SCE_MSSQL_STORED_PROCEDURE=14
4177val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15
4178val SCE_MSSQL_COLUMN_NAME_2=16
4179# Lexical states for SCLEX_VERILOG
4180lex Verilog=SCLEX_VERILOG SCE_V_
4181val SCE_V_DEFAULT=0
4182val SCE_V_COMMENT=1
4183val SCE_V_COMMENTLINE=2
4184val SCE_V_COMMENTLINEBANG=3
4185val SCE_V_NUMBER=4
4186val SCE_V_WORD=5
4187val SCE_V_STRING=6
4188val SCE_V_WORD2=7
4189val SCE_V_WORD3=8
4190val SCE_V_PREPROCESSOR=9
4191val SCE_V_OPERATOR=10
4192val SCE_V_IDENTIFIER=11
4193val SCE_V_STRINGEOL=12
4194val SCE_V_USER=19
4195val SCE_V_COMMENT_WORD=20
4196val SCE_V_INPUT=21
4197val SCE_V_OUTPUT=22
4198val SCE_V_INOUT=23
4199val SCE_V_PORT_CONNECT=24
4200# Lexical states for SCLEX_KIX
4201lex Kix=SCLEX_KIX SCE_KIX_
4202val SCE_KIX_DEFAULT=0
4203val SCE_KIX_COMMENT=1
4204val SCE_KIX_STRING1=2
4205val SCE_KIX_STRING2=3
4206val SCE_KIX_NUMBER=4
4207val SCE_KIX_VAR=5
4208val SCE_KIX_MACRO=6
4209val SCE_KIX_KEYWORD=7
4210val SCE_KIX_FUNCTIONS=8
4211val SCE_KIX_OPERATOR=9
4212val SCE_KIX_COMMENTSTREAM=10
4213val SCE_KIX_IDENTIFIER=31
4214# Lexical states for SCLEX_GUI4CLI
4215lex Gui4Cli=SCLEX_GUI4CLI SCE_GC_
4216val SCE_GC_DEFAULT=0
4217val SCE_GC_COMMENTLINE=1
4218val SCE_GC_COMMENTBLOCK=2
4219val SCE_GC_GLOBAL=3
4220val SCE_GC_EVENT=4
4221val SCE_GC_ATTRIBUTE=5
4222val SCE_GC_CONTROL=6
4223val SCE_GC_COMMAND=7
4224val SCE_GC_STRING=8
4225val SCE_GC_OPERATOR=9
4226# Lexical states for SCLEX_SPECMAN
4227lex Specman=SCLEX_SPECMAN SCE_SN_
4228val SCE_SN_DEFAULT=0
4229val SCE_SN_CODE=1
4230val SCE_SN_COMMENTLINE=2
4231val SCE_SN_COMMENTLINEBANG=3
4232val SCE_SN_NUMBER=4
4233val SCE_SN_WORD=5
4234val SCE_SN_STRING=6
4235val SCE_SN_WORD2=7
4236val SCE_SN_WORD3=8
4237val SCE_SN_PREPROCESSOR=9
4238val SCE_SN_OPERATOR=10
4239val SCE_SN_IDENTIFIER=11
4240val SCE_SN_STRINGEOL=12
4241val SCE_SN_REGEXTAG=13
4242val SCE_SN_SIGNAL=14
4243val SCE_SN_USER=19
4244# Lexical states for SCLEX_AU3
4245lex Au3=SCLEX_AU3 SCE_AU3_
4246val SCE_AU3_DEFAULT=0
4247val SCE_AU3_COMMENT=1
4248val SCE_AU3_COMMENTBLOCK=2
4249val SCE_AU3_NUMBER=3
4250val SCE_AU3_FUNCTION=4
4251val SCE_AU3_KEYWORD=5
4252val SCE_AU3_MACRO=6
4253val SCE_AU3_STRING=7
4254val SCE_AU3_OPERATOR=8
4255val SCE_AU3_VARIABLE=9
4256val SCE_AU3_SENT=10
4257val SCE_AU3_PREPROCESSOR=11
4258val SCE_AU3_SPECIAL=12
4259val SCE_AU3_EXPAND=13
4260val SCE_AU3_COMOBJ=14
4261val SCE_AU3_UDF=15
4262# Lexical states for SCLEX_APDL
4263lex APDL=SCLEX_APDL SCE_APDL_
4264val SCE_APDL_DEFAULT=0
4265val SCE_APDL_COMMENT=1
4266val SCE_APDL_COMMENTBLOCK=2
4267val SCE_APDL_NUMBER=3
4268val SCE_APDL_STRING=4
4269val SCE_APDL_OPERATOR=5
4270val SCE_APDL_WORD=6
4271val SCE_APDL_PROCESSOR=7
4272val SCE_APDL_COMMAND=8
4273val SCE_APDL_SLASHCOMMAND=9
4274val SCE_APDL_STARCOMMAND=10
4275val SCE_APDL_ARGUMENT=11
4276val SCE_APDL_FUNCTION=12
4277# Lexical states for SCLEX_BASH
4278lex Bash=SCLEX_BASH SCE_SH_
4279val SCE_SH_DEFAULT=0
4280val SCE_SH_ERROR=1
4281val SCE_SH_COMMENTLINE=2
4282val SCE_SH_NUMBER=3
4283val SCE_SH_WORD=4
4284val SCE_SH_STRING=5
4285val SCE_SH_CHARACTER=6
4286val SCE_SH_OPERATOR=7
4287val SCE_SH_IDENTIFIER=8
4288val SCE_SH_SCALAR=9
4289val SCE_SH_PARAM=10
4290val SCE_SH_BACKTICKS=11
4291val SCE_SH_HERE_DELIM=12
4292val SCE_SH_HERE_Q=13
4293# Lexical states for SCLEX_ASN1
4294lex Asn1=SCLEX_ASN1 SCE_ASN1_
4295val SCE_ASN1_DEFAULT=0
4296val SCE_ASN1_COMMENT=1
4297val SCE_ASN1_IDENTIFIER=2
4298val SCE_ASN1_STRING=3
4299val SCE_ASN1_OID=4
4300val SCE_ASN1_SCALAR=5
4301val SCE_ASN1_KEYWORD=6
4302val SCE_ASN1_ATTRIBUTE=7
4303val SCE_ASN1_DESCRIPTOR=8
4304val SCE_ASN1_TYPE=9
4305val SCE_ASN1_OPERATOR=10
4306# Lexical states for SCLEX_VHDL
4307lex VHDL=SCLEX_VHDL SCE_VHDL_
4308val SCE_VHDL_DEFAULT=0
4309val SCE_VHDL_COMMENT=1
4310val SCE_VHDL_COMMENTLINEBANG=2
4311val SCE_VHDL_NUMBER=3
4312val SCE_VHDL_STRING=4
4313val SCE_VHDL_OPERATOR=5
4314val SCE_VHDL_IDENTIFIER=6
4315val SCE_VHDL_STRINGEOL=7
4316val SCE_VHDL_KEYWORD=8
4317val SCE_VHDL_STDOPERATOR=9
4318val SCE_VHDL_ATTRIBUTE=10
4319val SCE_VHDL_STDFUNCTION=11
4320val SCE_VHDL_STDPACKAGE=12
4321val SCE_VHDL_STDTYPE=13
4322val SCE_VHDL_USERWORD=14
4323val SCE_VHDL_BLOCK_COMMENT=15
4324# Lexical states for SCLEX_CAML
4325lex Caml=SCLEX_CAML SCE_CAML_
4326val SCE_CAML_DEFAULT=0
4327val SCE_CAML_IDENTIFIER=1
4328val SCE_CAML_TAGNAME=2
4329val SCE_CAML_KEYWORD=3
4330val SCE_CAML_KEYWORD2=4
4331val SCE_CAML_KEYWORD3=5
4332val SCE_CAML_LINENUM=6
4333val SCE_CAML_OPERATOR=7
4334val SCE_CAML_NUMBER=8
4335val SCE_CAML_CHAR=9
4336val SCE_CAML_WHITE=10
4337val SCE_CAML_STRING=11
4338val SCE_CAML_COMMENT=12
4339val SCE_CAML_COMMENT1=13
4340val SCE_CAML_COMMENT2=14
4341val SCE_CAML_COMMENT3=15
4342# Lexical states for SCLEX_HASKELL
4343lex Haskell=SCLEX_HASKELL SCE_HA_
4344val SCE_HA_DEFAULT=0
4345val SCE_HA_IDENTIFIER=1
4346val SCE_HA_KEYWORD=2
4347val SCE_HA_NUMBER=3
4348val SCE_HA_STRING=4
4349val SCE_HA_CHARACTER=5
4350val SCE_HA_CLASS=6
4351val SCE_HA_MODULE=7
4352val SCE_HA_CAPITAL=8
4353val SCE_HA_DATA=9
4354val SCE_HA_IMPORT=10
4355val SCE_HA_OPERATOR=11
4356val SCE_HA_INSTANCE=12
4357val SCE_HA_COMMENTLINE=13
4358val SCE_HA_COMMENTBLOCK=14
4359val SCE_HA_COMMENTBLOCK2=15
4360val SCE_HA_COMMENTBLOCK3=16
4361val SCE_HA_PRAGMA=17
4362val SCE_HA_PREPROCESSOR=18
4363val SCE_HA_STRINGEOL=19
4364val SCE_HA_RESERVED_OPERATOR=20
4365val SCE_HA_LITERATE_COMMENT=21
4366val SCE_HA_LITERATE_CODEDELIM=22
4367# Lexical states of SCLEX_TADS3
4368lex TADS3=SCLEX_TADS3 SCE_T3_
4369val SCE_T3_DEFAULT=0
4370val SCE_T3_X_DEFAULT=1
4371val SCE_T3_PREPROCESSOR=2
4372val SCE_T3_BLOCK_COMMENT=3
4373val SCE_T3_LINE_COMMENT=4
4374val SCE_T3_OPERATOR=5
4375val SCE_T3_KEYWORD=6
4376val SCE_T3_NUMBER=7
4377val SCE_T3_IDENTIFIER=8
4378val SCE_T3_S_STRING=9
4379val SCE_T3_D_STRING=10
4380val SCE_T3_X_STRING=11
4381val SCE_T3_LIB_DIRECTIVE=12
4382val SCE_T3_MSG_PARAM=13
4383val SCE_T3_HTML_TAG=14
4384val SCE_T3_HTML_DEFAULT=15
4385val SCE_T3_HTML_STRING=16
4386val SCE_T3_USER1=17
4387val SCE_T3_USER2=18
4388val SCE_T3_USER3=19
4389val SCE_T3_BRACE=20
4390# Lexical states for SCLEX_REBOL
4391lex Rebol=SCLEX_REBOL SCE_REBOL_
4392val SCE_REBOL_DEFAULT=0
4393val SCE_REBOL_COMMENTLINE=1
4394val SCE_REBOL_COMMENTBLOCK=2
4395val SCE_REBOL_PREFACE=3
4396val SCE_REBOL_OPERATOR=4
4397val SCE_REBOL_CHARACTER=5
4398val SCE_REBOL_QUOTEDSTRING=6
4399val SCE_REBOL_BRACEDSTRING=7
4400val SCE_REBOL_NUMBER=8
4401val SCE_REBOL_PAIR=9
4402val SCE_REBOL_TUPLE=10
4403val SCE_REBOL_BINARY=11
4404val SCE_REBOL_MONEY=12
4405val SCE_REBOL_ISSUE=13
4406val SCE_REBOL_TAG=14
4407val SCE_REBOL_FILE=15
4408val SCE_REBOL_EMAIL=16
4409val SCE_REBOL_URL=17
4410val SCE_REBOL_DATE=18
4411val SCE_REBOL_TIME=19
4412val SCE_REBOL_IDENTIFIER=20
4413val SCE_REBOL_WORD=21
4414val SCE_REBOL_WORD2=22
4415val SCE_REBOL_WORD3=23
4416val SCE_REBOL_WORD4=24
4417val SCE_REBOL_WORD5=25
4418val SCE_REBOL_WORD6=26
4419val SCE_REBOL_WORD7=27
4420val SCE_REBOL_WORD8=28
4421# Lexical states for SCLEX_SQL
4422lex SQL=SCLEX_SQL SCE_SQL_
4423val SCE_SQL_DEFAULT=0
4424val SCE_SQL_COMMENT=1
4425val SCE_SQL_COMMENTLINE=2
4426val SCE_SQL_COMMENTDOC=3
4427val SCE_SQL_NUMBER=4
4428val SCE_SQL_WORD=5
4429val SCE_SQL_STRING=6
4430val SCE_SQL_CHARACTER=7
4431val SCE_SQL_SQLPLUS=8
4432val SCE_SQL_SQLPLUS_PROMPT=9
4433val SCE_SQL_OPERATOR=10
4434val SCE_SQL_IDENTIFIER=11
4435val SCE_SQL_SQLPLUS_COMMENT=13
4436val SCE_SQL_COMMENTLINEDOC=15
4437val SCE_SQL_WORD2=16
4438val SCE_SQL_COMMENTDOCKEYWORD=17
4439val SCE_SQL_COMMENTDOCKEYWORDERROR=18
4440val SCE_SQL_USER1=19
4441val SCE_SQL_USER2=20
4442val SCE_SQL_USER3=21
4443val SCE_SQL_USER4=22
4444val SCE_SQL_QUOTEDIDENTIFIER=23
4445val SCE_SQL_QOPERATOR=24
4446# Lexical states for SCLEX_SMALLTALK
4447lex Smalltalk=SCLEX_SMALLTALK SCE_ST_
4448val SCE_ST_DEFAULT=0
4449val SCE_ST_STRING=1
4450val SCE_ST_NUMBER=2
4451val SCE_ST_COMMENT=3
4452val SCE_ST_SYMBOL=4
4453val SCE_ST_BINARY=5
4454val SCE_ST_BOOL=6
4455val SCE_ST_SELF=7
4456val SCE_ST_SUPER=8
4457val SCE_ST_NIL=9
4458val SCE_ST_GLOBAL=10
4459val SCE_ST_RETURN=11
4460val SCE_ST_SPECIAL=12
4461val SCE_ST_KWSEND=13
4462val SCE_ST_ASSIGN=14
4463val SCE_ST_CHARACTER=15
4464val SCE_ST_SPEC_SEL=16
4465# Lexical states for SCLEX_FLAGSHIP (clipper)
4466lex FlagShip=SCLEX_FLAGSHIP SCE_FS_
4467val SCE_FS_DEFAULT=0
4468val SCE_FS_COMMENT=1
4469val SCE_FS_COMMENTLINE=2
4470val SCE_FS_COMMENTDOC=3
4471val SCE_FS_COMMENTLINEDOC=4
4472val SCE_FS_COMMENTDOCKEYWORD=5
4473val SCE_FS_COMMENTDOCKEYWORDERROR=6
4474val SCE_FS_KEYWORD=7
4475val SCE_FS_KEYWORD2=8
4476val SCE_FS_KEYWORD3=9
4477val SCE_FS_KEYWORD4=10
4478val SCE_FS_NUMBER=11
4479val SCE_FS_STRING=12
4480val SCE_FS_PREPROCESSOR=13
4481val SCE_FS_OPERATOR=14
4482val SCE_FS_IDENTIFIER=15
4483val SCE_FS_DATE=16
4484val SCE_FS_STRINGEOL=17
4485val SCE_FS_CONSTANT=18
4486val SCE_FS_WORDOPERATOR=19
4487val SCE_FS_DISABLEDCODE=20
4488val SCE_FS_DEFAULT_C=21
4489val SCE_FS_COMMENTDOC_C=22
4490val SCE_FS_COMMENTLINEDOC_C=23
4491val SCE_FS_KEYWORD_C=24
4492val SCE_FS_KEYWORD2_C=25
4493val SCE_FS_NUMBER_C=26
4494val SCE_FS_STRING_C=27
4495val SCE_FS_PREPROCESSOR_C=28
4496val SCE_FS_OPERATOR_C=29
4497val SCE_FS_IDENTIFIER_C=30
4498val SCE_FS_STRINGEOL_C=31
4499# Lexical states for SCLEX_CSOUND
4500lex Csound=SCLEX_CSOUND SCE_CSOUND_
4501val SCE_CSOUND_DEFAULT=0
4502val SCE_CSOUND_COMMENT=1
4503val SCE_CSOUND_NUMBER=2
4504val SCE_CSOUND_OPERATOR=3
4505val SCE_CSOUND_INSTR=4
4506val SCE_CSOUND_IDENTIFIER=5
4507val SCE_CSOUND_OPCODE=6
4508val SCE_CSOUND_HEADERSTMT=7
4509val SCE_CSOUND_USERKEYWORD=8
4510val SCE_CSOUND_COMMENTBLOCK=9
4511val SCE_CSOUND_PARAM=10
4512val SCE_CSOUND_ARATE_VAR=11
4513val SCE_CSOUND_KRATE_VAR=12
4514val SCE_CSOUND_IRATE_VAR=13
4515val SCE_CSOUND_GLOBAL_VAR=14
4516val SCE_CSOUND_STRINGEOL=15
4517# Lexical states for SCLEX_INNOSETUP
4518lex Inno=SCLEX_INNOSETUP SCE_INNO_
4519val SCE_INNO_DEFAULT=0
4520val SCE_INNO_COMMENT=1
4521val SCE_INNO_KEYWORD=2
4522val SCE_INNO_PARAMETER=3
4523val SCE_INNO_SECTION=4
4524val SCE_INNO_PREPROC=5
4525val SCE_INNO_INLINE_EXPANSION=6
4526val SCE_INNO_COMMENT_PASCAL=7
4527val SCE_INNO_KEYWORD_PASCAL=8
4528val SCE_INNO_KEYWORD_USER=9
4529val SCE_INNO_STRING_DOUBLE=10
4530val SCE_INNO_STRING_SINGLE=11
4531val SCE_INNO_IDENTIFIER=12
4532# Lexical states for SCLEX_OPAL
4533lex Opal=SCLEX_OPAL SCE_OPAL_
4534val SCE_OPAL_SPACE=0
4535val SCE_OPAL_COMMENT_BLOCK=1
4536val SCE_OPAL_COMMENT_LINE=2
4537val SCE_OPAL_INTEGER=3
4538val SCE_OPAL_KEYWORD=4
4539val SCE_OPAL_SORT=5
4540val SCE_OPAL_STRING=6
4541val SCE_OPAL_PAR=7
4542val SCE_OPAL_BOOL_CONST=8
4543val SCE_OPAL_DEFAULT=32
4544# Lexical states for SCLEX_SPICE
4545lex Spice=SCLEX_SPICE SCE_SPICE_
4546val SCE_SPICE_DEFAULT=0
4547val SCE_SPICE_IDENTIFIER=1
4548val SCE_SPICE_KEYWORD=2
4549val SCE_SPICE_KEYWORD2=3
4550val SCE_SPICE_KEYWORD3=4
4551val SCE_SPICE_NUMBER=5
4552val SCE_SPICE_DELIMITER=6
4553val SCE_SPICE_VALUE=7
4554val SCE_SPICE_COMMENTLINE=8
4555# Lexical states for SCLEX_CMAKE
4556lex CMAKE=SCLEX_CMAKE SCE_CMAKE_
4557val SCE_CMAKE_DEFAULT=0
4558val SCE_CMAKE_COMMENT=1
4559val SCE_CMAKE_STRINGDQ=2
4560val SCE_CMAKE_STRINGLQ=3
4561val SCE_CMAKE_STRINGRQ=4
4562val SCE_CMAKE_COMMANDS=5
4563val SCE_CMAKE_PARAMETERS=6
4564val SCE_CMAKE_VARIABLE=7
4565val SCE_CMAKE_USERDEFINED=8
4566val SCE_CMAKE_WHILEDEF=9
4567val SCE_CMAKE_FOREACHDEF=10
4568val SCE_CMAKE_IFDEFINEDEF=11
4569val SCE_CMAKE_MACRODEF=12
4570val SCE_CMAKE_STRINGVAR=13
4571val SCE_CMAKE_NUMBER=14
4572# Lexical states for SCLEX_GAP
4573lex Gap=SCLEX_GAP SCE_GAP_
4574val SCE_GAP_DEFAULT=0
4575val SCE_GAP_IDENTIFIER=1
4576val SCE_GAP_KEYWORD=2
4577val SCE_GAP_KEYWORD2=3
4578val SCE_GAP_KEYWORD3=4
4579val SCE_GAP_KEYWORD4=5
4580val SCE_GAP_STRING=6
4581val SCE_GAP_CHAR=7
4582val SCE_GAP_OPERATOR=8
4583val SCE_GAP_COMMENT=9
4584val SCE_GAP_NUMBER=10
4585val SCE_GAP_STRINGEOL=11
4586# Lexical state for SCLEX_PLM
4587lex PLM=SCLEX_PLM SCE_PLM_
4588val SCE_PLM_DEFAULT=0
4589val SCE_PLM_COMMENT=1
4590val SCE_PLM_STRING=2
4591val SCE_PLM_NUMBER=3
4592val SCE_PLM_IDENTIFIER=4
4593val SCE_PLM_OPERATOR=5
4594val SCE_PLM_CONTROL=6
4595val SCE_PLM_KEYWORD=7
4596# Lexical state for SCLEX_PROGRESS
4597lex Progress=SCLEX_PROGRESS SCE_ABL_
4598val SCE_ABL_DEFAULT=0
4599val SCE_ABL_NUMBER=1
4600val SCE_ABL_WORD=2
4601val SCE_ABL_STRING=3
4602val SCE_ABL_CHARACTER=4
4603val SCE_ABL_PREPROCESSOR=5
4604val SCE_ABL_OPERATOR=6
4605val SCE_ABL_IDENTIFIER=7
4606val SCE_ABL_BLOCK=8
4607val SCE_ABL_END=9
4608val SCE_ABL_COMMENT=10
4609val SCE_ABL_TASKMARKER=11
4610val SCE_ABL_LINECOMMENT=12
4611# Lexical states for SCLEX_ABAQUS
4612lex ABAQUS=SCLEX_ABAQUS SCE_ABAQUS_
4613val SCE_ABAQUS_DEFAULT=0
4614val SCE_ABAQUS_COMMENT=1
4615val SCE_ABAQUS_COMMENTBLOCK=2
4616val SCE_ABAQUS_NUMBER=3
4617val SCE_ABAQUS_STRING=4
4618val SCE_ABAQUS_OPERATOR=5
4619val SCE_ABAQUS_WORD=6
4620val SCE_ABAQUS_PROCESSOR=7
4621val SCE_ABAQUS_COMMAND=8
4622val SCE_ABAQUS_SLASHCOMMAND=9
4623val SCE_ABAQUS_STARCOMMAND=10
4624val SCE_ABAQUS_ARGUMENT=11
4625val SCE_ABAQUS_FUNCTION=12
4626# Lexical states for SCLEX_ASYMPTOTE
4627lex Asymptote=SCLEX_ASYMPTOTE SCE_ASY_
4628val SCE_ASY_DEFAULT=0
4629val SCE_ASY_COMMENT=1
4630val SCE_ASY_COMMENTLINE=2
4631val SCE_ASY_NUMBER=3
4632val SCE_ASY_WORD=4
4633val SCE_ASY_STRING=5
4634val SCE_ASY_CHARACTER=6
4635val SCE_ASY_OPERATOR=7
4636val SCE_ASY_IDENTIFIER=8
4637val SCE_ASY_STRINGEOL=9
4638val SCE_ASY_COMMENTLINEDOC=10
4639val SCE_ASY_WORD2=11
4640# Lexical states for SCLEX_R
4641lex R=SCLEX_R SCE_R_
4642val SCE_R_DEFAULT=0
4643val SCE_R_COMMENT=1
4644val SCE_R_KWORD=2
4645val SCE_R_BASEKWORD=3
4646val SCE_R_OTHERKWORD=4
4647val SCE_R_NUMBER=5
4648val SCE_R_STRING=6
4649val SCE_R_STRING2=7
4650val SCE_R_OPERATOR=8
4651val SCE_R_IDENTIFIER=9
4652val SCE_R_INFIX=10
4653val SCE_R_INFIXEOL=11
4654# Lexical state for SCLEX_MAGIK
4655lex MagikSF=SCLEX_MAGIK SCE_MAGIK_
4656val SCE_MAGIK_DEFAULT=0
4657val SCE_MAGIK_COMMENT=1
4658val SCE_MAGIK_HYPER_COMMENT=16
4659val SCE_MAGIK_STRING=2
4660val SCE_MAGIK_CHARACTER=3
4661val SCE_MAGIK_NUMBER=4
4662val SCE_MAGIK_IDENTIFIER=5
4663val SCE_MAGIK_OPERATOR=6
4664val SCE_MAGIK_FLOW=7
4665val SCE_MAGIK_CONTAINER=8
4666val SCE_MAGIK_BRACKET_BLOCK=9
4667val SCE_MAGIK_BRACE_BLOCK=10
4668val SCE_MAGIK_SQBRACKET_BLOCK=11
4669val SCE_MAGIK_UNKNOWN_KEYWORD=12
4670val SCE_MAGIK_KEYWORD=13
4671val SCE_MAGIK_PRAGMA=14
4672val SCE_MAGIK_SYMBOL=15
4673# Lexical state for SCLEX_POWERSHELL
4674lex PowerShell=SCLEX_POWERSHELL SCE_POWERSHELL_
4675val SCE_POWERSHELL_DEFAULT=0
4676val SCE_POWERSHELL_COMMENT=1
4677val SCE_POWERSHELL_STRING=2
4678val SCE_POWERSHELL_CHARACTER=3
4679val SCE_POWERSHELL_NUMBER=4
4680val SCE_POWERSHELL_VARIABLE=5
4681val SCE_POWERSHELL_OPERATOR=6
4682val SCE_POWERSHELL_IDENTIFIER=7
4683val SCE_POWERSHELL_KEYWORD=8
4684val SCE_POWERSHELL_CMDLET=9
4685val SCE_POWERSHELL_ALIAS=10
4686val SCE_POWERSHELL_FUNCTION=11
4687val SCE_POWERSHELL_USER1=12
4688val SCE_POWERSHELL_COMMENTSTREAM=13
4689val SCE_POWERSHELL_HERE_STRING=14
4690val SCE_POWERSHELL_HERE_CHARACTER=15
4691val SCE_POWERSHELL_COMMENTDOCKEYWORD=16
4692# Lexical state for SCLEX_MYSQL
4693lex MySQL=SCLEX_MYSQL SCE_MYSQL_
4694val SCE_MYSQL_DEFAULT=0
4695val SCE_MYSQL_COMMENT=1
4696val SCE_MYSQL_COMMENTLINE=2
4697val SCE_MYSQL_VARIABLE=3
4698val SCE_MYSQL_SYSTEMVARIABLE=4
4699val SCE_MYSQL_KNOWNSYSTEMVARIABLE=5
4700val SCE_MYSQL_NUMBER=6
4701val SCE_MYSQL_MAJORKEYWORD=7
4702val SCE_MYSQL_KEYWORD=8
4703val SCE_MYSQL_DATABASEOBJECT=9
4704val SCE_MYSQL_PROCEDUREKEYWORD=10
4705val SCE_MYSQL_STRING=11
4706val SCE_MYSQL_SQSTRING=12
4707val SCE_MYSQL_DQSTRING=13
4708val SCE_MYSQL_OPERATOR=14
4709val SCE_MYSQL_FUNCTION=15
4710val SCE_MYSQL_IDENTIFIER=16
4711val SCE_MYSQL_QUOTEDIDENTIFIER=17
4712val SCE_MYSQL_USER1=18
4713val SCE_MYSQL_USER2=19
4714val SCE_MYSQL_USER3=20
4715val SCE_MYSQL_HIDDENCOMMAND=21
4716val SCE_MYSQL_PLACEHOLDER=22
4717# Lexical state for SCLEX_PO
4718lex Po=SCLEX_PO SCE_PO_
4719val SCE_PO_DEFAULT=0
4720val SCE_PO_COMMENT=1
4721val SCE_PO_MSGID=2
4722val SCE_PO_MSGID_TEXT=3
4723val SCE_PO_MSGSTR=4
4724val SCE_PO_MSGSTR_TEXT=5
4725val SCE_PO_MSGCTXT=6
4726val SCE_PO_MSGCTXT_TEXT=7
4727val SCE_PO_FUZZY=8
4728val SCE_PO_PROGRAMMER_COMMENT=9
4729val SCE_PO_REFERENCE=10
4730val SCE_PO_FLAGS=11
4731val SCE_PO_MSGID_TEXT_EOL=12
4732val SCE_PO_MSGSTR_TEXT_EOL=13
4733val SCE_PO_MSGCTXT_TEXT_EOL=14
4734val SCE_PO_ERROR=15
4735# Lexical states for SCLEX_PASCAL
4736lex Pascal=SCLEX_PASCAL SCE_PAS_
4737val SCE_PAS_DEFAULT=0
4738val SCE_PAS_IDENTIFIER=1
4739val SCE_PAS_COMMENT=2
4740val SCE_PAS_COMMENT2=3
4741val SCE_PAS_COMMENTLINE=4
4742val SCE_PAS_PREPROCESSOR=5
4743val SCE_PAS_PREPROCESSOR2=6
4744val SCE_PAS_NUMBER=7
4745val SCE_PAS_HEXNUMBER=8
4746val SCE_PAS_WORD=9
4747val SCE_PAS_STRING=10
4748val SCE_PAS_STRINGEOL=11
4749val SCE_PAS_CHARACTER=12
4750val SCE_PAS_OPERATOR=13
4751val SCE_PAS_ASM=14
4752# Lexical state for SCLEX_SORCUS
4753lex SORCUS=SCLEX_SORCUS SCE_SORCUS_
4754val SCE_SORCUS_DEFAULT=0
4755val SCE_SORCUS_COMMAND=1
4756val SCE_SORCUS_PARAMETER=2
4757val SCE_SORCUS_COMMENTLINE=3
4758val SCE_SORCUS_STRING=4
4759val SCE_SORCUS_STRINGEOL=5
4760val SCE_SORCUS_IDENTIFIER=6
4761val SCE_SORCUS_OPERATOR=7
4762val SCE_SORCUS_NUMBER=8
4763val SCE_SORCUS_CONSTANT=9
4764# Lexical state for SCLEX_POWERPRO
4765lex PowerPro=SCLEX_POWERPRO SCE_POWERPRO_
4766val SCE_POWERPRO_DEFAULT=0
4767val SCE_POWERPRO_COMMENTBLOCK=1
4768val SCE_POWERPRO_COMMENTLINE=2
4769val SCE_POWERPRO_NUMBER=3
4770val SCE_POWERPRO_WORD=4
4771val SCE_POWERPRO_WORD2=5
4772val SCE_POWERPRO_WORD3=6
4773val SCE_POWERPRO_WORD4=7
4774val SCE_POWERPRO_DOUBLEQUOTEDSTRING=8
4775val SCE_POWERPRO_SINGLEQUOTEDSTRING=9
4776val SCE_POWERPRO_LINECONTINUE=10
4777val SCE_POWERPRO_OPERATOR=11
4778val SCE_POWERPRO_IDENTIFIER=12
4779val SCE_POWERPRO_STRINGEOL=13
4780val SCE_POWERPRO_VERBATIM=14
4781val SCE_POWERPRO_ALTQUOTE=15
4782val SCE_POWERPRO_FUNCTION=16
4783# Lexical states for SCLEX_SML
4784lex SML=SCLEX_SML SCE_SML_
4785val SCE_SML_DEFAULT=0
4786val SCE_SML_IDENTIFIER=1
4787val SCE_SML_TAGNAME=2
4788val SCE_SML_KEYWORD=3
4789val SCE_SML_KEYWORD2=4
4790val SCE_SML_KEYWORD3=5
4791val SCE_SML_LINENUM=6
4792val SCE_SML_OPERATOR=7
4793val SCE_SML_NUMBER=8
4794val SCE_SML_CHAR=9
4795val SCE_SML_STRING=11
4796val SCE_SML_COMMENT=12
4797val SCE_SML_COMMENT1=13
4798val SCE_SML_COMMENT2=14
4799val SCE_SML_COMMENT3=15
4800# Lexical state for SCLEX_MARKDOWN
4801lex Markdown=SCLEX_MARKDOWN SCE_MARKDOWN_
4802val SCE_MARKDOWN_DEFAULT=0
4803val SCE_MARKDOWN_LINE_BEGIN=1
4804val SCE_MARKDOWN_STRONG1=2
4805val SCE_MARKDOWN_STRONG2=3
4806val SCE_MARKDOWN_EM1=4
4807val SCE_MARKDOWN_EM2=5
4808val SCE_MARKDOWN_HEADER1=6
4809val SCE_MARKDOWN_HEADER2=7
4810val SCE_MARKDOWN_HEADER3=8
4811val SCE_MARKDOWN_HEADER4=9
4812val SCE_MARKDOWN_HEADER5=10
4813val SCE_MARKDOWN_HEADER6=11
4814val SCE_MARKDOWN_PRECHAR=12
4815val SCE_MARKDOWN_ULIST_ITEM=13
4816val SCE_MARKDOWN_OLIST_ITEM=14
4817val SCE_MARKDOWN_BLOCKQUOTE=15
4818val SCE_MARKDOWN_STRIKEOUT=16
4819val SCE_MARKDOWN_HRULE=17
4820val SCE_MARKDOWN_LINK=18
4821val SCE_MARKDOWN_CODE=19
4822val SCE_MARKDOWN_CODE2=20
4823val SCE_MARKDOWN_CODEBK=21
4824# Lexical state for SCLEX_TXT2TAGS
4825lex Txt2tags=SCLEX_TXT2TAGS SCE_TXT2TAGS_
4826val SCE_TXT2TAGS_DEFAULT=0
4827val SCE_TXT2TAGS_LINE_BEGIN=1
4828val SCE_TXT2TAGS_STRONG1=2
4829val SCE_TXT2TAGS_STRONG2=3
4830val SCE_TXT2TAGS_EM1=4
4831val SCE_TXT2TAGS_EM2=5
4832val SCE_TXT2TAGS_HEADER1=6
4833val SCE_TXT2TAGS_HEADER2=7
4834val SCE_TXT2TAGS_HEADER3=8
4835val SCE_TXT2TAGS_HEADER4=9
4836val SCE_TXT2TAGS_HEADER5=10
4837val SCE_TXT2TAGS_HEADER6=11
4838val SCE_TXT2TAGS_PRECHAR=12
4839val SCE_TXT2TAGS_ULIST_ITEM=13
4840val SCE_TXT2TAGS_OLIST_ITEM=14
4841val SCE_TXT2TAGS_BLOCKQUOTE=15
4842val SCE_TXT2TAGS_STRIKEOUT=16
4843val SCE_TXT2TAGS_HRULE=17
4844val SCE_TXT2TAGS_LINK=18
4845val SCE_TXT2TAGS_CODE=19
4846val SCE_TXT2TAGS_CODE2=20
4847val SCE_TXT2TAGS_CODEBK=21
4848val SCE_TXT2TAGS_COMMENT=22
4849val SCE_TXT2TAGS_OPTION=23
4850val SCE_TXT2TAGS_PREPROC=24
4851val SCE_TXT2TAGS_POSTPROC=25
4852# Lexical states for SCLEX_A68K
4853lex A68k=SCLEX_A68K SCE_A68K_
4854val SCE_A68K_DEFAULT=0
4855val SCE_A68K_COMMENT=1
4856val SCE_A68K_NUMBER_DEC=2
4857val SCE_A68K_NUMBER_BIN=3
4858val SCE_A68K_NUMBER_HEX=4
4859val SCE_A68K_STRING1=5
4860val SCE_A68K_OPERATOR=6
4861val SCE_A68K_CPUINSTRUCTION=7
4862val SCE_A68K_EXTINSTRUCTION=8
4863val SCE_A68K_REGISTER=9
4864val SCE_A68K_DIRECTIVE=10
4865val SCE_A68K_MACRO_ARG=11
4866val SCE_A68K_LABEL=12
4867val SCE_A68K_STRING2=13
4868val SCE_A68K_IDENTIFIER=14
4869val SCE_A68K_MACRO_DECLARATION=15
4870val SCE_A68K_COMMENT_WORD=16
4871val SCE_A68K_COMMENT_SPECIAL=17
4872val SCE_A68K_COMMENT_DOXYGEN=18
4873# Lexical states for SCLEX_MODULA
4874lex Modula=SCLEX_MODULA SCE_MODULA_
4875val SCE_MODULA_DEFAULT=0
4876val SCE_MODULA_COMMENT=1
4877val SCE_MODULA_DOXYCOMM=2
4878val SCE_MODULA_DOXYKEY=3
4879val SCE_MODULA_KEYWORD=4
4880val SCE_MODULA_RESERVED=5
4881val SCE_MODULA_NUMBER=6
4882val SCE_MODULA_BASENUM=7
4883val SCE_MODULA_FLOAT=8
4884val SCE_MODULA_STRING=9
4885val SCE_MODULA_STRSPEC=10
4886val SCE_MODULA_CHAR=11
4887val SCE_MODULA_CHARSPEC=12
4888val SCE_MODULA_PROC=13
4889val SCE_MODULA_PRAGMA=14
4890val SCE_MODULA_PRGKEY=15
4891val SCE_MODULA_OPERATOR=16
4892val SCE_MODULA_BADSTR=17
4893# Lexical states for SCLEX_COFFEESCRIPT
4894lex CoffeeScript=SCLEX_COFFEESCRIPT SCE_COFFEESCRIPT_
4895val SCE_COFFEESCRIPT_DEFAULT=0
4896val SCE_COFFEESCRIPT_COMMENT=1
4897val SCE_COFFEESCRIPT_COMMENTLINE=2
4898val SCE_COFFEESCRIPT_COMMENTDOC=3
4899val SCE_COFFEESCRIPT_NUMBER=4
4900val SCE_COFFEESCRIPT_WORD=5
4901val SCE_COFFEESCRIPT_STRING=6
4902val SCE_COFFEESCRIPT_CHARACTER=7
4903val SCE_COFFEESCRIPT_UUID=8
4904val SCE_COFFEESCRIPT_PREPROCESSOR=9
4905val SCE_COFFEESCRIPT_OPERATOR=10
4906val SCE_COFFEESCRIPT_IDENTIFIER=11
4907val SCE_COFFEESCRIPT_STRINGEOL=12
4908val SCE_COFFEESCRIPT_VERBATIM=13
4909val SCE_COFFEESCRIPT_REGEX=14
4910val SCE_COFFEESCRIPT_COMMENTLINEDOC=15
4911val SCE_COFFEESCRIPT_WORD2=16
4912val SCE_COFFEESCRIPT_COMMENTDOCKEYWORD=17
4913val SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR=18
4914val SCE_COFFEESCRIPT_GLOBALCLASS=19
4915val SCE_COFFEESCRIPT_STRINGRAW=20
4916val SCE_COFFEESCRIPT_TRIPLEVERBATIM=21
4917val SCE_COFFEESCRIPT_COMMENTBLOCK=22
4918val SCE_COFFEESCRIPT_VERBOSE_REGEX=23
4919val SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT=24
4920val SCE_COFFEESCRIPT_INSTANCEPROPERTY=25
4921# Lexical states for SCLEX_AVS
4922lex AVS=SCLEX_AVS SCE_AVS_
4923val SCE_AVS_DEFAULT=0
4924val SCE_AVS_COMMENTBLOCK=1
4925val SCE_AVS_COMMENTBLOCKN=2
4926val SCE_AVS_COMMENTLINE=3
4927val SCE_AVS_NUMBER=4
4928val SCE_AVS_OPERATOR=5
4929val SCE_AVS_IDENTIFIER=6
4930val SCE_AVS_STRING=7
4931val SCE_AVS_TRIPLESTRING=8
4932val SCE_AVS_KEYWORD=9
4933val SCE_AVS_FILTER=10
4934val SCE_AVS_PLUGIN=11
4935val SCE_AVS_FUNCTION=12
4936val SCE_AVS_CLIPPROP=13
4937val SCE_AVS_USERDFN=14
4938# Lexical states for SCLEX_ECL
4939lex ECL=SCLEX_ECL SCE_ECL_
4940val SCE_ECL_DEFAULT=0
4941val SCE_ECL_COMMENT=1
4942val SCE_ECL_COMMENTLINE=2
4943val SCE_ECL_NUMBER=3
4944val SCE_ECL_STRING=4
4945val SCE_ECL_WORD0=5
4946val SCE_ECL_OPERATOR=6
4947val SCE_ECL_CHARACTER=7
4948val SCE_ECL_UUID=8
4949val SCE_ECL_PREPROCESSOR=9
4950val SCE_ECL_UNKNOWN=10
4951val SCE_ECL_IDENTIFIER=11
4952val SCE_ECL_STRINGEOL=12
4953val SCE_ECL_VERBATIM=13
4954val SCE_ECL_REGEX=14
4955val SCE_ECL_COMMENTLINEDOC=15
4956val SCE_ECL_WORD1=16
4957val SCE_ECL_COMMENTDOCKEYWORD=17
4958val SCE_ECL_COMMENTDOCKEYWORDERROR=18
4959val SCE_ECL_WORD2=19
4960val SCE_ECL_WORD3=20
4961val SCE_ECL_WORD4=21
4962val SCE_ECL_WORD5=22
4963val SCE_ECL_COMMENTDOC=23
4964val SCE_ECL_ADDED=24
4965val SCE_ECL_DELETED=25
4966val SCE_ECL_CHANGED=26
4967val SCE_ECL_MOVED=27
4968# Lexical states for SCLEX_OSCRIPT
4969lex OScript=SCLEX_OSCRIPT SCE_OSCRIPT_
4970val SCE_OSCRIPT_DEFAULT=0
4971val SCE_OSCRIPT_LINE_COMMENT=1
4972val SCE_OSCRIPT_BLOCK_COMMENT=2
4973val SCE_OSCRIPT_DOC_COMMENT=3
4974val SCE_OSCRIPT_PREPROCESSOR=4
4975val SCE_OSCRIPT_NUMBER=5
4976val SCE_OSCRIPT_SINGLEQUOTE_STRING=6
4977val SCE_OSCRIPT_DOUBLEQUOTE_STRING=7
4978val SCE_OSCRIPT_CONSTANT=8
4979val SCE_OSCRIPT_IDENTIFIER=9
4980val SCE_OSCRIPT_GLOBAL=10
4981val SCE_OSCRIPT_KEYWORD=11
4982val SCE_OSCRIPT_OPERATOR=12
4983val SCE_OSCRIPT_LABEL=13
4984val SCE_OSCRIPT_TYPE=14
4985val SCE_OSCRIPT_FUNCTION=15
4986val SCE_OSCRIPT_OBJECT=16
4987val SCE_OSCRIPT_PROPERTY=17
4988val SCE_OSCRIPT_METHOD=18
4989# Lexical states for SCLEX_VISUALPROLOG
4990lex VisualProlog=SCLEX_VISUALPROLOG SCE_VISUALPROLOG_
4991val SCE_VISUALPROLOG_DEFAULT=0
4992val SCE_VISUALPROLOG_KEY_MAJOR=1
4993val SCE_VISUALPROLOG_KEY_MINOR=2
4994val SCE_VISUALPROLOG_KEY_DIRECTIVE=3
4995val SCE_VISUALPROLOG_COMMENT_BLOCK=4
4996val SCE_VISUALPROLOG_COMMENT_LINE=5
4997val SCE_VISUALPROLOG_COMMENT_KEY=6
4998val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7
4999val SCE_VISUALPROLOG_IDENTIFIER=8
5000val SCE_VISUALPROLOG_VARIABLE=9
5001val SCE_VISUALPROLOG_ANONYMOUS=10
5002val SCE_VISUALPROLOG_NUMBER=11
5003val SCE_VISUALPROLOG_OPERATOR=12
5004val SCE_VISUALPROLOG_CHARACTER=13
5005val SCE_VISUALPROLOG_CHARACTER_TOO_MANY=14
5006val SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR=15
5007val SCE_VISUALPROLOG_STRING=16
5008val SCE_VISUALPROLOG_STRING_ESCAPE=17
5009val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=18
5010val SCE_VISUALPROLOG_STRING_EOL_OPEN=19
5011val SCE_VISUALPROLOG_STRING_VERBATIM=20
5012val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=21
5013val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=22
5014# Lexical states for SCLEX_STTXT
5015lex StructuredText=SCLEX_STTXT SCE_STTXT_
5016val SCE_STTXT_DEFAULT=0
5017val SCE_STTXT_COMMENT=1
5018val SCE_STTXT_COMMENTLINE=2
5019val SCE_STTXT_KEYWORD=3
5020val SCE_STTXT_TYPE=4
5021val SCE_STTXT_FUNCTION=5
5022val SCE_STTXT_FB=6
5023val SCE_STTXT_NUMBER=7
5024val SCE_STTXT_HEXNUMBER=8
5025val SCE_STTXT_PRAGMA=9
5026val SCE_STTXT_OPERATOR=10
5027val SCE_STTXT_CHARACTER=11
5028val SCE_STTXT_STRING1=12
5029val SCE_STTXT_STRING2=13
5030val SCE_STTXT_STRINGEOL=14
5031val SCE_STTXT_IDENTIFIER=15
5032val SCE_STTXT_DATETIME=16
5033val SCE_STTXT_VARS=17
5034val SCE_STTXT_PRAGMAS=18
5035# Lexical states for SCLEX_KVIRC
5036lex KVIrc=SCLEX_KVIRC SCE_KVIRC_
5037val SCE_KVIRC_DEFAULT=0
5038val SCE_KVIRC_COMMENT=1
5039val SCE_KVIRC_COMMENTBLOCK=2
5040val SCE_KVIRC_STRING=3
5041val SCE_KVIRC_WORD=4
5042val SCE_KVIRC_KEYWORD=5
5043val SCE_KVIRC_FUNCTION_KEYWORD=6
5044val SCE_KVIRC_FUNCTION=7
5045val SCE_KVIRC_VARIABLE=8
5046val SCE_KVIRC_NUMBER=9
5047val SCE_KVIRC_OPERATOR=10
5048val SCE_KVIRC_STRING_FUNCTION=11
5049val SCE_KVIRC_STRING_VARIABLE=12
5050# Lexical states for SCLEX_RUST
5051lex Rust=SCLEX_RUST SCE_RUST_
5052val SCE_RUST_DEFAULT=0
5053val SCE_RUST_COMMENTBLOCK=1
5054val SCE_RUST_COMMENTLINE=2
5055val SCE_RUST_COMMENTBLOCKDOC=3
5056val SCE_RUST_COMMENTLINEDOC=4
5057val SCE_RUST_NUMBER=5
5058val SCE_RUST_WORD=6
5059val SCE_RUST_WORD2=7
5060val SCE_RUST_WORD3=8
5061val SCE_RUST_WORD4=9
5062val SCE_RUST_WORD5=10
5063val SCE_RUST_WORD6=11
5064val SCE_RUST_WORD7=12
5065val SCE_RUST_STRING=13
5066val SCE_RUST_STRINGR=14
5067val SCE_RUST_CHARACTER=15
5068val SCE_RUST_OPERATOR=16
5069val SCE_RUST_IDENTIFIER=17
5070val SCE_RUST_LIFETIME=18
5071val SCE_RUST_MACRO=19
5072val SCE_RUST_LEXERROR=20
5073val SCE_RUST_BYTESTRING=21
5074val SCE_RUST_BYTESTRINGR=22
5075val SCE_RUST_BYTECHARACTER=23
5076# Lexical states for SCLEX_DMAP
5077lex DMAP=SCLEX_DMAP SCE_DMAP_
5078val SCE_DMAP_DEFAULT=0
5079val SCE_DMAP_COMMENT=1
5080val SCE_DMAP_NUMBER=2
5081val SCE_DMAP_STRING1=3
5082val SCE_DMAP_STRING2=4
5083val SCE_DMAP_STRINGEOL=5
5084val SCE_DMAP_OPERATOR=6
5085val SCE_DMAP_IDENTIFIER=7
5086val SCE_DMAP_WORD=8
5087val SCE_DMAP_WORD2=9
5088val SCE_DMAP_WORD3=10
5089# Lexical states for SCLEX_DMIS
5090lex DMIS=SCLEX_DMIS SCE_DMIS_
5091val SCE_DMIS_DEFAULT=0
5092val SCE_DMIS_COMMENT=1
5093val SCE_DMIS_STRING=2
5094val SCE_DMIS_NUMBER=3
5095val SCE_DMIS_KEYWORD=4
5096val SCE_DMIS_MAJORWORD=5
5097val SCE_DMIS_MINORWORD=6
5098val SCE_DMIS_UNSUPPORTED_MAJOR=7
5099val SCE_DMIS_UNSUPPORTED_MINOR=8
5100val SCE_DMIS_LABEL=9
5101# Lexical states for SCLEX_REGISTRY
5102lex REG=SCLEX_REGISTRY SCE_REG_
5103val SCE_REG_DEFAULT=0
5104val SCE_REG_COMMENT=1
5105val SCE_REG_VALUENAME=2
5106val SCE_REG_STRING=3
5107val SCE_REG_HEXDIGIT=4
5108val SCE_REG_VALUETYPE=5
5109val SCE_REG_ADDEDKEY=6
5110val SCE_REG_DELETEDKEY=7
5111val SCE_REG_ESCAPED=8
5112val SCE_REG_KEYPATH_GUID=9
5113val SCE_REG_STRING_GUID=10
5114val SCE_REG_PARAMETER=11
5115val SCE_REG_OPERATOR=12
5116# Lexical state for SCLEX_BIBTEX
5117lex BibTeX=SCLEX_BIBTEX SCE_BIBTEX_
5118val SCE_BIBTEX_DEFAULT=0
5119val SCE_BIBTEX_ENTRY=1
5120val SCE_BIBTEX_UNKNOWN_ENTRY=2
5121val SCE_BIBTEX_KEY=3
5122val SCE_BIBTEX_PARAMETER=4
5123val SCE_BIBTEX_VALUE=5
5124val SCE_BIBTEX_COMMENT=6
5125# Lexical state for SCLEX_SREC
5126lex Srec=SCLEX_SREC SCE_HEX_
5127val SCE_HEX_DEFAULT=0
5128val SCE_HEX_RECSTART=1
5129val SCE_HEX_RECTYPE=2
5130val SCE_HEX_RECTYPE_UNKNOWN=3
5131val SCE_HEX_BYTECOUNT=4
5132val SCE_HEX_BYTECOUNT_WRONG=5
5133val SCE_HEX_NOADDRESS=6
5134val SCE_HEX_DATAADDRESS=7
5135val SCE_HEX_RECCOUNT=8
5136val SCE_HEX_STARTADDRESS=9
5137val SCE_HEX_ADDRESSFIELD_UNKNOWN=10
5138val SCE_HEX_EXTENDEDADDRESS=11
5139val SCE_HEX_DATA_ODD=12
5140val SCE_HEX_DATA_EVEN=13
5141val SCE_HEX_DATA_UNKNOWN=14
5142val SCE_HEX_DATA_EMPTY=15
5143val SCE_HEX_CHECKSUM=16
5144val SCE_HEX_CHECKSUM_WRONG=17
5145val SCE_HEX_GARBAGE=18
5146# Lexical state for SCLEX_IHEX (shared with Srec)
5147lex IHex=SCLEX_IHEX SCE_HEX_
5148# Lexical state for SCLEX_TEHEX (shared with Srec)
5149lex TEHex=SCLEX_TEHEX SCE_HEX_
5150# Lexical states for SCLEX_JSON
5151lex JSON=SCLEX_JSON SCE_JSON_
5152val SCE_JSON_DEFAULT=0
5153val SCE_JSON_NUMBER=1
5154val SCE_JSON_STRING=2
5155val SCE_JSON_STRINGEOL=3
5156val SCE_JSON_PROPERTYNAME=4
5157val SCE_JSON_ESCAPESEQUENCE=5
5158val SCE_JSON_LINECOMMENT=6
5159val SCE_JSON_BLOCKCOMMENT=7
5160val SCE_JSON_OPERATOR=8
5161val SCE_JSON_URI=9
5162val SCE_JSON_COMPACTIRI=10
5163val SCE_JSON_KEYWORD=11
5164val SCE_JSON_LDKEYWORD=12
5165val SCE_JSON_ERROR=13
5166lex EDIFACT=SCLEX_EDIFACT SCE_EDI_
5167val SCE_EDI_DEFAULT=0
5168val SCE_EDI_SEGMENTSTART=1
5169val SCE_EDI_SEGMENTEND=2
5170val SCE_EDI_SEP_ELEMENT=3
5171val SCE_EDI_SEP_COMPOSITE=4
5172val SCE_EDI_SEP_RELEASE=5
5173val SCE_EDI_UNA=6
5174val SCE_EDI_UNH=7
5175val SCE_EDI_BADSEGMENT=8
5176# Lexical states for SCLEX_STATA
5177lex STATA=SCLEX_STATA SCE_STATA_
5178val SCE_STATA_DEFAULT=0
5179val SCE_STATA_COMMENT=1
5180val SCE_STATA_COMMENTLINE=2
5181val SCE_STATA_COMMENTBLOCK=3
5182val SCE_STATA_NUMBER=4
5183val SCE_STATA_OPERATOR=5
5184val SCE_STATA_IDENTIFIER=6
5185val SCE_STATA_STRING=7
5186val SCE_STATA_TYPE=8
5187val SCE_STATA_WORD=9
5188val SCE_STATA_GLOBAL_MACRO=10
5189val SCE_STATA_MACRO=11
5190# Lexical states for SCLEX_SAS
5191lex SAS=SCLEX_SAS SCE_SAS_
5192val SCE_SAS_DEFAULT=0
5193val SCE_SAS_COMMENT=1
5194val SCE_SAS_COMMENTLINE=2
5195val SCE_SAS_COMMENTBLOCK=3
5196val SCE_SAS_NUMBER=4
5197val SCE_SAS_OPERATOR=5
5198val SCE_SAS_IDENTIFIER=6
5199val SCE_SAS_STRING=7
5200val SCE_SAS_TYPE=8
5201val SCE_SAS_WORD=9
5202val SCE_SAS_GLOBAL_MACRO=10
5203val SCE_SAS_MACRO=11
5204val SCE_SAS_MACRO_KEYWORD=12
5205val SCE_SAS_BLOCK_KEYWORD=13
5206val SCE_SAS_MACRO_FUNCTION=14
5207val SCE_SAS_STATEMENT=15
5208# Lexical states for SCLEX_NIM
5209lex Nim=SCLEX_NIM SCE_NIM_
5210val SCE_NIM_DEFAULT=0
5211val SCE_NIM_COMMENT=1
5212val SCE_NIM_COMMENTDOC=2
5213val SCE_NIM_COMMENTLINE=3
5214val SCE_NIM_COMMENTLINEDOC=4
5215val SCE_NIM_NUMBER=5
5216val SCE_NIM_STRING=6
5217val SCE_NIM_CHARACTER=7
5218val SCE_NIM_WORD=8
5219val SCE_NIM_TRIPLE=9
5220val SCE_NIM_TRIPLEDOUBLE=10
5221val SCE_NIM_BACKTICKS=11
5222val SCE_NIM_FUNCNAME=12
5223val SCE_NIM_STRINGEOL=13
5224val SCE_NIM_NUMERROR=14
5225val SCE_NIM_OPERATOR=15
5226val SCE_NIM_IDENTIFIER=16
5227# Lexical states for SCLEX_CIL
5228lex CIL=SCLEX_CIL SCE_CIL_
5229val SCE_CIL_DEFAULT=0
5230val SCE_CIL_COMMENT=1
5231val SCE_CIL_COMMENTLINE=2
5232val SCE_CIL_WORD=3
5233val SCE_CIL_WORD2=4
5234val SCE_CIL_WORD3=5
5235val SCE_CIL_STRING=6
5236val SCE_CIL_LABEL=7
5237val SCE_CIL_OPERATOR=8
5238val SCE_CIL_IDENTIFIER=9
5239val SCE_CIL_STRINGEOL=10
5240# Lexical states for SCLEX_X12
5241lex X12=SCLEX_X12 SCE_X12_
5242val SCE_X12_DEFAULT=0
5243val SCE_X12_BAD=1
5244val SCE_X12_ENVELOPE=2
5245val SCE_X12_FUNCTIONGROUP=3
5246val SCE_X12_TRANSACTIONSET=4
5247val SCE_X12_SEGMENTHEADER=5
5248val SCE_X12_SEGMENTEND=6
5249val SCE_X12_SEP_ELEMENT=7
5250val SCE_X12_SEP_SUBELEMENT=8
5251# Lexical states for SCLEX_DATAFLEX
5252lex Dataflex=SCLEX_DATAFLEX SCE_DF_
5253val SCE_DF_DEFAULT=0
5254val SCE_DF_IDENTIFIER=1
5255val SCE_DF_METATAG=2
5256val SCE_DF_IMAGE=3
5257val SCE_DF_COMMENTLINE=4
5258val SCE_DF_PREPROCESSOR=5
5259val SCE_DF_PREPROCESSOR2=6
5260val SCE_DF_NUMBER=7
5261val SCE_DF_HEXNUMBER=8
5262val SCE_DF_WORD=9
5263val SCE_DF_STRING=10
5264val SCE_DF_STRINGEOL=11
5265val SCE_DF_SCOPEWORD=12
5266val SCE_DF_OPERATOR=13
5267val SCE_DF_ICODE=14
5268# Lexical states for SCLEX_HOLLYWOOD
5269lex Hollywood=SCLEX_HOLLYWOOD SCE_HOLLYWOOD_
5270val SCE_HOLLYWOOD_DEFAULT=0
5271val SCE_HOLLYWOOD_COMMENT=1
5272val SCE_HOLLYWOOD_COMMENTBLOCK=2
5273val SCE_HOLLYWOOD_NUMBER=3
5274val SCE_HOLLYWOOD_KEYWORD=4
5275val SCE_HOLLYWOOD_STDAPI=5
5276val SCE_HOLLYWOOD_PLUGINAPI=6
5277val SCE_HOLLYWOOD_PLUGINMETHOD=7
5278val SCE_HOLLYWOOD_STRING=8
5279val SCE_HOLLYWOOD_STRINGBLOCK=9
5280val SCE_HOLLYWOOD_PREPROCESSOR=10
5281val SCE_HOLLYWOOD_OPERATOR=11
5282val SCE_HOLLYWOOD_IDENTIFIER=12
5283val SCE_HOLLYWOOD_CONSTANT=13
5284val SCE_HOLLYWOOD_HEXNUMBER=14
5285# Lexical states for SCLEX_RAKU
5286lex Raku=SCLEX_RAKU SCE_RAKU_
5287val SCE_RAKU_DEFAULT=0
5288val SCE_RAKU_ERROR=1
5289val SCE_RAKU_COMMENTLINE=2
5290val SCE_RAKU_COMMENTEMBED=3
5291val SCE_RAKU_POD=4
5292val SCE_RAKU_CHARACTER=5
5293val SCE_RAKU_HEREDOC_Q=6
5294val SCE_RAKU_HEREDOC_QQ=7
5295val SCE_RAKU_STRING=8
5296val SCE_RAKU_STRING_Q=9
5297val SCE_RAKU_STRING_QQ=10
5298val SCE_RAKU_STRING_Q_LANG=11
5299val SCE_RAKU_STRING_VAR=12
5300val SCE_RAKU_REGEX=13
5301val SCE_RAKU_REGEX_VAR=14
5302val SCE_RAKU_ADVERB=15
5303val SCE_RAKU_NUMBER=16
5304val SCE_RAKU_PREPROCESSOR=17
5305val SCE_RAKU_OPERATOR=18
5306val SCE_RAKU_WORD=19
5307val SCE_RAKU_FUNCTION=20
5308val SCE_RAKU_IDENTIFIER=21
5309val SCE_RAKU_TYPEDEF=22
5310val SCE_RAKU_MU=23
5311val SCE_RAKU_POSITIONAL=24
5312val SCE_RAKU_ASSOCIATIVE=25
5313val SCE_RAKU_CALLABLE=26
5314val SCE_RAKU_GRAMMAR=27
5315val SCE_RAKU_CLASS=28
5316
5317# Events
5318
5319evt void StyleNeeded=2000(int position)
5320evt void CharAdded=2001(int ch, int characterSource)
5321evt void SavePointReached=2002(void)
5322evt void SavePointLeft=2003(void)
5323evt void ModifyAttemptRO=2004(void)
5324# GTK Specific to work around focus and accelerator problems:
5325evt void Key=2005(int ch, int modifiers)
5326evt void DoubleClick=2006(int modifiers, int position, int line)
5327evt void UpdateUI=2007(int updated)
5328evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev, int token, int annotationLinesAdded)
5329evt void MacroRecord=2009(int message, int wParam, int lParam)
5330evt void MarginClick=2010(int modifiers, int position, int margin)
5331evt void NeedShown=2011(int position, int length)
5332evt void Painted=2013(void)
5333evt void UserListSelection=2014(int listType, string text, int position, int ch, CompletionMethods listCompletionMethod)
5334evt void URIDropped=2015(string text)
5335evt void DwellStart=2016(int position, int x, int y)
5336evt void DwellEnd=2017(int position, int x, int y)
5337evt void Zoom=2018(void)
5338evt void HotSpotClick=2019(int modifiers, int position)
5339evt void HotSpotDoubleClick=2020(int modifiers, int position)
5340evt void CallTipClick=2021(int position)
5341evt void AutoCSelection=2022(string text, int position, int ch, CompletionMethods listCompletionMethod)
5342evt void IndicatorClick=2023(int modifiers, int position)
5343evt void IndicatorRelease=2024(int modifiers, int position)
5344evt void AutoCCancelled=2025(void)
5345evt void AutoCCharDeleted=2026(void)
5346evt void HotSpotReleaseClick=2027(int modifiers, int position)
5347evt void FocusIn=2028(void)
5348evt void FocusOut=2029(void)
5349evt void AutoCCompleted=2030(string text, int position, int ch, CompletionMethods listCompletionMethod)
5350evt void MarginRightClick=2031(int modifiers, int position, int margin)
5351evt void AutoCSelectionChange=2032(int listType, string text, int position)
5352
5353cat Provisional
5354
5355enu Bidirectional=SC_BIDIRECTIONAL_
5356val SC_BIDIRECTIONAL_DISABLED=0
5357val SC_BIDIRECTIONAL_L2R=1
5358val SC_BIDIRECTIONAL_R2L=2
5359
5360# Retrieve bidirectional text display state.
5361get Bidirectional GetBidirectional=2708(,)
5362
5363# Set bidirectional text display state.
5364set void SetBidirectional=2709(Bidirectional bidirectional,)
5365
5366enu LineCharacterIndexType=SC_LINECHARACTERINDEX_
5367val SC_LINECHARACTERINDEX_NONE=0
5368val SC_LINECHARACTERINDEX_UTF32=1
5369val SC_LINECHARACTERINDEX_UTF16=2
5370
5371# Retrieve line character index state.
5372get LineCharacterIndexType GetLineCharacterIndex=2710(,)
5373
5374# Request line character index be created or its use count increased.
5375fun void AllocateLineCharacterIndex=2711(LineCharacterIndexType lineCharacterIndex,)
5376
5377# Decrease use count of line character index and remove if 0.
5378fun void ReleaseLineCharacterIndex=2712(LineCharacterIndexType lineCharacterIndex,)
5379
5380# Retrieve the document line containing a position measured in index units.
5381fun line LineFromIndexPosition=2713(position pos, LineCharacterIndexType lineCharacterIndex)
5382
5383# Retrieve the position measured in index units at the start of a document line.
5384fun position IndexPositionFromLine=2714(line line, LineCharacterIndexType lineCharacterIndex)
5385
5386cat Deprecated
5387
5388# Divide each styling byte into lexical class bits (default: 5) and indicator
5389# bits (default: 3). If a lexer requires more than 32 lexical states, then this
5390# is used to expand the possible states.
5391set void SetStyleBits=2090(int bits,)
5392
5393# Retrieve number of bits in style bytes used to hold the lexical state.
5394get int GetStyleBits=2091(,)
5395
5396# Retrieve the number of bits the current lexer needs for styling.
5397get int GetStyleBitsNeeded=4011(,)
5398
5399# Deprecated in 3.5.5
5400
5401# Always interpret keyboard input as Unicode
5402set void SetKeysUnicode=2521(bool keysUnicode,)
5403
5404# Are keys always interpreted as Unicode?
5405get bool GetKeysUnicode=2522(,)
5406
5407# Is drawing done in two phases with backgrounds drawn before foregrounds?
5408get bool GetTwoPhaseDraw=2283(,)
5409
5410# In twoPhaseDraw mode, drawing is performed in two phases, first the background
5411# and then the foreground. This avoids chopping off characters that overlap the next run.
5412set void SetTwoPhaseDraw=2284(bool twoPhase,)
5413
5414val INDIC0_MASK=0x20
5415val INDIC1_MASK=0x40
5416val INDIC2_MASK=0x80
5417val INDICS_MASK=0xE0
5418