]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/include/Scintilla.iface
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / stc / scintilla / include / Scintilla.iface
CommitLineData
bfabd11a
RD
1## First line may be used for shbang
2
3## This file defines the interface to Scintilla
4
8e54aaed 5## Copyright 2000-2003 by Neil Hodgson <neilh@scintilla.org>
1a2fb4cd
RD
6## The License.txt file describes the conditions under which this software may be distributed.
7
bfabd11a 8## A line starting with ## is a pure comment and should be stripped by readers.
d134f170 9## A line starting with #! is for future shbang use
d25f5fbb 10## A line starting with # followed by a space is a documentation comment and refers
bfabd11a
RD
11## to the next feature definition.
12
d134f170 13## Each feature is defined by a line starting with fun, get, set, val or evt.
bfabd11a
RD
14## cat -> start a category
15## fun -> a function
16## get -> a property get function
d134f170 17## set -> a property set function
bfabd11a 18## val -> definition of a constant
d134f170 19## evt -> an event
a834585d
RD
20## enu -> associate an enumeration with a set of vals with a prefix
21## lex -> associate a lexer with the lexical classes it produces
22##
bfabd11a
RD
23## All other feature names should be ignored. They may be defined in the future.
24## A property may have a set function, a get function or both. Each will have
25## "Get" or "Set" in their names and the corresponding name will have the obvious switch.
26## A property may be subscripted, in which case the first parameter is the subscript.
27## fun, get, and set features have a strict syntax:
28## <featureType><ws><returnType><ws><name>[=<number](<param>,<param>)
8e54aaed
RD
29## where <ws> stands for white space.
30## param may be empty (null value) or is <paramType><ws><paramName>[=<value>]
bfabd11a 31## Additional white space is allowed between elements.
d134f170 32## The syntax for evt is <featureType><ws><returnType><ws><name>[=<number]([<param>[,<param>]*])
bfabd11a
RD
33## Feature names that contain an underscore are defined by Windows, so in these
34## cases, using the Windows definition is preferred where available.
1a2fb4cd
RD
35## The feature numbers are stable so features will not be renumbered.
36## Features may be removed but they will go through a period of deprecation
37## before removal which is signalled by moving them into the Deprecated category.
a834585d
RD
38##
39## enu has the syntax enu<ws><enumeration>=<prefix>[<ws><prefix>]* where all the val
40## features in this file starting with a given <prefix> are considered part of the
41## enumeration.
42##
43## lex has the syntax lex<ws><name>=<lexerVal><ws><prefix>[<ws><prefix>]*
44## where name is a reasonably capitalised (Python, XML) identifier or UI name,
45## lexerVal is the val used to specify the lexer, and the list of prefixes is similar
46## to enu. The name may not be the same as that used within the lexer so the lexerVal
47## should be used to tie these entities together.
bfabd11a
RD
48
49## Types:
50## void
51## int
52## bool -> integer, 1=true, 0=false
53## position -> integer position in a document
54## colour -> colour integer containing red, green and blue bytes.
55## string -> pointer to const character
591d01be 56## stringresult -> pointer to character, NULL-> return size of result
bfabd11a 57## cells -> pointer to array of cells, each cell containing a style byte and character byte
1a2fb4cd 58## textrange -> range of a min and a max position with an output string
bfabd11a
RD
59## findtext -> searchrange, text -> foundposition
60## keymod -> integer containing key in low half and modifiers in high half
bfabd11a 61## formatrange
1a2fb4cd
RD
62## Types no longer used:
63## findtextex -> searchrange
64## charrange -> range of a min and a max position
65## charrangeresult -> like charrange, but output param
66## countedstring
bfabd11a 67## point -> x,y
d134f170
RD
68## pointresult -> like point, but output param
69## rectangle -> left,top,right,bottom
d25f5fbb 70## Client code should ignore definitions containing types it does not understand, except
bfabd11a
RD
71## for possibly #defining the constants
72
591d01be 73## Line numbers and positions start at 0.
1a2fb4cd
RD
74## String arguments may contain NUL ('\0') characters where the calls provide a length
75## argument and retrieve NUL characters. All retrieved strings except for those retrieved
76## by GetLine also have a NUL appended but client code should calculate the size that
77## will be returned rather than relying upon the NUL whenever possible. Allow for the
591d01be
RD
78## extra NUL character when allocating buffers. The size to allocate for a stringresult
79## can be determined by calling with a NULL (0) pointer.
1a2fb4cd 80
d25f5fbb 81cat Basics
bfabd11a
RD
82
83################################################
d134f170 84## For Scintilla.h
bfabd11a 85val INVALID_POSITION=-1
8e54aaed 86# Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
d134f170 87# as many EM_ messages can be used although that use is deprecated.
bfabd11a
RD
88val SCI_START=2000
89val SCI_OPTIONAL_START=3000
90val SCI_LEXER_START=4000
91
591d01be 92# Add text to the document at current position.
bfabd11a
RD
93fun void AddText=2001(int length, string text)
94
a834585d 95# Add array of cells to document.
bfabd11a
RD
96fun void AddStyledText=2002(int length, cells c)
97
a834585d 98# Insert string at a position.
bfabd11a
RD
99fun void InsertText=2003(position pos, string text)
100
a834585d 101# Delete all text in the document.
bfabd11a
RD
102fun void ClearAll=2004(,)
103
1dcf666d
RD
104# Delete a range of text in the document.
105fun void DeleteRange=2645(position pos, int deleteLength)
106
a834585d 107# Set all style bytes to 0, remove all folding information.
d134f170
RD
108fun void ClearDocumentStyle=2005(,)
109
9e96e16f 110# Returns the number of bytes in the document.
bfabd11a
RD
111get int GetLength=2006(,)
112
a834585d 113# Returns the character byte at the position.
bfabd11a
RD
114get int GetCharAt=2007(position pos,)
115
a834585d 116# Returns the position of the caret.
bfabd11a
RD
117get position GetCurrentPos=2008(,)
118
a834585d 119# Returns the position of the opposite end of the selection to the caret.
bfabd11a
RD
120get position GetAnchor=2009(,)
121
a834585d 122# Returns the style byte at the position.
bfabd11a
RD
123get int GetStyleAt=2010(position pos,)
124
a834585d 125# Redoes the next action on the undo history.
bfabd11a
RD
126fun void Redo=2011(,)
127
d25f5fbb 128# Choose between collecting actions into the undo
bfabd11a 129# history and discarding them.
d134f170 130set void SetUndoCollection=2012(bool collectUndo,)
bfabd11a
RD
131
132# Select all the text in the document.
133fun void SelectAll=2013(,)
134
d25f5fbb 135# Remember the current position in the undo history as the position
bfabd11a
RD
136# at which the document was saved.
137fun void SetSavePoint=2014(,)
138
139# Retrieve a buffer of cells.
8e54aaed 140# Returns the number of bytes in the buffer not including terminating NULs.
bfabd11a
RD
141fun int GetStyledText=2015(, textrange tr)
142
a834585d 143# Are there any redoable actions in the undo history?
bfabd11a
RD
144fun bool CanRedo=2016(,)
145
a834585d 146# Retrieve the line number at which a particular marker is located.
bfabd11a
RD
147fun int MarkerLineFromHandle=2017(int handle,)
148
149# Delete a marker.
150fun void MarkerDeleteHandle=2018(int handle,)
151
d134f170
RD
152# Is undo history being collected?
153get bool GetUndoCollection=2019(,)
154
a834585d 155enu WhiteSpace=SCWS_
d134f170
RD
156val SCWS_INVISIBLE=0
157val SCWS_VISIBLEALWAYS=1
158val SCWS_VISIBLEAFTERINDENT=2
159
bfabd11a 160# Are white space characters currently visible?
d134f170
RD
161# Returns one of SCWS_* constants.
162get int GetViewWS=2020(,)
bfabd11a 163
d134f170
RD
164# Make white space characters invisible, always visible or visible outside indentation.
165set void SetViewWS=2021(int viewWS,)
166
167# Find the position from a point within the window.
8e54aaed 168fun position PositionFromPoint=2022(int x, int y)
bfabd11a 169
65ec6247
RD
170# Find the position from a point within the window but return
171# INVALID_POSITION if not close to text.
8e54aaed 172fun position PositionFromPointClose=2023(int x, int y)
65ec6247 173
bfabd11a
RD
174# Set caret to start of a line and ensure it is visible.
175fun void GotoLine=2024(int line,)
176
177# Set caret to a position and ensure it is visible.
178fun void GotoPos=2025(position pos,)
179
180# Set the selection anchor to a position. The anchor is the opposite
181# end of the selection from the caret.
182set void SetAnchor=2026(position posAnchor,)
183
184# Retrieve the text of the line containing the caret.
185# Returns the index of the caret on the line.
186fun int GetCurLine=2027(int length, stringresult text)
187
188# Retrieve the position of the last correctly styled character.
189get position GetEndStyled=2028(,)
190
a834585d 191enu EndOfLine=SC_EOL_
bfabd11a
RD
192val SC_EOL_CRLF=0
193val SC_EOL_CR=1
194val SC_EOL_LF=2
195
65ec6247
RD
196# Convert all line endings in the document to one mode.
197fun void ConvertEOLs=2029(int eolMode,)
198
bfabd11a
RD
199# Retrieve the current end of line mode - one of CRLF, CR, or LF.
200get int GetEOLMode=2030(,)
201
202# Set the current end of line mode.
203set void SetEOLMode=2031(int eolMode,)
204
205# Set the current styling position to pos and the styling mask to mask.
a834585d 206# The styling mask can be used to protect some bits in each styling byte from modification.
bfabd11a
RD
207fun void StartStyling=2032(position pos, int mask)
208
209# Change style from current styling position for length characters to a style
210# and move the current styling position to after this newly styled segment.
211fun void SetStyling=2033(int length, int style)
212
a834585d 213# Is drawing done first into a buffer or direct to the screen?
d134f170
RD
214get bool GetBufferedDraw=2034(,)
215
bfabd11a
RD
216# If drawing is buffered then each line of text is drawn into a bitmap buffer
217# before drawing it to the screen to avoid flicker.
218set void SetBufferedDraw=2035(bool buffered,)
219
a834585d 220# Change the visible size of a tab to be a multiple of the width of a space character.
bfabd11a
RD
221set void SetTabWidth=2036(int tabWidth,)
222
d25f5fbb 223# Retrieve the visible size of a tab.
bfabd11a
RD
224get int GetTabWidth=2121(,)
225
d134f170
RD
226# The SC_CP_UTF8 value can be used to enter Unicode mode.
227# This is the same value as CP_UTF8 in Windows
bfabd11a
RD
228val SC_CP_UTF8=65001
229
230# Set the code page used to interpret the bytes of the document as characters.
231# The SC_CP_UTF8 value can be used to enter Unicode mode.
232set void SetCodePage=2037(int codePage,)
233
a834585d 234enu MarkerSymbol=SC_MARK_
bfabd11a
RD
235val MARKER_MAX=31
236val SC_MARK_CIRCLE=0
237val SC_MARK_ROUNDRECT=1
238val SC_MARK_ARROW=2
239val SC_MARK_SMALLRECT=3
240val SC_MARK_SHORTARROW=4
241val SC_MARK_EMPTY=5
242val SC_MARK_ARROWDOWN=6
243val SC_MARK_MINUS=7
244val SC_MARK_PLUS=8
245
a834585d 246# Shapes used for outlining column.
65ec6247
RD
247val SC_MARK_VLINE=9
248val SC_MARK_LCORNER=10
249val SC_MARK_TCORNER=11
250val SC_MARK_BOXPLUS=12
251val SC_MARK_BOXPLUSCONNECTED=13
252val SC_MARK_BOXMINUS=14
253val SC_MARK_BOXMINUSCONNECTED=15
254val SC_MARK_LCORNERCURVE=16
255val SC_MARK_TCORNERCURVE=17
256val SC_MARK_CIRCLEPLUS=18
257val SC_MARK_CIRCLEPLUSCONNECTED=19
258val SC_MARK_CIRCLEMINUS=20
259val SC_MARK_CIRCLEMINUSCONNECTED=21
260
1dcf666d 261# Invisible mark that only sets the line background colour.
1a2fb4cd 262val SC_MARK_BACKGROUND=22
f114b858
RD
263val SC_MARK_DOTDOTDOT=23
264val SC_MARK_ARROWS=24
9e730a78 265val SC_MARK_PIXMAP=25
1e9bafca 266val SC_MARK_FULLRECT=26
9e96e16f
RD
267val SC_MARK_LEFTRECT=27
268val SC_MARK_AVAILABLE=28
269val SC_MARK_UNDERLINE=29
1dcf666d 270val SC_MARK_RGBAIMAGE=30
1a2fb4cd 271
b8b0e402
RD
272val SC_MARK_CHARACTER=10000
273
a834585d
RD
274enu MarkerOutline=SC_MARKNUM_
275# Markers used for outlining column.
65ec6247
RD
276val SC_MARKNUM_FOLDEREND=25
277val SC_MARKNUM_FOLDEROPENMID=26
278val SC_MARKNUM_FOLDERMIDTAIL=27
279val SC_MARKNUM_FOLDERTAIL=28
280val SC_MARKNUM_FOLDERSUB=29
bfabd11a
RD
281val SC_MARKNUM_FOLDER=30
282val SC_MARKNUM_FOLDEROPEN=31
bfabd11a 283
1a2fb4cd
RD
284val SC_MASK_FOLDERS=0xFE000000
285
bfabd11a
RD
286# Set the symbol used for a particular marker number.
287fun void MarkerDefine=2040(int markerNumber, int markerSymbol)
288
289# Set the foreground colour used for a particular marker number.
1dcf666d 290set void MarkerSetFore=2041(int markerNumber, colour fore)
bfabd11a
RD
291
292# Set the background colour used for a particular marker number.
1dcf666d
RD
293set void MarkerSetBack=2042(int markerNumber, colour back)
294
295# Set the background colour used for a particular marker number when its folding block is selected.
296set void MarkerSetBackSelected=2292(int markerNumber, colour back)
297
298# Enable/disable highlight for current folding bloc (smallest one that contains the caret)
299fun void MarkerEnableHighlight=2293(bool enabled,)
bfabd11a 300
1a2fb4cd
RD
301# Add a marker to a line, returning an ID which can be used to find or delete the marker.
302fun int MarkerAdd=2043(int line, int markerNumber)
bfabd11a 303
a834585d 304# Delete a marker from a line.
bfabd11a
RD
305fun void MarkerDelete=2044(int line, int markerNumber)
306
a834585d 307# Delete all markers with a particular number from all lines.
bfabd11a
RD
308fun void MarkerDeleteAll=2045(int markerNumber,)
309
310# Get a bit mask of all the markers set on a line.
311fun int MarkerGet=2046(int line,)
312
1dcf666d
RD
313# Find the next line at or after lineStart that includes a marker in mask.
314# Return -1 when no more lines.
bfabd11a
RD
315fun int MarkerNext=2047(int lineStart, int markerMask)
316
317# Find the previous line before lineStart that includes a marker in mask.
318fun int MarkerPrevious=2048(int lineStart, int markerMask)
319
9e730a78
RD
320# Define a marker from a pixmap.
321fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap)
322
1e9bafca
RD
323# Add a set of markers to a line.
324fun void MarkerAddSet=2466(int line, int set)
325
b8193d80 326# Set the alpha used for a marker that is drawn in the text area, not the margin.
1dcf666d 327set void MarkerSetAlpha=2476(int markerNumber, int alpha)
b8193d80 328
a834585d 329enu MarginType=SC_MARGIN_
bfabd11a
RD
330val SC_MARGIN_SYMBOL=0
331val SC_MARGIN_NUMBER=1
b8193d80
RD
332val SC_MARGIN_BACK=2
333val SC_MARGIN_FORE=3
9e96e16f
RD
334val SC_MARGIN_TEXT=4
335val SC_MARGIN_RTEXT=5
bfabd11a
RD
336
337# Set a margin to be either numeric or symbolic.
338set void SetMarginTypeN=2240(int margin, int marginType)
339
340# Retrieve the type of a margin.
341get int GetMarginTypeN=2241(int margin,)
342
343# Set the width of a margin to a width expressed in pixels.
344set void SetMarginWidthN=2242(int margin, int pixelWidth)
345
346# Retrieve the width of a margin in pixels.
347get int GetMarginWidthN=2243(int margin,)
348
349# Set a mask that determines which markers are displayed in a margin.
350set void SetMarginMaskN=2244(int margin, int mask)
351
352# Retrieve the marker mask of a margin.
353get int GetMarginMaskN=2245(int margin,)
354
355# Make a margin sensitive or insensitive to mouse clicks.
356set void SetMarginSensitiveN=2246(int margin, bool sensitive)
357
358# Retrieve the mouse click sensitivity of a margin.
359get bool GetMarginSensitiveN=2247(int margin,)
360
1dcf666d
RD
361# Set the cursor shown when the mouse is inside a margin.
362set void SetMarginCursorN=2248(int margin, int cursor)
363
364# Retrieve the cursor shown in a margin.
365get int GetMarginCursorN=2249(int margin,)
366
b8193d80
RD
367# Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
368# Style 39 is for future use.
a834585d 369enu StylesCommon=STYLE_
bfabd11a
RD
370val STYLE_DEFAULT=32
371val STYLE_LINENUMBER=33
372val STYLE_BRACELIGHT=34
373val STYLE_BRACEBAD=35
374val STYLE_CONTROLCHAR=36
d134f170 375val STYLE_INDENTGUIDE=37
b8193d80 376val STYLE_CALLTIP=38
b8b0e402 377val STYLE_LASTPREDEFINED=39
7e0c58e9 378val STYLE_MAX=255
bfabd11a 379
d134f170
RD
380# Character set identifiers are used in StyleSetCharacterSet.
381# The values are the same as the Windows *_CHARSET values.
a834585d 382enu CharacterSet=SC_CHARSET_
d134f170
RD
383val SC_CHARSET_ANSI=0
384val SC_CHARSET_DEFAULT=1
385val SC_CHARSET_BALTIC=186
386val SC_CHARSET_CHINESEBIG5=136
387val SC_CHARSET_EASTEUROPE=238
388val SC_CHARSET_GB2312=134
389val SC_CHARSET_GREEK=161
390val SC_CHARSET_HANGUL=129
391val SC_CHARSET_MAC=77
392val SC_CHARSET_OEM=255
393val SC_CHARSET_RUSSIAN=204
1e9bafca 394val SC_CHARSET_CYRILLIC=1251
d134f170
RD
395val SC_CHARSET_SHIFTJIS=128
396val SC_CHARSET_SYMBOL=2
397val SC_CHARSET_TURKISH=162
398val SC_CHARSET_JOHAB=130
399val SC_CHARSET_HEBREW=177
400val SC_CHARSET_ARABIC=178
401val SC_CHARSET_VIETNAMESE=163
402val SC_CHARSET_THAI=222
1e9bafca 403val SC_CHARSET_8859_15=1000
d134f170 404
bfabd11a 405# Clear all the styles and make equivalent to the global default style.
1dcf666d 406fun void StyleClearAll=2050(,)
bfabd11a
RD
407
408# Set the foreground colour of a style.
409set void StyleSetFore=2051(int style, colour fore)
410
411# Set the background colour of a style.
412set void StyleSetBack=2052(int style, colour back)
413
414# Set a style to be bold or not.
415set void StyleSetBold=2053(int style, bool bold)
416
417# Set a style to be italic or not.
418set void StyleSetItalic=2054(int style, bool italic)
419
420# Set the size of characters of a style.
421set void StyleSetSize=2055(int style, int sizePoints)
422
423# Set the font of a style.
424set void StyleSetFont=2056(int style, string fontName)
425
426# Set a style to have its end of line filled or not.
427set void StyleSetEOLFilled=2057(int style, bool filled)
428
429# Reset the default style to its state at startup
430fun void StyleResetDefault=2058(,)
431
432# Set a style to be underlined or not.
433set void StyleSetUnderline=2059(int style, bool underline)
434
a834585d 435enu CaseVisible=SC_CASE_
65ec6247
RD
436val SC_CASE_MIXED=0
437val SC_CASE_UPPER=1
438val SC_CASE_LOWER=2
7e0c58e9
RD
439
440# Get the foreground colour of a style.
441get colour StyleGetFore=2481(int style,)
442
443# Get the background colour of a style.
444get colour StyleGetBack=2482(int style,)
445
446# Get is a style bold or not.
447get bool StyleGetBold=2483(int style,)
448
449# Get is a style italic or not.
450get bool StyleGetItalic=2484(int style,)
451
452# Get the size of characters of a style.
453get int StyleGetSize=2485(int style,)
454
455# Get the font of a style.
456# Returns the length of the fontName
1dcf666d 457get int StyleGetFont=2486(int style, stringresult fontName)
7e0c58e9
RD
458
459# Get is a style to have its end of line filled or not.
460get bool StyleGetEOLFilled=2487(int style,)
461
462# Get is a style underlined or not.
463get bool StyleGetUnderline=2488(int style,)
464
465# Get is a style mixed case, or to force upper or lower case.
466get int StyleGetCase=2489(int style,)
467
0926a312 468# Get the character set of the font in a style.
7e0c58e9
RD
469get int StyleGetCharacterSet=2490(int style,)
470
471# Get is a style visible or not.
472get bool StyleGetVisible=2491(int style,)
473
474# Get is a style changeable or not (read only).
475# Experimental feature, currently buggy.
476get bool StyleGetChangeable=2492(int style,)
477
478# Get is a style a hotspot or not.
479get bool StyleGetHotSpot=2493(int style,)
480
65ec6247
RD
481# Set a style to be mixed case, or to force upper or lower case.
482set void StyleSetCase=2060(int style, int caseForce)
483
1dcf666d
RD
484val SC_FONT_SIZE_MULTIPLIER=100
485
486# Set the size of characters of a style. Size is in points multiplied by 100.
487set void StyleSetSizeFractional=2061(int style, int caseForce)
488
489# Get the size of characters of a style in points multiplied by 100
490get int StyleGetSizeFractional=2062(int style,)
491
492enu FontWeight=SC_WEIGHT_
493val SC_WEIGHT_NORMAL=400
494val SC_WEIGHT_SEMIBOLD=600
495val SC_WEIGHT_BOLD=700
496
497# Set the weight of characters of a style.
498set void StyleSetWeight=2063(int style, int weight)
499
500# Get the weight of characters of a style.
501get int StyleGetWeight=2064(int style,)
502
bfabd11a
RD
503# Set the character set of the font in a style.
504set void StyleSetCharacterSet=2066(int style, int characterSet)
505
9e730a78
RD
506# Set a style to be a hotspot or not.
507set void StyleSetHotSpot=2409(int style, bool hotspot)
508
9e96e16f 509# Set the foreground colour of the main and additional selections and whether to use this setting.
bfabd11a
RD
510fun void SetSelFore=2067(bool useSetting, colour fore)
511
9e96e16f 512# Set the background colour of the main and additional selections and whether to use this setting.
bfabd11a
RD
513fun void SetSelBack=2068(bool useSetting, colour back)
514
b8193d80
RD
515# Get the alpha of the selection.
516get int GetSelAlpha=2477(,)
517
518# Set the alpha of the selection.
519set void SetSelAlpha=2478(int alpha,)
520
7e0c58e9
RD
521# Is the selection end of line filled?
522get bool GetSelEOLFilled=2479(,)
523
524# Set the selection to have its end of line filled or not.
525set void SetSelEOLFilled=2480(bool filled,)
526
bfabd11a 527# Set the foreground colour of the caret.
d134f170 528set void SetCaretFore=2069(colour fore,)
bfabd11a
RD
529
530# When key+modifier combination km is pressed perform msg.
531fun void AssignCmdKey=2070(keymod km, int msg)
532
8e54aaed 533# When key+modifier combination km is pressed do nothing.
bfabd11a
RD
534fun void ClearCmdKey=2071(keymod km,)
535
536# Drop all key mappings.
537fun void ClearAllCmdKeys=2072(,)
538
539# Set the styles for a segment of the document.
540fun void SetStylingEx=2073(int length, string styles)
541
d134f170
RD
542# Set a style to be visible or not.
543set void StyleSetVisible=2074(int style, bool visible)
544
d25f5fbb 545# Get the time in milliseconds that the caret is on and off.
bfabd11a
RD
546get int GetCaretPeriod=2075(,)
547
548# Get the time in milliseconds that the caret is on and off. 0 = steady on.
549set void SetCaretPeriod=2076(int periodMilliseconds,)
550
a834585d 551# Set the set of characters making up words for when moving or selecting by word.
9e96e16f 552# First sets defaults like SetCharsDefault.
bfabd11a
RD
553set void SetWordChars=2077(, string characters)
554
1dcf666d
RD
555# Get the set of characters making up words for when moving or selecting by word.
556# Retuns the number of characters
557get int GetWordChars=2646(, stringresult characters)
558
bfabd11a
RD
559# Start a sequence of actions that is undone and redone as a unit.
560# May be nested.
561fun void BeginUndoAction=2078(,)
562
563# End a sequence of actions that is undone and redone as a unit.
564fun void EndUndoAction=2079(,)
565
7e0c58e9 566# Indicator style enumeration and some constants
a834585d 567enu IndicatorStyle=INDIC_
bfabd11a
RD
568val INDIC_PLAIN=0
569val INDIC_SQUIGGLE=1
570val INDIC_TT=2
571val INDIC_DIAGONAL=3
572val INDIC_STRIKE=4
88a8b04e 573val INDIC_HIDDEN=5
8e54aaed 574val INDIC_BOX=6
b8193d80 575val INDIC_ROUNDBOX=7
1dcf666d
RD
576val INDIC_STRAIGHTBOX=8
577val INDIC_DASH=9
578val INDIC_DOTS=10
579val INDIC_SQUIGGLELOW=11
580val INDIC_DOTBOX=12
7e0c58e9
RD
581val INDIC_MAX=31
582val INDIC_CONTAINER=8
1a2fb4cd
RD
583val INDIC0_MASK=0x20
584val INDIC1_MASK=0x40
585val INDIC2_MASK=0x80
586val INDICS_MASK=0xE0
bfabd11a
RD
587
588# Set an indicator to plain, squiggle or TT.
589set void IndicSetStyle=2080(int indic, int style)
590
591# Retrieve the style of an indicator.
592get int IndicGetStyle=2081(int indic,)
593
594# Set the foreground colour of an indicator.
595set void IndicSetFore=2082(int indic, colour fore)
596
597# Retrieve the foreground colour of an indicator.
598get colour IndicGetFore=2083(int indic,)
599
7e0c58e9
RD
600# Set an indicator to draw under text or over(default).
601set void IndicSetUnder=2510(int indic, bool under)
602
603# Retrieve whether indicator drawn under or over text.
604get bool IndicGetUnder=2511(int indic,)
605
f114b858
RD
606# Set the foreground colour of all whitespace and whether to use this setting.
607fun void SetWhitespaceFore=2084(bool useSetting, colour fore)
608
609# Set the background colour of all whitespace and whether to use this setting.
610fun void SetWhitespaceBack=2085(bool useSetting, colour back)
611
9e96e16f
RD
612# Set the size of the dots used to mark space characters.
613set void SetWhitespaceSize=2086(int size,)
614
615# Get the size of the dots used to mark space characters.
616get int GetWhitespaceSize=2087(,)
617
a834585d
RD
618# Divide each styling byte into lexical class bits (default: 5) and indicator
619# bits (default: 3). If a lexer requires more than 32 lexical states, then this
bfabd11a
RD
620# is used to expand the possible states.
621set void SetStyleBits=2090(int bits,)
622
623# Retrieve number of bits in style bytes used to hold the lexical state.
624get int GetStyleBits=2091(,)
625
626# Used to hold extra styling information for each line.
627set void SetLineState=2092(int line, int state)
628
629# Retrieve the extra styling information for a line.
630get int GetLineState=2093(int line,)
631
d25f5fbb 632# Retrieve the last line number that has line state.
bfabd11a
RD
633get int GetMaxLineState=2094(,)
634
65ec6247
RD
635# Is the background of the line containing the caret in a different colour?
636get bool GetCaretLineVisible=2095(,)
637
a834585d 638# Display the background of the line containing the caret in a different colour.
65ec6247
RD
639set void SetCaretLineVisible=2096(bool show,)
640
641# Get the colour of the background of the line containing the caret.
642get colour GetCaretLineBack=2097(,)
643
644# Set the colour of the background of the line containing the caret.
645set void SetCaretLineBack=2098(colour back,)
646
1a2fb4cd
RD
647# Set a style to be changeable or not (read only).
648# Experimental feature, currently buggy.
649set void StyleSetChangeable=2099(int style, bool changeable)
650
bfabd11a
RD
651# Display a auto-completion list.
652# The lenEntered parameter indicates how many characters before
653# the caret should be used to provide context.
654fun void AutoCShow=2100(int lenEntered, string itemList)
655
656# Remove the auto-completion list from the screen.
657fun void AutoCCancel=2101(,)
658
659# Is there an auto-completion list visible?
660fun bool AutoCActive=2102(,)
661
a834585d 662# Retrieve the position of the caret when the auto-completion list was displayed.
bfabd11a
RD
663fun position AutoCPosStart=2103(,)
664
665# User has selected an item so remove the list and insert the selection.
666fun void AutoCComplete=2104(,)
667
668# Define a set of character that when typed cancel the auto-completion list.
669fun void AutoCStops=2105(, string characterSet)
670
a834585d
RD
671# Change the separator character in the string setting up an auto-completion list.
672# Default is space but can be changed if items contain space.
bfabd11a
RD
673set void AutoCSetSeparator=2106(int separatorCharacter,)
674
675# Retrieve the auto-completion list separator character.
676get int AutoCGetSeparator=2107(,)
677
678# Select the item in the auto-completion list that starts with a string.
679fun void AutoCSelect=2108(, string text)
680
d25f5fbb
RD
681# Should the auto-completion list be cancelled if the user backspaces to a
682# position before where the box was created.
d134f170
RD
683set void AutoCSetCancelAtStart=2110(bool cancel,)
684
685# Retrieve whether auto-completion cancelled by backspacing before start.
686get bool AutoCGetCancelAtStart=2111(,)
687
1a2fb4cd
RD
688# Define a set of characters that when typed will cause the autocompletion to
689# choose the selected item.
d134f170
RD
690set void AutoCSetFillUps=2112(, string characterSet)
691
d25f5fbb 692# Should a single item auto-completion list automatically choose the item.
d134f170
RD
693set void AutoCSetChooseSingle=2113(bool chooseSingle,)
694
d25f5fbb 695# Retrieve whether a single item auto-completion list automatically choose the item.
d134f170
RD
696get bool AutoCGetChooseSingle=2114(,)
697
698# Set whether case is significant when performing auto-completion searches.
699set void AutoCSetIgnoreCase=2115(bool ignoreCase,)
700
d25f5fbb 701# Retrieve state of ignore case flag.
d134f170
RD
702get bool AutoCGetIgnoreCase=2116(,)
703
65ec6247
RD
704# Display a list of strings and send notification when user chooses one.
705fun void UserListShow=2117(int listType, string itemList)
706
a834585d 707# Set whether or not autocompletion is hidden automatically when nothing matches.
65ec6247
RD
708set void AutoCSetAutoHide=2118(bool autoHide,)
709
a834585d 710# Retrieve whether or not autocompletion is hidden automatically when nothing matches.
65ec6247
RD
711get bool AutoCGetAutoHide=2119(,)
712
a834585d
RD
713# Set whether or not autocompletion deletes any word characters
714# after the inserted text upon completion.
1a2fb4cd
RD
715set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,)
716
a834585d
RD
717# Retrieve whether or not autocompletion deletes any word characters
718# after the inserted text upon completion.
1a2fb4cd
RD
719get bool AutoCGetDropRestOfWord=2271(,)
720
9e730a78
RD
721# Register an XPM image for use in autocompletion lists.
722fun void RegisterImage=2405(int type, string xpmData)
723
724# Clear all the registered XPM images.
725fun void ClearRegisteredImages=2408(,)
726
727# Retrieve the auto-completion list type-separator character.
728get int AutoCGetTypeSeparator=2285(,)
729
730# Change the type-separator character in the string setting up an auto-completion list.
731# Default is '?' but can be changed if items contain '?'.
732set void AutoCSetTypeSeparator=2286(int separatorCharacter,)
733
1e9bafca
RD
734# Set the maximum width, in characters, of auto-completion and user lists.
735# Set to 0 to autosize to fit longest item, which is the default.
736set void AutoCSetMaxWidth=2208(int characterCount,)
737
738# Get the maximum width, in characters, of auto-completion and user lists.
739get int AutoCGetMaxWidth=2209(,)
740
741# Set the maximum height, in rows, of auto-completion and user lists.
742# The default is 5 rows.
743set void AutoCSetMaxHeight=2210(int rowCount,)
744
745# Set the maximum height, in rows, of auto-completion and user lists.
746get int AutoCGetMaxHeight=2211(,)
747
bfabd11a
RD
748# Set the number of spaces used for one level of indentation.
749set void SetIndent=2122(int indentSize,)
750
751# Retrieve indentation size.
752get int GetIndent=2123(,)
753
754# Indentation will only use space characters if useTabs is false, otherwise
755# it will use a combination of tabs and spaces.
756set void SetUseTabs=2124(bool useTabs,)
757
758# Retrieve whether tabs will be used in indentation.
759get bool GetUseTabs=2125(,)
760
761# Change the indentation of a line to a number of columns.
762set void SetLineIndentation=2126(int line, int indentSize)
763
764# Retrieve the number of columns that a line is indented.
765get int GetLineIndentation=2127(int line,)
766
767# Retrieve the position before the first non indentation character on a line.
768get position GetLineIndentPosition=2128(int line,)
769
d134f170
RD
770# Retrieve the column number of a position, taking tab width into account.
771get int GetColumn=2129(position pos,)
772
1dcf666d
RD
773# Count characters between two positions.
774fun int CountCharacters=2633(int startPos, int endPos)
775
d134f170 776# Show or hide the horizontal scroll bar.
bfabd11a 777set void SetHScrollBar=2130(bool show,)
d134f170 778# Is the horizontal scroll bar visible?
bfabd11a
RD
779get bool GetHScrollBar=2131(,)
780
7e0c58e9
RD
781enu IndentView=SC_IV_
782val SC_IV_NONE=0
783val SC_IV_REAL=1
784val SC_IV_LOOKFORWARD=2
785val SC_IV_LOOKBOTH=3
786
d134f170 787# Show or hide indentation guides.
7e0c58e9 788set void SetIndentationGuides=2132(int indentView,)
d134f170
RD
789
790# Are the indentation guides visible?
7e0c58e9 791get int GetIndentationGuides=2133(,)
d134f170
RD
792
793# Set the highlighted indentation guide column.
794# 0 = no highlighted guide.
795set void SetHighlightGuide=2134(int column,)
796
797# Get the highlighted indentation guide column.
798get int GetHighlightGuide=2135(,)
799
800# Get the position after the last visible characters on a line.
1dcf666d 801get position GetLineEndPosition=2136(int line,)
d134f170
RD
802
803# Get the code page used to interpret the bytes of the document as characters.
804get int GetCodePage=2137(,)
805
806# Get the foreground colour of the caret.
807get colour GetCaretFore=2138(,)
808
d134f170
RD
809# In read-only mode?
810get bool GetReadOnly=2140(,)
811
812# Sets the position of the caret.
813set void SetCurrentPos=2141(position pos,)
814
815# Sets the position that starts the selection - this becomes the anchor.
816set void SetSelectionStart=2142(position pos,)
817
818# Returns the position at the start of the selection.
819get position GetSelectionStart=2143(,)
820
821# Sets the position that ends the selection - this becomes the currentPosition.
822set void SetSelectionEnd=2144(position pos,)
823
824# Returns the position at the end of the selection.
825get position GetSelectionEnd=2145(,)
826
1dcf666d
RD
827# Set caret to a position, while removing any existing selection.
828fun void SetEmptySelection=2556(position pos,)
829
d134f170
RD
830# Sets the print magnification added to the point size of each style for printing.
831set void SetPrintMagnification=2146(int magnification,)
832
833# Returns the print magnification.
834get int GetPrintMagnification=2147(,)
835
a834585d 836enu PrintOption=SC_PRINT_
d134f170
RD
837# PrintColourMode - use same colours as screen.
838val SC_PRINT_NORMAL=0
839# PrintColourMode - invert the light value of each style for printing.
840val SC_PRINT_INVERTLIGHT=1
841# PrintColourMode - force black text on white background for printing.
842val SC_PRINT_BLACKONWHITE=2
65ec6247
RD
843# PrintColourMode - text stays coloured, but all background is forced to be white for printing.
844val SC_PRINT_COLOURONWHITE=3
845# PrintColourMode - only the default-background is forced to be white for printing.
846val SC_PRINT_COLOURONWHITEDEFAULTBG=4
d134f170
RD
847
848# Modify colours when printing for clearer printed text.
849set void SetPrintColourMode=2148(int mode,)
850
851# Returns the print colour mode.
852get int GetPrintColourMode=2149(,)
853
a834585d 854enu FindOption=SCFIND_
d134f170
RD
855val SCFIND_WHOLEWORD=2
856val SCFIND_MATCHCASE=4
857val SCFIND_WORDSTART=0x00100000
d134f170 858val SCFIND_REGEXP=0x00200000
9e730a78 859val SCFIND_POSIX=0x00400000
d134f170
RD
860
861# Find some text in the document.
862fun position FindText=2150(int flags, findtext ft)
863
a834585d 864# On Windows, will draw the document into a display context such as a printer.
8e54aaed 865fun position FormatRange=2151(bool draw, formatrange fr)
d134f170 866
9e730a78 867# Retrieve the display line at the top of the display.
d134f170
RD
868get int GetFirstVisibleLine=2152(,)
869
870# Retrieve the contents of a line.
871# Returns the length of the line.
872fun int GetLine=2153(int line, stringresult text)
873
874# Returns the number of lines in the document. There is always at least one.
875get int GetLineCount=2154(,)
876
877# Sets the size in pixels of the left margin.
65ec6247 878set void SetMarginLeft=2155(, int pixelWidth)
d134f170
RD
879
880# Returns the size in pixels of the left margin.
881get int GetMarginLeft=2156(,)
882
883# Sets the size in pixels of the right margin.
65ec6247 884set void SetMarginRight=2157(, int pixelWidth)
d134f170
RD
885
886# Returns the size in pixels of the right margin.
887get int GetMarginRight=2158(,)
888
889# Is the document different from when it was last saved?
890get bool GetModify=2159(,)
891
892# Select a range of text.
893fun void SetSel=2160(position start, position end)
894
895# Retrieve the selected text.
896# Return the length of the text.
8e54aaed 897fun int GetSelText=2161(, stringresult text)
d134f170
RD
898
899# Retrieve a range of text.
900# Return the length of the text.
901fun int GetTextRange=2162(, textrange tr)
902
903# Draw the selection in normal style or with selection highlighted.
904fun void HideSelection=2163(bool normal,)
905
906# Retrieve the x value of the point in the window where a position is displayed.
907fun int PointXFromPosition=2164(, position pos)
908
909# Retrieve the y value of the point in the window where a position is displayed.
910fun int PointYFromPosition=2165(, position pos)
911
912# Retrieve the line containing a position.
913fun int LineFromPosition=2166(position pos,)
914
915# Retrieve the position at the start of a line.
8e54aaed 916fun position PositionFromLine=2167(int line,)
d134f170
RD
917
918# Scroll horizontally and vertically.
919fun void LineScroll=2168(int columns, int lines)
920
921# Ensure the caret is visible.
922fun void ScrollCaret=2169(,)
923
924# Replace the selected text with the argument text.
925fun void ReplaceSel=2170(, string text)
926
927# Set to read only or read write.
928set void SetReadOnly=2171(bool readOnly,)
929
930# Null operation.
931fun void Null=2172(,)
932
933# Will a paste succeed?
934fun bool CanPaste=2173(,)
935
a834585d 936# Are there any undoable actions in the undo history?
d134f170
RD
937fun bool CanUndo=2174(,)
938
939# Delete the undo history.
940fun void EmptyUndoBuffer=2175(,)
941
942# Undo one action in the undo history.
943fun void Undo=2176(,)
944
945# Cut the selection to the clipboard.
946fun void Cut=2177(,)
947
948# Copy the selection to the clipboard.
949fun void Copy=2178(,)
950
951# Paste the contents of the clipboard into the document replacing the selection.
952fun void Paste=2179(,)
953
954# Clear the selection.
955fun void Clear=2180(,)
956
957# Replace the contents of the document with the argument text.
958fun void SetText=2181(, string text)
959
960# Retrieve all the text in the document.
961# Returns number of characters retrieved.
962fun int GetText=2182(int length, stringresult text)
963
964# Retrieve the number of characters in the document.
965get int GetTextLength=2183(,)
966
967# Retrieve a pointer to a function that processes messages for this Scintilla.
968get int GetDirectFunction=2184(,)
969
970# Retrieve a pointer value to use as the first argument when calling
971# the function returned by GetDirectFunction.
972get int GetDirectPointer=2185(,)
973
a834585d 974# Set to overtype (true) or insert mode.
d134f170
RD
975set void SetOvertype=2186(bool overtype,)
976
977# Returns true if overtype mode is active otherwise false is returned.
978get bool GetOvertype=2187(,)
979
a834585d 980# Set the width of the insert mode caret.
65ec6247
RD
981set void SetCaretWidth=2188(int pixelWidth,)
982
a834585d 983# Returns the width of the insert mode caret.
65ec6247
RD
984get int GetCaretWidth=2189(,)
985
986# Sets the position that starts the target which is used for updating the
987# document without affecting the scroll position.
988set void SetTargetStart=2190(position pos,)
989
990# Get the position that starts the target.
991get position GetTargetStart=2191(,)
992
993# Sets the position that ends the target which is used for updating the
994# document without affecting the scroll position.
995set void SetTargetEnd=2192(position pos,)
996
997# Get the position that ends the target.
998get position GetTargetEnd=2193(,)
999
1000# Replace the target text with the argument text.
8e54aaed 1001# Text is counted so it can contain NULs.
65ec6247
RD
1002# Returns the length of the replacement text.
1003fun int ReplaceTarget=2194(int length, string text)
1004
1005# Replace the target text with the argument text after \d processing.
8e54aaed 1006# Text is counted so it can contain NULs.
65ec6247
RD
1007# Looks for \d where d is between 1 and 9 and replaces these with the strings
1008# matched in the last search operation which were surrounded by \( and \).
1009# Returns the length of the replacement text including any change
1010# caused by processing the \d patterns.
1011fun int ReplaceTargetRE=2195(int length, string text)
1012
1013# Search for a counted string in the target and set the target to the found
8e54aaed 1014# range. Text is counted so it can contain NULs.
65ec6247
RD
1015# Returns length of range or -1 for failure in which case target is not moved.
1016fun int SearchInTarget=2197(int length, string text)
1017
a834585d 1018# Set the search flags used by SearchInTarget.
65ec6247
RD
1019set void SetSearchFlags=2198(int flags,)
1020
a834585d 1021# Get the search flags used by SearchInTarget.
65ec6247
RD
1022get int GetSearchFlags=2199(,)
1023
bfabd11a
RD
1024# Show a call tip containing a definition near position pos.
1025fun void CallTipShow=2200(position pos, string definition)
1026
1027# Remove the call tip from the screen.
1028fun void CallTipCancel=2201(,)
1029
1030# Is there an active call tip?
1031fun bool CallTipActive=2202(,)
1032
1033# Retrieve the position where the caret was before displaying the call tip.
1034fun position CallTipPosStart=2203(,)
1035
1036# Highlight a segment of the definition.
1037fun void CallTipSetHlt=2204(int start, int end)
1038
1039# Set the background colour for the call tip.
1040set void CallTipSetBack=2205(colour back,)
1041
9e730a78
RD
1042# Set the foreground colour for the call tip.
1043set void CallTipSetFore=2206(colour fore,)
1044
1045# Set the foreground colour for the highlighted part of the call tip.
1046set void CallTipSetForeHlt=2207(colour fore,)
1047
b8193d80
RD
1048# Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
1049set void CallTipUseStyle=2212(int tabSize,)
1050
1dcf666d
RD
1051# Set position of calltip, above or below text.
1052set void CallTipSetPosition=2213(bool above,)
1053
bfabd11a
RD
1054# Find the display line of a document line taking hidden lines into account.
1055fun int VisibleFromDocLine=2220(int line,)
1056
1057# Find the document line of a display line taking hidden lines into account.
1058fun int DocLineFromVisible=2221(int lineDisplay,)
1059
1e9bafca
RD
1060# The number of display lines needed to wrap a document line
1061fun int WrapCount=2235(int line,)
1062
a834585d 1063enu FoldLevel=SC_FOLDLEVEL
bfabd11a
RD
1064val SC_FOLDLEVELBASE=0x400
1065val SC_FOLDLEVELWHITEFLAG=0x1000
1066val SC_FOLDLEVELHEADERFLAG=0x2000
1067val SC_FOLDLEVELNUMBERMASK=0x0FFF
1068
1069# Set the fold level of a line.
1070# This encodes an integer level along with flags indicating whether the
1071# line is a header and whether it is effectively white space.
1072set void SetFoldLevel=2222(int line, int level)
1073
1074# Retrieve the fold level of a line.
1075get int GetFoldLevel=2223(int line,)
1076
1077# Find the last child line of a header line.
d134f170 1078get int GetLastChild=2224(int line, int level)
bfabd11a
RD
1079
1080# Find the parent line of a child line.
1081get int GetFoldParent=2225(int line,)
1082
1083# Make a range of lines visible.
1084fun void ShowLines=2226(int lineStart, int lineEnd)
1085
1086# Make a range of lines invisible.
1087fun void HideLines=2227(int lineStart, int lineEnd)
1088
1089# Is a line visible?
1090get bool GetLineVisible=2228(int line,)
1091
1dcf666d
RD
1092# Are all lines visible?
1093get bool GetAllLinesVisible=2236(,)
1094
bfabd11a
RD
1095# Show the children of a header line.
1096set void SetFoldExpanded=2229(int line, bool expanded)
1097
1098# Is a header line expanded?
1099get bool GetFoldExpanded=2230(int line,)
1100
1101# Switch a header line between expanded and contracted.
1102fun void ToggleFold=2231(int line,)
1103
1104# Ensure a particular line is visible by expanding any header line hiding it.
1105fun void EnsureVisible=2232(int line,)
1106
9e730a78
RD
1107enu FoldFlag=SC_FOLDFLAG_
1108val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002
1109val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004
1110val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008
1111val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010
1112val SC_FOLDFLAG_LEVELNUMBERS=0x0040
9e730a78
RD
1113
1114# Set some style options for folding.
1dcf666d 1115set void SetFoldFlags=2233(int flags,)
bfabd11a 1116
65ec6247
RD
1117# Ensure a particular line is visible by expanding any header line hiding it.
1118# Use the currently set visibility policy to determine which range to display.
1119fun void EnsureVisibleEnforcePolicy=2234(int line,)
1120
a834585d 1121# Sets whether a tab pressed when caret is within indentation indents.
65ec6247
RD
1122set void SetTabIndents=2260(bool tabIndents,)
1123
1124# Does a tab pressed when caret is within indentation indent?
1125get bool GetTabIndents=2261(,)
1126
a834585d 1127# Sets whether a backspace pressed when caret is within indentation unindents.
65ec6247
RD
1128set void SetBackSpaceUnIndents=2262(bool bsUnIndents,)
1129
1130# Does a backspace pressed when caret is within indentation unindent?
1131get bool GetBackSpaceUnIndents=2263(,)
1132
1133val SC_TIME_FOREVER=10000000
1134
a834585d 1135# Sets the time the mouse must sit still to generate a mouse dwell event.
65ec6247
RD
1136set void SetMouseDwellTime=2264(int periodMilliseconds,)
1137
a834585d 1138# Retrieve the time the mouse must sit still to generate a mouse dwell event.
65ec6247
RD
1139get int GetMouseDwellTime=2265(,)
1140
a834585d 1141# Get position of start of word.
1a2fb4cd
RD
1142fun int WordStartPosition=2266(position pos, bool onlyWordCharacters)
1143
a834585d 1144# Get position of end of word.
1a2fb4cd
RD
1145fun int WordEndPosition=2267(position pos, bool onlyWordCharacters)
1146
a834585d 1147enu Wrap=SC_WRAP_
1a2fb4cd
RD
1148val SC_WRAP_NONE=0
1149val SC_WRAP_WORD=1
1e9bafca 1150val SC_WRAP_CHAR=2
1a2fb4cd 1151
a834585d 1152# Sets whether text is word wrapped.
1a2fb4cd
RD
1153set void SetWrapMode=2268(int mode,)
1154
a834585d 1155# Retrieve whether text is word wrapped.
1a2fb4cd
RD
1156get int GetWrapMode=2269(,)
1157
591d01be
RD
1158enu WrapVisualFlag=SC_WRAPVISUALFLAG_
1159val SC_WRAPVISUALFLAG_NONE=0x0000
1160val SC_WRAPVISUALFLAG_END=0x0001
1161val SC_WRAPVISUALFLAG_START=0x0002
1dcf666d 1162val SC_WRAPVISUALFLAG_MARGIN=0x0004
591d01be
RD
1163
1164# Set the display mode of visual flags for wrapped lines.
1165set void SetWrapVisualFlags=2460(int wrapVisualFlags,)
1166
1167# Retrive the display mode of visual flags for wrapped lines.
1168get int GetWrapVisualFlags=2461(,)
1169
1170enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_
1171val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000
1172val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001
1173val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002
1174
1175# Set the location of visual flags for wrapped lines.
1176set void SetWrapVisualFlagsLocation=2462(int wrapVisualFlagsLocation,)
1177
1178# Retrive the location of visual flags for wrapped lines.
1179get int GetWrapVisualFlagsLocation=2463(,)
1180
1181# Set the start indent for wrapped lines.
1182set void SetWrapStartIndent=2464(int indent,)
1183
1184# Retrive the start indent for wrapped lines.
1185get int GetWrapStartIndent=2465(,)
1186
9e96e16f
RD
1187enu WrapIndentMode=SC_WRAPINDENT_
1188val SC_WRAPINDENT_FIXED=0
1189val SC_WRAPINDENT_SAME=1
1190val SC_WRAPINDENT_INDENT=2
1191
1192# Sets how wrapped sublines are placed. Default is fixed.
1193set void SetWrapIndentMode=2472(int mode,)
1194
1195# Retrieve how wrapped sublines are placed. Default is fixed.
1196get int GetWrapIndentMode=2473(,)
1197
a834585d 1198enu LineCache=SC_CACHE_
1a2fb4cd
RD
1199val SC_CACHE_NONE=0
1200val SC_CACHE_CARET=1
1201val SC_CACHE_PAGE=2
1202val SC_CACHE_DOCUMENT=3
1203
a834585d 1204# Sets the degree of caching of layout information.
1a2fb4cd
RD
1205set void SetLayoutCache=2272(int mode,)
1206
a834585d 1207# Retrieve the degree of caching of layout information.
1a2fb4cd
RD
1208get int GetLayoutCache=2273(,)
1209
a834585d
RD
1210# Sets the document width assumed for scrolling.
1211set void SetScrollWidth=2274(int pixelWidth,)
1212
1213# Retrieve the document width assumed for scrolling.
1214get int GetScrollWidth=2275(,)
1215
7e0c58e9
RD
1216# Sets whether the maximum width line displayed is used to set scroll width.
1217set void SetScrollWidthTracking=2516(bool tracking,)
1218
1219# Retrieve whether the scroll width tracks wide lines.
1220get bool GetScrollWidthTracking=2517(,)
1221
a834585d 1222# Measure the pixel width of some text in a particular style.
8e54aaed 1223# NUL terminated text argument.
a834585d
RD
1224# Does not handle tab or control characters.
1225fun int TextWidth=2276(int style, string text)
1226
1227# Sets the scroll range so that maximum scroll position has
1228# the last line at the bottom of the view (default).
1229# Setting this to false allows scrolling one page below the last line.
1230set void SetEndAtLastLine=2277(bool endAtLastLine,)
1231
1232# Retrieve whether the maximum scroll position has the last
1233# line at the bottom of the view.
1e9bafca 1234get bool GetEndAtLastLine=2278(,)
a834585d
RD
1235
1236# Retrieve the height of a particular line of text in pixels.
1237fun int TextHeight=2279(int line,)
1238
9e730a78
RD
1239# Show or hide the vertical scroll bar.
1240set void SetVScrollBar=2280(bool show,)
1241
1242# Is the vertical scroll bar visible?
1243get bool GetVScrollBar=2281(,)
1244
1245# Append a string to the end of the document without changing the selection.
1246fun void AppendText=2282(int length, string text)
1247
0926a312 1248# Is drawing done in two phases with backgrounds drawn before foregrounds?
9e730a78
RD
1249get bool GetTwoPhaseDraw=2283(,)
1250
1251# In twoPhaseDraw mode, drawing is performed in two phases, first the background
1252# and then the foreground. This avoids chopping off characters that overlap the next run.
1253set void SetTwoPhaseDraw=2284(bool twoPhase,)
1254
9e96e16f
RD
1255# Control font anti-aliasing.
1256
1257enu FontQuality=SC_EFF_
1258val SC_EFF_QUALITY_MASK=0xF
1259val SC_EFF_QUALITY_DEFAULT=0
1260val SC_EFF_QUALITY_NON_ANTIALIASED=1
1261val SC_EFF_QUALITY_ANTIALIASED=2
1262val SC_EFF_QUALITY_LCD_OPTIMIZED=3
1263
1264# Choose the quality level for text from the FontQuality enumeration.
1265set void SetFontQuality=2611(int fontQuality,)
1266
1267# Retrieve the quality level for text.
1268get int GetFontQuality=2612(,)
1269
1270# Scroll so that a display line is at the top of the display.
1271set void SetFirstVisibleLine=2613(int lineDisplay,)
1272
1dcf666d
RD
1273enu MultiPaste=SC_MULTIPASTE_
1274val SC_MULTIPASTE_ONCE=0
1275val SC_MULTIPASTE_EACH=1
1276
1277# Change the effect of pasting when there are multiple selections.
1278set void SetMultiPaste=2614(int multiPaste,)
1279
1280# Retrieve the effect of pasting when there are multiple selections..
1281get int GetMultiPaste=2615(,)
1282
1283# Retrieve the value of a tag from a regular expression search.
1284get int GetTag=2616(int tagNumber, stringresult tagValue)
1285
9e730a78
RD
1286# Make the target range start and end be the same as the selection range start and end.
1287fun void TargetFromSelection=2287(,)
1288
1289# Join the lines in the target.
1290fun void LinesJoin=2288(,)
1291
1292# Split the lines in the target into lines that are less wide than pixelWidth
1293# where possible.
1294fun void LinesSplit=2289(int pixelWidth,)
1295
1296# Set the colours used as a chequerboard pattern in the fold margin
1297fun void SetFoldMarginColour=2290(bool useSetting, colour back)
1298fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore)
1299
1300## New messages go here
1301
d134f170 1302## Start of key messages
bfabd11a
RD
1303# Move caret down one line.
1304fun void LineDown=2300(,)
1305
1306# Move caret down one line extending selection to new caret position.
1307fun void LineDownExtend=2301(,)
1308
1309# Move caret up one line.
1310fun void LineUp=2302(,)
1311
1312# Move caret up one line extending selection to new caret position.
1313fun void LineUpExtend=2303(,)
1314
1315# Move caret left one character.
1316fun void CharLeft=2304(,)
1317
1318# Move caret left one character extending selection to new caret position.
1319fun void CharLeftExtend=2305(,)
1320
1321# Move caret right one character.
1322fun void CharRight=2306(,)
1323
1324# Move caret right one character extending selection to new caret position.
1325fun void CharRightExtend=2307(,)
1326
1327# Move caret left one word.
1328fun void WordLeft=2308(,)
1329
1330# Move caret left one word extending selection to new caret position.
1331fun void WordLeftExtend=2309(,)
1332
1333# Move caret right one word.
1334fun void WordRight=2310(,)
1335
1336# Move caret right one word extending selection to new caret position.
1337fun void WordRightExtend=2311(,)
1338
1339# Move caret to first position on line.
1340fun void Home=2312(,)
1341
1342# Move caret to first position on line extending selection to new caret position.
1343fun void HomeExtend=2313(,)
1344
1345# Move caret to last position on line.
1346fun void LineEnd=2314(,)
1347
1348# Move caret to last position on line extending selection to new caret position.
1349fun void LineEndExtend=2315(,)
1350
1351# Move caret to first position in document.
1352fun void DocumentStart=2316(,)
1353
1354# Move caret to first position in document extending selection to new caret position.
1355fun void DocumentStartExtend=2317(,)
1356
1357# Move caret to last position in document.
1358fun void DocumentEnd=2318(,)
1359
1360# Move caret to last position in document extending selection to new caret position.
1361fun void DocumentEndExtend=2319(,)
1362
1363# Move caret one page up.
1364fun void PageUp=2320(,)
1365
1366# Move caret one page up extending selection to new caret position.
1367fun void PageUpExtend=2321(,)
1368
1369# Move caret one page down.
1370fun void PageDown=2322(,)
1371
1372# Move caret one page down extending selection to new caret position.
1373fun void PageDownExtend=2323(,)
1374
1375# Switch from insert to overtype mode or the reverse.
1376fun void EditToggleOvertype=2324(,)
1377
1378# Cancel any modes such as call tip or auto-completion list display.
1379fun void Cancel=2325(,)
1380
1381# Delete the selection or if no selection, the character before the caret.
1382fun void DeleteBack=2326(,)
1383
a834585d 1384# If selection is empty or all on one line replace the selection with a tab character.
bfabd11a
RD
1385# If more than one line selected, indent the lines.
1386fun void Tab=2327(,)
1387
1388# Dedent the selected lines.
1389fun void BackTab=2328(,)
1390
1391# Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
1392fun void NewLine=2329(,)
1393
1394# Insert a Form Feed character.
1395fun void FormFeed=2330(,)
1396
d25f5fbb 1397# Move caret to before first visible character on line.
bfabd11a
RD
1398# If already there move to first character on line.
1399fun void VCHome=2331(,)
1400
1401# Like VCHome but extending selection to new caret position.
1402fun void VCHomeExtend=2332(,)
1403
1404# Magnify the displayed text by increasing the sizes by 1 point.
1405fun void ZoomIn=2333(,)
1406
1407# Make the displayed text smaller by decreasing the sizes by 1 point.
1408fun void ZoomOut=2334(,)
1409
1410# Delete the word to the left of the caret.
1411fun void DelWordLeft=2335(,)
1412
1413# Delete the word to the right of the caret.
1414fun void DelWordRight=2336(,)
1415
7e0c58e9
RD
1416# Delete the word to the right of the caret, but not the trailing non-word characters.
1417fun void DelWordRightEnd=2518(,)
1418
bfabd11a
RD
1419# Cut the line containing the caret.
1420fun void LineCut=2337(,)
1421
1422# Delete the line containing the caret.
1423fun void LineDelete=2338(,)
1424
1425# Switch the current line with the previous.
1426fun void LineTranspose=2339(,)
1427
9e730a78
RD
1428# Duplicate the current line.
1429fun void LineDuplicate=2404(,)
1430
bfabd11a
RD
1431# Transform the selection to lower case.
1432fun void LowerCase=2340(,)
1433
1434# Transform the selection to upper case.
1435fun void UpperCase=2341(,)
1436
1437# Scroll the document down, keeping the caret visible.
1438fun void LineScrollDown=2342(,)
1439
1440# Scroll the document up, keeping the caret visible.
1441fun void LineScrollUp=2343(,)
1442
1a2fb4cd 1443# Delete the selection or if no selection, the character before the caret.
a834585d 1444# Will not delete the character before at the start of a line.
1a2fb4cd
RD
1445fun void DeleteBackNotLine=2344(,)
1446
f114b858
RD
1447# Move caret to first position on display line.
1448fun void HomeDisplay=2345(,)
1449
2b5f62a0 1450# Move caret to first position on display line extending selection to
f114b858
RD
1451# new caret position.
1452fun void HomeDisplayExtend=2346(,)
1453
1454# Move caret to last position on display line.
1455fun void LineEndDisplay=2347(,)
1456
2b5f62a0 1457# Move caret to last position on display line extending selection to new
f114b858
RD
1458# caret position.
1459fun void LineEndDisplayExtend=2348(,)
1460
9e730a78
RD
1461# These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
1462# except they behave differently when word-wrap is enabled:
1463# They go first to the start / end of the display line, like (Home|LineEnd)Display
1464# The difference is that, the cursor is already at the point, it goes on to the start
8e54aaed 1465# or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
9e730a78
RD
1466
1467fun void HomeWrap=2349(,)
1468fun void HomeWrapExtend=2450(,)
1469fun void LineEndWrap=2451(,)
1470fun void LineEndWrapExtend=2452(,)
1471fun void VCHomeWrap=2453(,)
1472fun void VCHomeWrapExtend=2454(,)
1473
e14d10b0
RD
1474# Copy the line containing the caret.
1475fun void LineCopy=2455(,)
1476
a834585d 1477# Move the caret inside current view if it's not there already.
65ec6247
RD
1478fun void MoveCaretInsideView=2401(,)
1479
9e96e16f 1480# How many characters are on a line, including end of line characters?
bfabd11a
RD
1481fun int LineLength=2350(int line,)
1482
1483# Highlight the characters at two positions.
a834585d 1484fun void BraceHighlight=2351(position pos1, position pos2)
bfabd11a 1485
1dcf666d
RD
1486# Use specified indicator to highlight matching braces instead of changing their style.
1487fun void BraceHighlightIndicator=2498(bool useBraceHighlightIndicator, int indicator)
1488
bfabd11a
RD
1489# Highlight the character at a position indicating there is no matching brace.
1490fun void BraceBadLight=2352(position pos,)
1491
1dcf666d
RD
1492# Use specified indicator to highlight non matching brace instead of changing its style.
1493fun void BraceBadLightIndicator=2499(bool useBraceBadLightIndicator, int indicator)
1494
bfabd11a
RD
1495# Find the position of a matching brace or INVALID_POSITION if no match.
1496fun position BraceMatch=2353(position pos,)
1497
a834585d 1498# Are the end of line characters visible?
bfabd11a
RD
1499get bool GetViewEOL=2355(,)
1500
a834585d 1501# Make the end of line characters visible or invisible.
bfabd11a
RD
1502set void SetViewEOL=2356(bool visible,)
1503
1504# Retrieve a pointer to the document object.
1505get int GetDocPointer=2357(,)
1506
1507# Change the document object used.
8e54aaed 1508set void SetDocPointer=2358(, int pointer)
bfabd11a
RD
1509
1510# Set which document modification events are sent to the container.
1511set void SetModEventMask=2359(int mask,)
1512
a834585d 1513enu EdgeVisualStyle=EDGE_
bfabd11a
RD
1514val EDGE_NONE=0
1515val EDGE_LINE=1
1516val EDGE_BACKGROUND=2
1517
1518# Retrieve the column number which text should be kept within.
1519get int GetEdgeColumn=2360(,)
1520
d25f5fbb
RD
1521# Set the column number of the edge.
1522# If text goes past the edge then it is highlighted.
bfabd11a
RD
1523set void SetEdgeColumn=2361(int column,)
1524
1525# Retrieve the edge highlight mode.
1526get int GetEdgeMode=2362(,)
1527
1528# The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1529# goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1530set void SetEdgeMode=2363(int mode,)
1531
1532# Retrieve the colour used in edge indication.
1533get colour GetEdgeColour=2364(,)
1534
1535# Change the colour used in edge indication.
1536set void SetEdgeColour=2365(colour edgeColour,)
1537
1538# Sets the current caret position to be the search anchor.
1539fun void SearchAnchor=2366(,)
1540
1541# Find some text starting at the search anchor.
65ec6247 1542# Does not ensure the selection is visible.
bfabd11a
RD
1543fun int SearchNext=2367(int flags, string text)
1544
1545# Find some text starting at the search anchor and moving backwards.
65ec6247 1546# Does not ensure the selection is visible.
bfabd11a
RD
1547fun int SearchPrev=2368(int flags, string text)
1548
bfabd11a
RD
1549# Retrieves the number of lines completely visible.
1550get int LinesOnScreen=2370(,)
1551
1552# Set whether a pop up menu is displayed automatically when the user presses
1553# the wrong mouse button.
1554fun void UsePopUp=2371(bool allowPopUp,)
1555
a834585d 1556# Is the selection rectangular? The alternative is the more common stream selection.
bfabd11a
RD
1557get bool SelectionIsRectangle=2372(,)
1558
d25f5fbb 1559# Set the zoom level. This number of points is added to the size of all fonts.
bfabd11a
RD
1560# It may be positive to magnify or negative to reduce.
1561set void SetZoom=2373(int zoom,)
1562# Retrieve the zoom level.
1563get int GetZoom=2374(,)
1564
d25f5fbb 1565# Create a new document object.
d134f170
RD
1566# Starts with reference count of 1 and not selected into editor.
1567fun int CreateDocument=2375(,)
bfabd11a 1568# Extend life of document.
d134f170 1569fun void AddRefDocument=2376(, int doc)
bfabd11a 1570# Release a reference to the document, deleting document if it fades to black.
d134f170
RD
1571fun void ReleaseDocument=2377(, int doc)
1572
1573# Get which document modification events are sent to the container.
1574get int GetModEventMask=2378(,)
bfabd11a 1575
a834585d 1576# Change internal focus flag.
65ec6247 1577set void SetFocus=2380(bool focus,)
a834585d 1578# Get internal focus flag.
65ec6247
RD
1579get bool GetFocus=2381(,)
1580
9e96e16f
RD
1581enu Status=SC_STATUS_
1582val SC_STATUS_OK=0
1583val SC_STATUS_FAILURE=1
1584val SC_STATUS_BADALLOC=2
1585
a834585d 1586# Change error status - 0 = OK.
65ec6247 1587set void SetStatus=2382(int statusCode,)
a834585d 1588# Get error status.
65ec6247
RD
1589get int GetStatus=2383(,)
1590
a834585d 1591# Set whether the mouse is captured when its button is pressed.
65ec6247 1592set void SetMouseDownCaptures=2384(bool captures,)
a834585d 1593# Get whether mouse gets captured.
65ec6247
RD
1594get bool GetMouseDownCaptures=2385(,)
1595
a834585d 1596enu CursorShape=SC_CURSOR
65ec6247 1597val SC_CURSORNORMAL=-1
1dcf666d 1598val SC_CURSORARROW=2
9e730a78 1599val SC_CURSORWAIT=4
1dcf666d 1600val SC_CURSORREVERSEARROW=7
a834585d 1601# Sets the cursor to one of the SC_CURSOR* values.
65ec6247 1602set void SetCursor=2386(int cursorType,)
a834585d 1603# Get cursor type.
65ec6247
RD
1604get int GetCursor=2387(,)
1605
1a2fb4cd 1606# Change the way control characters are displayed:
a834585d 1607# If symbol is < 32, keep the drawn way, else, use the given character.
1a2fb4cd 1608set void SetControlCharSymbol=2388(int symbol,)
a834585d 1609# Get the way control characters are displayed.
1a2fb4cd
RD
1610get int GetControlCharSymbol=2389(,)
1611
a834585d 1612# Move to the previous change in capitalisation.
65ec6247 1613fun void WordPartLeft=2390(,)
a834585d
RD
1614# Move to the previous change in capitalisation extending selection
1615# to new caret position.
65ec6247 1616fun void WordPartLeftExtend=2391(,)
a834585d 1617# Move to the change next in capitalisation.
65ec6247 1618fun void WordPartRight=2392(,)
a834585d
RD
1619# Move to the next change in capitalisation extending selection
1620# to new caret position.
65ec6247
RD
1621fun void WordPartRightExtend=2393(,)
1622
a834585d 1623# Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
65ec6247
RD
1624val VISIBLE_SLOP=0x01
1625val VISIBLE_STRICT=0x04
a834585d
RD
1626# Set the way the display area is determined when a particular line
1627# is to be moved to by Find, FindNext, GotoLine, etc.
65ec6247
RD
1628fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop)
1629
a834585d 1630# Delete back from the current position to the start of the line.
65ec6247
RD
1631fun void DelLineLeft=2395(,)
1632
a834585d 1633# Delete forwards from the current position to the end of the line.
65ec6247
RD
1634fun void DelLineRight=2396(,)
1635
1dcf666d 1636# Get and Set the xOffset (ie, horizontal scroll position).
1a2fb4cd
RD
1637set void SetXOffset=2397(int newOffset,)
1638get int GetXOffset=2398(,)
1639
8e54aaed 1640# Set the last x chosen value to be the caret x position.
9e730a78
RD
1641fun void ChooseCaretX=2399(,)
1642
bfabd11a
RD
1643# Set the focus to this Scintilla widget.
1644fun void GrabFocus=2400(,)
1645
9e96e16f 1646enu CaretPolicy=CARET_
a834585d
RD
1647# Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
1648# If CARET_SLOP is set, we can define a slop value: caretSlop.
1649# This value defines an unwanted zone (UZ) where the caret is... unwanted.
1650# This zone is defined as a number of pixels near the vertical margins,
1651# and as a number of lines near the horizontal margins.
1652# By keeping the caret away from the edges, it is seen within its context,
1653# so it is likely that the identifier that the caret is on can be completely seen,
1654# and that the current line is seen with some of the lines following it which are
1655# often dependent on that line.
1656val CARET_SLOP=0x01
1657# If CARET_STRICT is set, the policy is enforced... strictly.
1658# The caret is centred on the display if slop is not set,
1659# and cannot go in the UZ if slop is set.
1660val CARET_STRICT=0x04
1661# If CARET_JUMPS is set, the display is moved more energetically
1662# so the caret can move in the same direction longer before the policy is applied again.
1663val CARET_JUMPS=0x10
1664# If CARET_EVEN is not set, instead of having symmetrical UZs,
1665# the left and bottom UZs are extended up to right and top UZs respectively.
1666# This way, we favour the displaying of useful information: the begining of lines,
1667# where most code reside, and the lines after the caret, eg. the body of a function.
1668val CARET_EVEN=0x08
1669
1dcf666d 1670# Set the way the caret is kept visible when going sideways.
a834585d
RD
1671# The exclusion zone is given in pixels.
1672fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop)
1673
1674# Set the way the line the caret is on is kept visible.
1675# The exclusion zone is given in lines.
1676fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop)
1677
9e730a78
RD
1678# Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
1679set void SetPrintWrapMode=2406(int mode,)
1680
8e54aaed 1681# Is printing line wrapped?
9e730a78
RD
1682get int GetPrintWrapMode=2407(,)
1683
1684# Set a fore colour for active hotspots.
1685set void SetHotspotActiveFore=2410(bool useSetting, colour fore)
1686
7e0c58e9
RD
1687# Get the fore colour for active hotspots.
1688get colour GetHotspotActiveFore=2494(,)
1689
9e730a78
RD
1690# Set a back colour for active hotspots.
1691set void SetHotspotActiveBack=2411(bool useSetting, colour back)
1692
7e0c58e9
RD
1693# Get the back colour for active hotspots.
1694get colour GetHotspotActiveBack=2495(,)
1695
9e730a78
RD
1696# Enable / Disable underlining active hotspots.
1697set void SetHotspotActiveUnderline=2412(bool underline,)
1698
7e0c58e9
RD
1699# Get whether underlining for active hotspots.
1700get bool GetHotspotActiveUnderline=2496(,)
1701
8e54aaed
RD
1702# Limit hotspots to single line so hotspots on two lines don't merge.
1703set void SetHotspotSingleLine=2421(bool singleLine,)
1704
7e0c58e9
RD
1705# Get the HotspotSingleLine property
1706get bool GetHotspotSingleLine=2497(,)
1707
8e54aaed 1708# Move caret between paragraphs (delimited by empty lines).
9e730a78
RD
1709fun void ParaDown=2413(,)
1710fun void ParaDownExtend=2414(,)
1711fun void ParaUp=2415(,)
1712fun void ParaUpExtend=2416(,)
1713
e14d10b0
RD
1714# Given a valid document position, return the previous position taking code
1715# page into account. Returns 0 if passed 0.
1716fun position PositionBefore=2417(position pos,)
1717
1718# Given a valid document position, return the next position taking code
1719# page into account. Maximum value returned is the last position in the document.
1720fun position PositionAfter=2418(position pos,)
1721
1722# Copy a range of text to the clipboard. Positions are clipped into the document.
1723fun void CopyRange=2419(position start, position end)
1724
1725# Copy argument text to the clipboard.
1726fun void CopyText=2420(int length, string text)
1727
8e54aaed
RD
1728enu SelectionMode=SC_SEL_
1729val SC_SEL_STREAM=0
1730val SC_SEL_RECTANGLE=1
1731val SC_SEL_LINES=2
9e96e16f 1732val SC_SEL_THIN=3
8e54aaed 1733
9e96e16f 1734# Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
8e54aaed
RD
1735# by lines (SC_SEL_LINES).
1736set void SetSelectionMode=2422(int mode,)
1737
1738# Get the mode of the current selection.
1739get int GetSelectionMode=2423(,)
1740
1741# Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
1742fun position GetLineSelStartPosition=2424(int line,)
1743
1744# Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
1745fun position GetLineSelEndPosition=2425(int line,)
1746
1747## RectExtended rectangular selection moves
1748# Move caret down one line, extending rectangular selection to new caret position.
1749fun void LineDownRectExtend=2426(,)
1750
1751# Move caret up one line, extending rectangular selection to new caret position.
1752fun void LineUpRectExtend=2427(,)
1753
1754# Move caret left one character, extending rectangular selection to new caret position.
1755fun void CharLeftRectExtend=2428(,)
1756
1757# Move caret right one character, extending rectangular selection to new caret position.
1758fun void CharRightRectExtend=2429(,)
1759
1760# Move caret to first position on line, extending rectangular selection to new caret position.
1761fun void HomeRectExtend=2430(,)
1762
1763# Move caret to before first visible character on line.
1764# If already there move to first character on line.
1765# In either case, extend rectangular selection to new caret position.
1766fun void VCHomeRectExtend=2431(,)
1767
1768# Move caret to last position on line, extending rectangular selection to new caret position.
1769fun void LineEndRectExtend=2432(,)
1770
1771# Move caret one page up, extending rectangular selection to new caret position.
1772fun void PageUpRectExtend=2433(,)
1773
1774# Move caret one page down, extending rectangular selection to new caret position.
1775fun void PageDownRectExtend=2434(,)
1776
1777
1778# Move caret to top of page, or one page up if already at top of page.
1779fun void StutteredPageUp=2435(,)
1780
1781# Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
1782fun void StutteredPageUpExtend=2436(,)
1783
1784# Move caret to bottom of page, or one page down if already at bottom of page.
1785fun void StutteredPageDown=2437(,)
1786
1787# Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
1788fun void StutteredPageDownExtend=2438(,)
1789
1790
1791# Move caret left one word, position cursor at end of word.
1792fun void WordLeftEnd=2439(,)
1793
1794# Move caret left one word, position cursor at end of word, extending selection to new caret position.
1795fun void WordLeftEndExtend=2440(,)
1796
1797# Move caret right one word, position cursor at end of word.
1798fun void WordRightEnd=2441(,)
1799
1800# Move caret right one word, position cursor at end of word, extending selection to new caret position.
1801fun void WordRightEndExtend=2442(,)
1802
1803# Set the set of characters making up whitespace for when moving or selecting by word.
1804# Should be called after SetWordChars.
1805set void SetWhitespaceChars=2443(, string characters)
1806
1dcf666d
RD
1807# Get the set of characters making up whitespace for when moving or selecting by word.
1808get int GetWhitespaceChars=2647(, stringresult characters)
1809
1810# Set the set of characters making up punctuation characters
1811# Should be called after SetWordChars.
1812set void SetPunctuationChars=2648(, string characters)
1813
1814# Get the set of characters making up punctuation characters
1815get int GetPunctuationChars=2649(, stringresult characters)
1816
8e54aaed
RD
1817# Reset the set of characters for whitespace and word characters to the defaults.
1818fun void SetCharsDefault=2444(,)
1819
1820# Get currently selected item position in the auto-completion list
1dcf666d 1821get int AutoCGetCurrent=2445(,)
8e54aaed 1822
9e96e16f
RD
1823# Get currently selected item text in the auto-completion list
1824# Returns the length of the item text
1dcf666d
RD
1825get int AutoCGetCurrentText=2610(, stringresult s)
1826
1827enu CaseInsensitiveBehaviour=SC_CASEINSENSITIVEBEHAVIOUR_
1828val SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE=0
1829val SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE=1
1830
1831# Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
1832set void AutoCSetCaseInsensitiveBehaviour=2634(int behaviour,)
1833
1834# Get auto-completion case insensitive behaviour.
1835get int AutoCGetCaseInsensitiveBehaviour=2635(,)
9e96e16f 1836
591d01be
RD
1837# Enlarge the document to a particular size of text bytes.
1838fun void Allocate=2446(int bytes,)
1839
a33203cb
RD
1840# Returns the target converted to UTF8.
1841# Return the length in bytes.
1842fun int TargetAsUTF8=2447(, stringresult s)
1843
1844# Set the length of the utf8 argument for calling EncodedFromUTF8.
1e9bafca 1845# Set to -1 and the string will be measured to the first nul.
a33203cb
RD
1846fun void SetLengthForEncode=2448(int bytes,)
1847
1848# Translates a UTF8 string into the document encoding.
1849# Return the length of the result in bytes.
1850# On error return 0.
1851fun int EncodedFromUTF8=2449(string utf8, stringresult encoded)
1852
1e9bafca 1853# Find the position of a column on a line taking into account tabs and
a33203cb
RD
1854# multi-byte characters. If beyond end of line, return line end position.
1855fun int FindColumn=2456(int line, int column)
1856
1e9bafca 1857# Can the caret preferred x position only be changed by explicit movement commands?
1dcf666d 1858get int GetCaretSticky=2457(,)
1e9bafca
RD
1859
1860# Stop the caret preferred x position changing when the user types.
1dcf666d
RD
1861set void SetCaretSticky=2458(int useCaretStickyBehaviour,)
1862
1863enu CaretSticky=SC_CARETSTICKY_
1864val SC_CARETSTICKY_OFF=0
1865val SC_CARETSTICKY_ON=1
1866val SC_CARETSTICKY_WHITESPACE=2
1e9bafca
RD
1867
1868# Switch between sticky and non-sticky: meant to be bound to a key.
1869fun void ToggleCaretSticky=2459(,)
1870
1871# Enable/Disable convert-on-paste for line endings
1872set void SetPasteConvertEndings=2467(bool convert,)
1873
1874# Get convert-on-paste setting
1875get bool GetPasteConvertEndings=2468(,)
1876
1877# Duplicate the selection. If selection empty duplicate the line containing the caret.
1878fun void SelectionDuplicate=2469(,)
1879
b8193d80
RD
1880val SC_ALPHA_TRANSPARENT=0
1881val SC_ALPHA_OPAQUE=255
1882val SC_ALPHA_NOALPHA=256
1883
1884# Set background alpha of the caret line.
1885set void SetCaretLineBackAlpha=2470(int alpha,)
1886
1887# Get the background alpha of the caret line.
1888get int GetCaretLineBackAlpha=2471(,)
1889
7e0c58e9
RD
1890enu CaretStyle=CARETSTYLE_
1891val CARETSTYLE_INVISIBLE=0
1892val CARETSTYLE_LINE=1
1893val CARETSTYLE_BLOCK=2
1894
1895# Set the style of the caret to be drawn.
1896set void SetCaretStyle=2512(int caretStyle,)
1897
1898# Returns the current style of the caret.
1899get int GetCaretStyle=2513(,)
1900
1901# Set the indicator used for IndicatorFillRange and IndicatorClearRange
1902set void SetIndicatorCurrent=2500(int indicator,)
1903
1904# Get the current indicator
1905get int GetIndicatorCurrent=2501(,)
1906
1907# Set the value used for IndicatorFillRange
1908set void SetIndicatorValue=2502(int value,)
1909
1dcf666d 1910# Get the current indicator value
7e0c58e9
RD
1911get int GetIndicatorValue=2503(,)
1912
1913# Turn a indicator on over a range.
1914fun void IndicatorFillRange=2504(int position, int fillLength)
1915
1916# Turn a indicator off over a range.
1917fun void IndicatorClearRange=2505(int position, int clearLength)
1918
1919# Are any indicators present at position?
1920fun int IndicatorAllOnFor=2506(int position,)
1921
1922# What value does a particular indicator have at at a position?
1923fun int IndicatorValueAt=2507(int indicator, int position)
1924
1925# Where does a particular indicator start?
1926fun int IndicatorStart=2508(int indicator, int position)
1927
1928# Where does a particular indicator end?
1929fun int IndicatorEnd=2509(int indicator, int position)
1930
1931# Set number of entries in position cache
1932set void SetPositionCache=2514(int size,)
1933
1934# How many entries are allocated to the position cache?
1935get int GetPositionCache=2515(,)
1936
9e96e16f
RD
1937# Copy the selection, if selection empty copy the line with the caret
1938fun void CopyAllowLine=2519(,)
1939
1940# Compact the document buffer and return a read-only pointer to the
1941# characters in the document.
1942get int GetCharacterPointer=2520(,)
1943
1dcf666d
RD
1944# Return a read-only pointer to a range of characters in the document.
1945# May move the gap so that the range is contiguous, but will only move up
1946# to rangeLength bytes.
1947get int GetRangePointer=2643(int position, int rangeLength)
1948
1949# Return a position which, to avoid performance costs, should not be within
1950# the range of a call to GetRangePointer.
1951get position GetGapPosition=2644(,)
1952
9e96e16f
RD
1953# Always interpret keyboard input as Unicode
1954set void SetKeysUnicode=2521(bool keysUnicode,)
1955
1956# Are keys always interpreted as Unicode?
1957get bool GetKeysUnicode=2522(,)
1958
1959# Set the alpha fill colour of the given indicator.
1960set void IndicSetAlpha=2523(int indicator, int alpha)
1961
1962# Get the alpha fill colour of the given indicator.
1963get int IndicGetAlpha=2524(int indicator,)
1964
1dcf666d
RD
1965# Set the alpha outline colour of the given indicator.
1966set void IndicSetOutlineAlpha=2558(int indicator, int alpha)
1967
1968# Get the alpha outline colour of the given indicator.
1969get int IndicGetOutlineAlpha=2559(int indicator,)
1970
9e96e16f
RD
1971# Set extra ascent for each line
1972set void SetExtraAscent=2525(int extraAscent,)
1973
1974# Get extra ascent for each line
1975get int GetExtraAscent=2526(,)
1976
1977# Set extra descent for each line
1978set void SetExtraDescent=2527(int extraDescent,)
1979
1980# Get extra descent for each line
1981get int GetExtraDescent=2528(,)
1982
1983# Which symbol was defined for markerNumber with MarkerDefine
1984fun int MarkerSymbolDefined=2529(int markerNumber,)
1985
1986# Set the text in the text margin for a line
1987set void MarginSetText=2530(int line, string text)
1988
1989# Get the text in the text margin for a line
1990get int MarginGetText=2531(int line, stringresult text)
1991
1992# Set the style number for the text margin for a line
1993set void MarginSetStyle=2532(int line, int style)
1994
1995# Get the style number for the text margin for a line
1996get int MarginGetStyle=2533(int line,)
1997
1998# Set the style in the text margin for a line
1999set void MarginSetStyles=2534(int line, string styles)
2000
2001# Get the styles in the text margin for a line
2002get int MarginGetStyles=2535(int line, stringresult styles)
2003
2004# Clear the margin text on all lines
2005fun void MarginTextClearAll=2536(,)
2006
2007# Get the start of the range of style numbers used for margin text
2008set void MarginSetStyleOffset=2537(int style,)
2009
2010# Get the start of the range of style numbers used for margin text
2011get int MarginGetStyleOffset=2538(,)
2012
1dcf666d
RD
2013enu MarginOption=SC_MARGINOPTION_
2014val SC_MARGINOPTION_NONE=0
2015val SC_MARGINOPTION_SUBLINESELECT=1
2016
2017# Set the margin options.
2018set void SetMarginOptions=2539(int marginOptions,)
2019
2020# Get the margin options.
2021get int GetMarginOptions=2557(,)
2022
9e96e16f
RD
2023# Set the annotation text for a line
2024set void AnnotationSetText=2540(int line, string text)
2025
2026# Get the annotation text for a line
2027get int AnnotationGetText=2541(int line, stringresult text)
2028
2029# Set the style number for the annotations for a line
2030set void AnnotationSetStyle=2542(int line, int style)
2031
2032# Get the style number for the annotations for a line
2033get int AnnotationGetStyle=2543(int line,)
2034
2035# Set the annotation styles for a line
2036set void AnnotationSetStyles=2544(int line, string styles)
2037
2038# Get the annotation styles for a line
2039get int AnnotationGetStyles=2545(int line, stringresult styles)
2040
2041# Get the number of annotation lines for a line
2042get int AnnotationGetLines=2546(int line,)
2043
2044# Clear the annotations from all lines
2045fun void AnnotationClearAll=2547(,)
2046
2047enu AnnotationVisible=ANNOTATION_
2048val ANNOTATION_HIDDEN=0
2049val ANNOTATION_STANDARD=1
2050val ANNOTATION_BOXED=2
2051
2052# Set the visibility for the annotations for a view
2053set void AnnotationSetVisible=2548(int visible,)
2054
2055# Get the visibility for the annotations for a view
2056get int AnnotationGetVisible=2549(,)
2057
2058# Get the start of the range of style numbers used for annotations
2059set void AnnotationSetStyleOffset=2550(int style,)
2060
2061# Get the start of the range of style numbers used for annotations
2062get int AnnotationGetStyleOffset=2551(,)
2063
2064val UNDO_MAY_COALESCE=1
2065
2066# Add a container action to the undo stack
2067fun void AddUndoAction=2560(int token, int flags)
2068
2069# Find the position of a character from a point within the window.
2070fun position CharPositionFromPoint=2561(int x, int y)
2071
2072# Find the position of a character from a point within the window.
2073# Return INVALID_POSITION if not close to text.
2074fun position CharPositionFromPointClose=2562(int x, int y)
2075
2076# Set whether multiple selections can be made
2077set void SetMultipleSelection=2563(bool multipleSelection,)
2078
2079# Whether multiple selections can be made
2080get bool GetMultipleSelection=2564(,)
2081
2082# Set whether typing can be performed into multiple selections
2083set void SetAdditionalSelectionTyping=2565(bool additionalSelectionTyping,)
2084
2085# Whether typing can be performed into multiple selections
2086get bool GetAdditionalSelectionTyping=2566(,)
2087
2088# Set whether additional carets will blink
2089set void SetAdditionalCaretsBlink=2567(bool additionalCaretsBlink,)
2090
2091# Whether additional carets will blink
2092get bool GetAdditionalCaretsBlink=2568(,)
2093
2094# Set whether additional carets are visible
2095set void SetAdditionalCaretsVisible=2608(bool additionalCaretsBlink,)
2096
2097# Whether additional carets are visible
2098get bool GetAdditionalCaretsVisible=2609(,)
2099
2100# How many selections are there?
2101get int GetSelections=2570(,)
2102
2103# Clear selections to a single empty stream selection
2104fun void ClearSelections=2571(,)
2105
2106# Set a simple selection
1dcf666d 2107fun int SetSelection=2572(int caret, int anchor)
9e96e16f
RD
2108
2109# Add a selection
1dcf666d 2110fun int AddSelection=2573(int caret, int anchor)
9e96e16f
RD
2111
2112# Set the main selection
2113set void SetMainSelection=2574(int selection,)
2114
2115# Which selection is the main selection
2116get int GetMainSelection=2575(,)
2117
2118set void SetSelectionNCaret=2576(int selection, position pos)
2119get position GetSelectionNCaret=2577(int selection,)
2120set void SetSelectionNAnchor=2578(int selection, position posAnchor)
2121get position GetSelectionNAnchor=2579(int selection,)
2122set void SetSelectionNCaretVirtualSpace=2580(int selection, int space)
2123get int GetSelectionNCaretVirtualSpace=2581(int selection,)
2124set void SetSelectionNAnchorVirtualSpace=2582(int selection, int space)
2125get int GetSelectionNAnchorVirtualSpace=2583(int selection,)
2126
2127# Sets the position that starts the selection - this becomes the anchor.
2128set void SetSelectionNStart=2584(int selection, position pos)
2129
2130# Returns the position at the start of the selection.
2131get position GetSelectionNStart=2585(int selection,)
2132
2133# Sets the position that ends the selection - this becomes the currentPosition.
1dcf666d 2134set void SetSelectionNEnd=2586(int selection, position pos)
9e96e16f
RD
2135
2136# Returns the position at the end of the selection.
2137get position GetSelectionNEnd=2587(int selection,)
2138
2139set void SetRectangularSelectionCaret=2588(position pos,)
2140get position GetRectangularSelectionCaret=2589(,)
2141set void SetRectangularSelectionAnchor=2590(position posAnchor,)
2142get position GetRectangularSelectionAnchor=2591(,)
2143set void SetRectangularSelectionCaretVirtualSpace=2592(int space,)
2144get int GetRectangularSelectionCaretVirtualSpace=2593(,)
2145set void SetRectangularSelectionAnchorVirtualSpace=2594(int space,)
2146get int GetRectangularSelectionAnchorVirtualSpace=2595(,)
2147
2148enu VirtualSpace=SCVS_
2149val SCVS_NONE=0
2150val SCVS_RECTANGULARSELECTION=1
2151val SCVS_USERACCESSIBLE=2
2152
2153set void SetVirtualSpaceOptions=2596(int virtualSpaceOptions,)
2154get int GetVirtualSpaceOptions=2597(,)
2155
2156# On GTK+, allow selecting the modifier key to use for mouse-based
2157# rectangular selection. Often the window manager requires Alt+Mouse Drag
2158# for moving windows.
2159# Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
2160
2161set void SetRectangularSelectionModifier=2598(int modifier,)
2162
2163# Get the modifier key used for rectangular selection.
2164get int GetRectangularSelectionModifier=2599(,)
2165
2166# Set the foreground colour of additional selections.
2167# Must have previously called SetSelFore with non-zero first argument for this to have an effect.
2168set void SetAdditionalSelFore=2600(colour fore,)
2169
2170# Set the background colour of additional selections.
2171# Must have previously called SetSelBack with non-zero first argument for this to have an effect.
2172set void SetAdditionalSelBack=2601(colour back,)
2173
2174# Set the alpha of the selection.
2175set void SetAdditionalSelAlpha=2602(int alpha,)
2176
2177# Get the alpha of the selection.
2178get int GetAdditionalSelAlpha=2603(,)
2179
2180# Set the foreground colour of additional carets.
2181set void SetAdditionalCaretFore=2604(colour fore,)
2182
2183# Get the foreground colour of additional carets.
2184get colour GetAdditionalCaretFore=2605(,)
2185
2186# Set the main selection to the next selection.
2187fun void RotateSelection=2606(,)
2188
2189# Swap that caret and anchor of the main selection.
2190fun void SwapMainAnchorCaret=2607(,)
2191
1dcf666d
RD
2192# Indicate that the internal state of a lexer has changed over a range and therefore
2193# there may be a need to redraw.
2194fun int ChangeLexerState=2617(position start, position end)
2195
2196# Find the next line at or after lineStart that is a contracted fold header line.
2197# Return -1 when no more lines.
2198fun int ContractedFoldNext=2618(int lineStart,)
2199
2200# Centre current line in window.
2201fun void VerticalCentreCaret=2619(,)
2202
2203# Move the selected lines up one line, shifting the line above after the selection
2204fun void MoveSelectedLinesUp=2620(,)
2205
2206# Move the selected lines down one line, shifting the line below before the selection
2207fun void MoveSelectedLinesDown=2621(,)
2208
2209# Set the identifier reported as idFrom in notification messages.
2210set void SetIdentifier=2622(int identifier,)
2211
2212# Get the identifier.
2213get int GetIdentifier=2623(,)
2214
2215# Set the width for future RGBA image data.
2216set void RGBAImageSetWidth=2624(int width,)
2217
2218# Set the height for future RGBA image data.
2219set void RGBAImageSetHeight=2625(int height,)
2220
2221# Define a marker from RGBA data.
2222# It has the width and height from RGBAImageSetWidth/Height
2223fun void MarkerDefineRGBAImage=2626(int markerNumber, string pixels)
2224
2225# Register an RGBA image for use in autocompletion lists.
2226# It has the width and height from RGBAImageSetWidth/Height
2227fun void RegisterRGBAImage=2627(int type, string pixels)
2228
2229# Scroll to start of document.
2230fun void ScrollToStart=2628(,)
2231
2232# Scroll to end of document.
2233fun void ScrollToEnd=2629(,)
2234
2235val SC_TECHNOLOGY_DEFAULT=0
2236val SC_TECHNOLOGY_DIRECTWRITE=1
2237
2238# Set the technology used.
2239set void SetTechnology=2630(int technology,)
2240
2241# Get the tech.
2242get int GetTechnology=2631(,)
2243
2244# Create an ILoader*.
2245fun int CreateLoader=2632(int bytes,)
2246
2247# On OS X, show a find indicator.
2248fun void FindIndicatorShow=2640(position start, position end)
2249
2250# On OS X, flash a find indicator, then fade out.
2251fun void FindIndicatorFlash=2641(position start, position end)
2252
2253# On OS X, hide the find indicator.
2254fun void FindIndicatorHide=2642(,)
2255
bfabd11a
RD
2256# Start notifying the container of all key presses and commands.
2257fun void StartRecord=3001(,)
2258
2259# Stop notifying the container of all key presses and commands.
2260fun void StopRecord=3002(,)
2261
d25f5fbb 2262# Set the lexing language of the document.
bfabd11a
RD
2263set void SetLexer=4001(int lexer,)
2264
d25f5fbb 2265# Retrieve the lexing language of the document.
bfabd11a
RD
2266get int GetLexer=4002(,)
2267
2268# Colourise a segment of the document using the current lexing language.
2269fun void Colourise=4003(position start, position end)
2270
2271# Set up a value that may be used by a lexer for some optional feature.
2272set void SetProperty=4004(string key, string value)
2273
88a8b04e
RD
2274# Maximum value of keywordSet parameter of SetKeyWords.
2275val KEYWORDSET_MAX=8
2276
bfabd11a
RD
2277# Set up the key words used by the lexer.
2278set void SetKeyWords=4005(int keywordSet, string keyWords)
2279
65ec6247
RD
2280# Set the lexing language of the document based on string name.
2281set void SetLexerLanguage=4006(, string language)
2282
8e54aaed 2283# Load a lexer library (dll / so).
9e730a78
RD
2284fun void LoadLexerLibrary=4007(, string path)
2285
1e9bafca 2286# Retrieve a "property" value previously set with SetProperty.
1dcf666d 2287get int GetProperty=4008(string key, stringresult buf)
1e9bafca
RD
2288
2289# Retrieve a "property" value previously set with SetProperty,
2290# with "$()" variable replacement on returned buffer.
1dcf666d 2291get int GetPropertyExpanded=4009(string key, stringresult buf)
1e9bafca
RD
2292
2293# Retrieve a "property" value previously set with SetProperty,
2294# interpreted as an int AFTER any "$()" variable replacement.
2295get int GetPropertyInt=4010(string key,)
2296
2297# Retrieve the number of bits the current lexer needs for styling.
2298get int GetStyleBitsNeeded=4011(,)
2299
9e96e16f
RD
2300# Retrieve the name of the lexer.
2301# Return the length of the text.
2302get int GetLexerLanguage=4012(, stringresult text)
2303
1dcf666d
RD
2304# For private communication between an application and a known lexer.
2305fun int PrivateLexerCall=4013(int operation, int pointer)
2306
2307# Retrieve a '\n' separated list of properties understood by the current lexer.
2308fun int PropertyNames=4014(, stringresult names)
2309
2310enu TypeProperty=SC_TYPE_
2311val SC_TYPE_BOOLEAN=0
2312val SC_TYPE_INTEGER=1
2313val SC_TYPE_STRING=2
2314
2315# Retrieve the type of a property.
2316fun int PropertyType=4015(string name,)
2317
2318# Describe a property.
2319fun int DescribeProperty=4016(string name, stringresult description)
2320
2321# Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
2322fun int DescribeKeyWordSets=4017(, stringresult descriptions)
2323
d134f170 2324# Notifications
a834585d 2325# Type of modification and the action which caused the modification.
d134f170
RD
2326# These are defined as a bit mask to make it easy to specify which notifications are wanted.
2327# One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
1dcf666d 2328enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_MULTISTEPUNDOREDO SC_LASTSTEPINUNDOREDO SC_MULTILINEUNDOREDO SC_STARTACTION SC_MODEVENTMASKALL
bfabd11a
RD
2329val SC_MOD_INSERTTEXT=0x1
2330val SC_MOD_DELETETEXT=0x2
2331val SC_MOD_CHANGESTYLE=0x4
2332val SC_MOD_CHANGEFOLD=0x8
2333val SC_PERFORMED_USER=0x10
2334val SC_PERFORMED_UNDO=0x20
2335val SC_PERFORMED_REDO=0x40
1e9bafca 2336val SC_MULTISTEPUNDOREDO=0x80
bfabd11a
RD
2337val SC_LASTSTEPINUNDOREDO=0x100
2338val SC_MOD_CHANGEMARKER=0x200
2339val SC_MOD_BEFOREINSERT=0x400
2340val SC_MOD_BEFOREDELETE=0x800
1e9bafca 2341val SC_MULTILINEUNDOREDO=0x1000
7e0c58e9
RD
2342val SC_STARTACTION=0x2000
2343val SC_MOD_CHANGEINDICATOR=0x4000
2344val SC_MOD_CHANGELINESTATE=0x8000
9e96e16f
RD
2345val SC_MOD_CHANGEMARGIN=0x10000
2346val SC_MOD_CHANGEANNOTATION=0x20000
2347val SC_MOD_CONTAINER=0x40000
1dcf666d
RD
2348val SC_MOD_LEXERSTATE=0x80000
2349val SC_MODEVENTMASKALL=0xFFFFF
2350
2351enu Update=SC_UPDATE_
2352val SC_UPDATE_CONTENT=0x1
2353val SC_UPDATE_SELECTION=0x2
2354val SC_UPDATE_V_SCROLL=0x4
2355val SC_UPDATE_H_SCROLL=0x8
d134f170
RD
2356
2357# For compatibility, these go through the COMMAND notification rather than NOTIFY
a834585d
RD
2358# and should have had exactly the same values as the EN_* constants.
2359# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*
2360# As clients depend on these constants, this will not be changed.
d134f170
RD
2361val SCEN_CHANGE=768
2362val SCEN_SETFOCUS=512
2363val SCEN_KILLFOCUS=256
2364
a834585d
RD
2365# Symbolic key codes and modifier flags.
2366# ASCII and other printable characters below 256.
2367# Extended keys above 300.
d134f170 2368
a834585d 2369enu Keys=SCK_
d134f170
RD
2370val SCK_DOWN=300
2371val SCK_UP=301
2372val SCK_LEFT=302
2373val SCK_RIGHT=303
2374val SCK_HOME=304
2375val SCK_END=305
2376val SCK_PRIOR=306
2377val SCK_NEXT=307
2378val SCK_DELETE=308
2379val SCK_INSERT=309
2380val SCK_ESCAPE=7
2381val SCK_BACK=8
2382val SCK_TAB=9
2383val SCK_RETURN=13
2384val SCK_ADD=310
2385val SCK_SUBTRACT=311
2386val SCK_DIVIDE=312
7e0c58e9
RD
2387val SCK_WIN=313
2388val SCK_RWIN=314
2389val SCK_MENU=315
d134f170 2390
a834585d 2391enu KeyMod=SCMOD_
1e9bafca 2392val SCMOD_NORM=0
d134f170
RD
2393val SCMOD_SHIFT=1
2394val SCMOD_CTRL=2
2395val SCMOD_ALT=4
9e96e16f 2396val SCMOD_SUPER=8
1dcf666d 2397val SCMOD_META=16
bfabd11a
RD
2398
2399################################################
d134f170 2400# For SciLexer.h
a834585d 2401enu Lexer=SCLEX_
bfabd11a
RD
2402val SCLEX_CONTAINER=0
2403val SCLEX_NULL=1
2404val SCLEX_PYTHON=2
2405val SCLEX_CPP=3
2406val SCLEX_HTML=4
2407val SCLEX_XML=5
2408val SCLEX_PERL=6
2409val SCLEX_SQL=7
2410val SCLEX_VB=8
2411val SCLEX_PROPERTIES=9
2412val SCLEX_ERRORLIST=10
2413val SCLEX_MAKEFILE=11
2414val SCLEX_BATCH=12
2415val SCLEX_XCODE=13
2416val SCLEX_LATEX=14
d134f170
RD
2417val SCLEX_LUA=15
2418val SCLEX_DIFF=16
65ec6247
RD
2419val SCLEX_CONF=17
2420val SCLEX_PASCAL=18
2421val SCLEX_AVE=19
2422val SCLEX_ADA=20
2423val SCLEX_LISP=21
2424val SCLEX_RUBY=22
2425val SCLEX_EIFFEL=23
2426val SCLEX_EIFFELKW=24
2427val SCLEX_TCL=25
b8b0e402 2428val SCLEX_NNCRONTAB=26
1a2fb4cd
RD
2429val SCLEX_BULLANT=27
2430val SCLEX_VBSCRIPT=28
1a2fb4cd
RD
2431val SCLEX_BAAN=31
2432val SCLEX_MATLAB=32
a834585d 2433val SCLEX_SCRIPTOL=33
9e730a78
RD
2434val SCLEX_ASM=34
2435val SCLEX_CPPNOCASE=35
2436val SCLEX_FORTRAN=36
2437val SCLEX_F77=37
2438val SCLEX_CSS=38
2439val SCLEX_POV=39
e14d10b0
RD
2440val SCLEX_LOUT=40
2441val SCLEX_ESCRIPT=41
88a8b04e
RD
2442val SCLEX_PS=42
2443val SCLEX_NSIS=43
2444val SCLEX_MMIXAL=44
8e54aaed
RD
2445val SCLEX_CLW=45
2446val SCLEX_CLWNOCASE=46
2447val SCLEX_LOT=47
2448val SCLEX_YAML=48
2449val SCLEX_TEX=49
2450val SCLEX_METAPOST=50
2451val SCLEX_POWERBASIC=51
2452val SCLEX_FORTH=52
2453val SCLEX_ERLANG=53
2454val SCLEX_OCTAVE=54
591d01be
RD
2455val SCLEX_MSSQL=55
2456val SCLEX_VERILOG=56
2457val SCLEX_KIX=57
2458val SCLEX_GUI4CLI=58
2459val SCLEX_SPECMAN=59
2460val SCLEX_AU3=60
2461val SCLEX_APDL=61
2462val SCLEX_BASH=62
a33203cb
RD
2463val SCLEX_ASN1=63
2464val SCLEX_VHDL=64
1e9bafca
RD
2465val SCLEX_CAML=65
2466val SCLEX_BLITZBASIC=66
2467val SCLEX_PUREBASIC=67
2468val SCLEX_HASKELL=68
2469val SCLEX_PHPSCRIPT=69
2470val SCLEX_TADS3=70
2471val SCLEX_REBOL=71
2472val SCLEX_SMALLTALK=72
2473val SCLEX_FLAGSHIP=73
2474val SCLEX_CSOUND=74
2475val SCLEX_FREEBASIC=75
b8193d80
RD
2476val SCLEX_INNOSETUP=76
2477val SCLEX_OPAL=77
2478val SCLEX_SPICE=78
7e0c58e9
RD
2479val SCLEX_D=79
2480val SCLEX_CMAKE=80
2481val SCLEX_GAP=81
2482val SCLEX_PLM=82
2483val SCLEX_PROGRESS=83
2484val SCLEX_ABAQUS=84
2485val SCLEX_ASYMPTOTE=85
2486val SCLEX_R=86
9e96e16f
RD
2487val SCLEX_MAGIK=87
2488val SCLEX_POWERSHELL=88
2489val SCLEX_MYSQL=89
2490val SCLEX_PO=90
2491val SCLEX_TAL=91
2492val SCLEX_COBOL=92
2493val SCLEX_TACL=93
2494val SCLEX_SORCUS=94
2495val SCLEX_POWERPRO=95
2496val SCLEX_NIMROD=96
2497val SCLEX_SML=97
2498val SCLEX_MARKDOWN=98
1dcf666d
RD
2499val SCLEX_TXT2TAGS=99
2500val SCLEX_A68K=100
2501val SCLEX_MODULA=101
2502val SCLEX_COFFEESCRIPT=102
2503val SCLEX_TCMD=103
2504val SCLEX_AVS=104
2505val SCLEX_ECL=105
2506val SCLEX_OSCRIPT=106
2507val SCLEX_VISUALPROLOG=107
5be7e07a 2508
65ec6247
RD
2509# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
2510# value assigned in sequence from SCLEX_AUTOMATIC+1.
2511val SCLEX_AUTOMATIC=1000
d134f170 2512# Lexical states for SCLEX_PYTHON
a834585d 2513lex Python=SCLEX_PYTHON SCE_P_
9e96e16f 2514lex Nimrod=SCLEX_NIMROD SCE_P_
bfabd11a
RD
2515val SCE_P_DEFAULT=0
2516val SCE_P_COMMENTLINE=1
2517val SCE_P_NUMBER=2
2518val SCE_P_STRING=3
2519val SCE_P_CHARACTER=4
2520val SCE_P_WORD=5
2521val SCE_P_TRIPLE=6
2522val SCE_P_TRIPLEDOUBLE=7
2523val SCE_P_CLASSNAME=8
2524val SCE_P_DEFNAME=9
2525val SCE_P_OPERATOR=10
2526val SCE_P_IDENTIFIER=11
2527val SCE_P_COMMENTBLOCK=12
2528val SCE_P_STRINGEOL=13
1e9bafca
RD
2529val SCE_P_WORD2=14
2530val SCE_P_DECORATOR=15
1a2fb4cd 2531# Lexical states for SCLEX_CPP
a834585d 2532lex Cpp=SCLEX_CPP SCE_C_
a834585d 2533lex BullAnt=SCLEX_BULLANT SCE_C_
bfabd11a
RD
2534val SCE_C_DEFAULT=0
2535val SCE_C_COMMENT=1
2536val SCE_C_COMMENTLINE=2
2537val SCE_C_COMMENTDOC=3
2538val SCE_C_NUMBER=4
2539val SCE_C_WORD=5
2540val SCE_C_STRING=6
2541val SCE_C_CHARACTER=7
2542val SCE_C_UUID=8
2543val SCE_C_PREPROCESSOR=9
2544val SCE_C_OPERATOR=10
2545val SCE_C_IDENTIFIER=11
2546val SCE_C_STRINGEOL=12
d134f170 2547val SCE_C_VERBATIM=13
65ec6247
RD
2548val SCE_C_REGEX=14
2549val SCE_C_COMMENTLINEDOC=15
2550val SCE_C_WORD2=16
b8b0e402
RD
2551val SCE_C_COMMENTDOCKEYWORD=17
2552val SCE_C_COMMENTDOCKEYWORDERROR=18
e14d10b0 2553val SCE_C_GLOBALCLASS=19
1dcf666d
RD
2554val SCE_C_STRINGRAW=20
2555val SCE_C_TRIPLEVERBATIM=21
2556val SCE_C_HASHQUOTEDSTRING=22
2557val SCE_C_PREPROCESSORCOMMENT=23
7e0c58e9
RD
2558# Lexical states for SCLEX_D
2559lex D=SCLEX_D SCE_D_
2560val SCE_D_DEFAULT=0
2561val SCE_D_COMMENT=1
2562val SCE_D_COMMENTLINE=2
2563val SCE_D_COMMENTDOC=3
2564val SCE_D_COMMENTNESTED=4
2565val SCE_D_NUMBER=5
2566val SCE_D_WORD=6
2567val SCE_D_WORD2=7
2568val SCE_D_WORD3=8
2569val SCE_D_TYPEDEF=9
2570val SCE_D_STRING=10
2571val SCE_D_STRINGEOL=11
2572val SCE_D_CHARACTER=12
2573val SCE_D_OPERATOR=13
2574val SCE_D_IDENTIFIER=14
2575val SCE_D_COMMENTLINEDOC=15
2576val SCE_D_COMMENTDOCKEYWORD=16
2577val SCE_D_COMMENTDOCKEYWORDERROR=17
9e96e16f
RD
2578val SCE_D_STRINGB=18
2579val SCE_D_STRINGR=19
2580val SCE_D_WORD5=20
2581val SCE_D_WORD6=21
2582val SCE_D_WORD7=22
b8193d80
RD
2583# Lexical states for SCLEX_TCL
2584lex TCL=SCLEX_TCL SCE_TCL_
2585val SCE_TCL_DEFAULT=0
2586val SCE_TCL_COMMENT=1
2587val SCE_TCL_COMMENTLINE=2
2588val SCE_TCL_NUMBER=3
2589val SCE_TCL_WORD_IN_QUOTE=4
2590val SCE_TCL_IN_QUOTE=5
2591val SCE_TCL_OPERATOR=6
2592val SCE_TCL_IDENTIFIER=7
2593val SCE_TCL_SUBSTITUTION=8
2594val SCE_TCL_SUB_BRACE=9
2595val SCE_TCL_MODIFIER=10
2596val SCE_TCL_EXPAND=11
2597val SCE_TCL_WORD=12
2598val SCE_TCL_WORD2=13
2599val SCE_TCL_WORD3=14
2600val SCE_TCL_WORD4=15
2601val SCE_TCL_WORD5=16
2602val SCE_TCL_WORD6=17
2603val SCE_TCL_WORD7=18
2604val SCE_TCL_WORD8=19
2605val SCE_TCL_COMMENT_BOX=20
2606val SCE_TCL_BLOCK_COMMENT=21
d134f170 2607# Lexical states for SCLEX_HTML, SCLEX_XML
1dcf666d
RD
2608lex HTML=SCLEX_HTML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
2609lex XML=SCLEX_XML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
2610lex ASP=SCLEX_ASP SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
2611lex PHP=SCLEX_PHP SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_
bfabd11a
RD
2612val SCE_H_DEFAULT=0
2613val SCE_H_TAG=1
2614val SCE_H_TAGUNKNOWN=2
2615val SCE_H_ATTRIBUTE=3
2616val SCE_H_ATTRIBUTEUNKNOWN=4
2617val SCE_H_NUMBER=5
2618val SCE_H_DOUBLESTRING=6
2619val SCE_H_SINGLESTRING=7
2620val SCE_H_OTHER=8
2621val SCE_H_COMMENT=9
2622val SCE_H_ENTITY=10
d134f170 2623# XML and ASP
bfabd11a
RD
2624val SCE_H_TAGEND=11
2625val SCE_H_XMLSTART=12
2626val SCE_H_XMLEND=13
2627val SCE_H_SCRIPT=14
2628val SCE_H_ASP=15
2629val SCE_H_ASPAT=16
d134f170
RD
2630val SCE_H_CDATA=17
2631val SCE_H_QUESTION=18
2632# More HTML
2633val SCE_H_VALUE=19
65ec6247
RD
2634# X-Code
2635val SCE_H_XCCOMMENT=20
2636# SGML
b8b0e402
RD
2637val SCE_H_SGML_DEFAULT=21
2638val SCE_H_SGML_COMMAND=22
2639val SCE_H_SGML_1ST_PARAM=23
2640val SCE_H_SGML_DOUBLESTRING=24
2641val SCE_H_SGML_SIMPLESTRING=25
2642val SCE_H_SGML_ERROR=26
2643val SCE_H_SGML_SPECIAL=27
2644val SCE_H_SGML_ENTITY=28
2645val SCE_H_SGML_COMMENT=29
2646val SCE_H_SGML_1ST_PARAM_COMMENT=30
2647val SCE_H_SGML_BLOCK_DEFAULT=31
d134f170 2648# Embedded Javascript
bfabd11a
RD
2649val SCE_HJ_START=40
2650val SCE_HJ_DEFAULT=41
2651val SCE_HJ_COMMENT=42
2652val SCE_HJ_COMMENTLINE=43
2653val SCE_HJ_COMMENTDOC=44
2654val SCE_HJ_NUMBER=45
2655val SCE_HJ_WORD=46
2656val SCE_HJ_KEYWORD=47
2657val SCE_HJ_DOUBLESTRING=48
2658val SCE_HJ_SINGLESTRING=49
2659val SCE_HJ_SYMBOLS=50
2660val SCE_HJ_STRINGEOL=51
65ec6247 2661val SCE_HJ_REGEX=52
d134f170 2662# ASP Javascript
bfabd11a
RD
2663val SCE_HJA_START=55
2664val SCE_HJA_DEFAULT=56
2665val SCE_HJA_COMMENT=57
2666val SCE_HJA_COMMENTLINE=58
2667val SCE_HJA_COMMENTDOC=59
2668val SCE_HJA_NUMBER=60
2669val SCE_HJA_WORD=61
2670val SCE_HJA_KEYWORD=62
2671val SCE_HJA_DOUBLESTRING=63
2672val SCE_HJA_SINGLESTRING=64
2673val SCE_HJA_SYMBOLS=65
2674val SCE_HJA_STRINGEOL=66
65ec6247 2675val SCE_HJA_REGEX=67
d134f170 2676# Embedded VBScript
bfabd11a
RD
2677val SCE_HB_START=70
2678val SCE_HB_DEFAULT=71
2679val SCE_HB_COMMENTLINE=72
2680val SCE_HB_NUMBER=73
2681val SCE_HB_WORD=74
2682val SCE_HB_STRING=75
2683val SCE_HB_IDENTIFIER=76
2684val SCE_HB_STRINGEOL=77
d134f170 2685# ASP VBScript
bfabd11a
RD
2686val SCE_HBA_START=80
2687val SCE_HBA_DEFAULT=81
2688val SCE_HBA_COMMENTLINE=82
2689val SCE_HBA_NUMBER=83
2690val SCE_HBA_WORD=84
2691val SCE_HBA_STRING=85
2692val SCE_HBA_IDENTIFIER=86
2693val SCE_HBA_STRINGEOL=87
d134f170 2694# Embedded Python
bfabd11a
RD
2695val SCE_HP_START=90
2696val SCE_HP_DEFAULT=91
2697val SCE_HP_COMMENTLINE=92
2698val SCE_HP_NUMBER=93
2699val SCE_HP_STRING=94
2700val SCE_HP_CHARACTER=95
2701val SCE_HP_WORD=96
2702val SCE_HP_TRIPLE=97
2703val SCE_HP_TRIPLEDOUBLE=98
2704val SCE_HP_CLASSNAME=99
2705val SCE_HP_DEFNAME=100
2706val SCE_HP_OPERATOR=101
2707val SCE_HP_IDENTIFIER=102
591d01be
RD
2708# PHP
2709val SCE_HPHP_COMPLEX_VARIABLE=104
d134f170 2710# ASP Python
bfabd11a
RD
2711val SCE_HPA_START=105
2712val SCE_HPA_DEFAULT=106
2713val SCE_HPA_COMMENTLINE=107
2714val SCE_HPA_NUMBER=108
2715val SCE_HPA_STRING=109
2716val SCE_HPA_CHARACTER=110
2717val SCE_HPA_WORD=111
2718val SCE_HPA_TRIPLE=112
2719val SCE_HPA_TRIPLEDOUBLE=113
2720val SCE_HPA_CLASSNAME=114
2721val SCE_HPA_DEFNAME=115
2722val SCE_HPA_OPERATOR=116
2723val SCE_HPA_IDENTIFIER=117
d134f170
RD
2724# PHP
2725val SCE_HPHP_DEFAULT=118
2726val SCE_HPHP_HSTRING=119
2727val SCE_HPHP_SIMPLESTRING=120
2728val SCE_HPHP_WORD=121
2729val SCE_HPHP_NUMBER=122
2730val SCE_HPHP_VARIABLE=123
2731val SCE_HPHP_COMMENT=124
2732val SCE_HPHP_COMMENTLINE=125
65ec6247
RD
2733val SCE_HPHP_HSTRING_VARIABLE=126
2734val SCE_HPHP_OPERATOR=127
d134f170 2735# Lexical states for SCLEX_PERL
a834585d 2736lex Perl=SCLEX_PERL SCE_PL_
bfabd11a 2737val SCE_PL_DEFAULT=0
65ec6247 2738val SCE_PL_ERROR=1
bfabd11a
RD
2739val SCE_PL_COMMENTLINE=2
2740val SCE_PL_POD=3
2741val SCE_PL_NUMBER=4
2742val SCE_PL_WORD=5
2743val SCE_PL_STRING=6
2744val SCE_PL_CHARACTER=7
2745val SCE_PL_PUNCTUATION=8
2746val SCE_PL_PREPROCESSOR=9
2747val SCE_PL_OPERATOR=10
2748val SCE_PL_IDENTIFIER=11
2749val SCE_PL_SCALAR=12
2750val SCE_PL_ARRAY=13
2751val SCE_PL_HASH=14
2752val SCE_PL_SYMBOLTABLE=15
1e9bafca 2753val SCE_PL_VARIABLE_INDEXER=16
bfabd11a
RD
2754val SCE_PL_REGEX=17
2755val SCE_PL_REGSUBST=18
2756val SCE_PL_LONGQUOTE=19
2757val SCE_PL_BACKTICKS=20
2758val SCE_PL_DATASECTION=21
65ec6247
RD
2759val SCE_PL_HERE_DELIM=22
2760val SCE_PL_HERE_Q=23
2761val SCE_PL_HERE_QQ=24
2762val SCE_PL_HERE_QX=25
2763val SCE_PL_STRING_Q=26
2764val SCE_PL_STRING_QQ=27
2765val SCE_PL_STRING_QX=28
2766val SCE_PL_STRING_QR=29
2767val SCE_PL_STRING_QW=30
1e9bafca 2768val SCE_PL_POD_VERB=31
7e0c58e9
RD
2769val SCE_PL_SUB_PROTOTYPE=40
2770val SCE_PL_FORMAT_IDENT=41
2771val SCE_PL_FORMAT=42
1dcf666d
RD
2772val SCE_PL_STRING_VAR=43
2773val SCE_PL_XLAT=44
2774val SCE_PL_REGEX_VAR=54
2775val SCE_PL_REGSUBST_VAR=55
2776val SCE_PL_BACKTICKS_VAR=57
2777val SCE_PL_HERE_QQ_VAR=61
2778val SCE_PL_HERE_QX_VAR=62
2779val SCE_PL_STRING_QQ_VAR=64
2780val SCE_PL_STRING_QX_VAR=65
2781val SCE_PL_STRING_QR_VAR=66
1e9bafca
RD
2782# Lexical states for SCLEX_RUBY
2783lex Ruby=SCLEX_RUBY SCE_RB_
2784val SCE_RB_DEFAULT=0
2785val SCE_RB_ERROR=1
2786val SCE_RB_COMMENTLINE=2
2787val SCE_RB_POD=3
2788val SCE_RB_NUMBER=4
2789val SCE_RB_WORD=5
2790val SCE_RB_STRING=6
2791val SCE_RB_CHARACTER=7
2792val SCE_RB_CLASSNAME=8
2793val SCE_RB_DEFNAME=9
2794val SCE_RB_OPERATOR=10
2795val SCE_RB_IDENTIFIER=11
2796val SCE_RB_REGEX=12
2797val SCE_RB_GLOBAL=13
2798val SCE_RB_SYMBOL=14
2799val SCE_RB_MODULE_NAME=15
2800val SCE_RB_INSTANCE_VAR=16
2801val SCE_RB_CLASS_VAR=17
2802val SCE_RB_BACKTICKS=18
2803val SCE_RB_DATASECTION=19
2804val SCE_RB_HERE_DELIM=20
2805val SCE_RB_HERE_Q=21
2806val SCE_RB_HERE_QQ=22
2807val SCE_RB_HERE_QX=23
2808val SCE_RB_STRING_Q=24
2809val SCE_RB_STRING_QQ=25
2810val SCE_RB_STRING_QX=26
2811val SCE_RB_STRING_QR=27
2812val SCE_RB_STRING_QW=28
2813val SCE_RB_WORD_DEMOTED=29
2814val SCE_RB_STDIN=30
2815val SCE_RB_STDOUT=31
2816val SCE_RB_STDERR=40
2817val SCE_RB_UPPER_BOUND=41
8e54aaed 2818# Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
a834585d
RD
2819lex VB=SCLEX_VB SCE_B_
2820lex VBScript=SCLEX_VBSCRIPT SCE_B_
8e54aaed 2821lex PowerBasic=SCLEX_POWERBASIC SCE_B_
a834585d
RD
2822val SCE_B_DEFAULT=0
2823val SCE_B_COMMENT=1
2824val SCE_B_NUMBER=2
2825val SCE_B_KEYWORD=3
2826val SCE_B_STRING=4
2827val SCE_B_PREPROCESSOR=5
2828val SCE_B_OPERATOR=6
2829val SCE_B_IDENTIFIER=7
2830val SCE_B_DATE=8
8e54aaed
RD
2831val SCE_B_STRINGEOL=9
2832val SCE_B_KEYWORD2=10
2833val SCE_B_KEYWORD3=11
2834val SCE_B_KEYWORD4=12
591d01be
RD
2835val SCE_B_CONSTANT=13
2836val SCE_B_ASM=14
1e9bafca
RD
2837val SCE_B_LABEL=15
2838val SCE_B_ERROR=16
2839val SCE_B_HEXNUMBER=17
2840val SCE_B_BINNUMBER=18
a834585d
RD
2841# Lexical states for SCLEX_PROPERTIES
2842lex Properties=SCLEX_PROPERTIES SCE_PROPS_
2843val SCE_PROPS_DEFAULT=0
2844val SCE_PROPS_COMMENT=1
2845val SCE_PROPS_SECTION=2
2846val SCE_PROPS_ASSIGNMENT=3
2847val SCE_PROPS_DEFVAL=4
b8193d80 2848val SCE_PROPS_KEY=5
d134f170 2849# Lexical states for SCLEX_LATEX
a834585d 2850lex LaTeX=SCLEX_LATEX SCE_L_
bfabd11a
RD
2851val SCE_L_DEFAULT=0
2852val SCE_L_COMMAND=1
2853val SCE_L_TAG=2
2854val SCE_L_MATH=3
2855val SCE_L_COMMENT=4
1dcf666d
RD
2856val SCE_L_TAG2=5
2857val SCE_L_MATH2=6
2858val SCE_L_COMMENT2=7
2859val SCE_L_VERBATIM=8
2860val SCE_L_SHORTCMD=9
2861val SCE_L_SPECIAL=10
2862val SCE_L_CMDOPT=11
2863val SCE_L_ERROR=12
d134f170 2864# Lexical states for SCLEX_LUA
a834585d 2865lex Lua=SCLEX_LUA SCE_LUA_
d134f170
RD
2866val SCE_LUA_DEFAULT=0
2867val SCE_LUA_COMMENT=1
2868val SCE_LUA_COMMENTLINE=2
2869val SCE_LUA_COMMENTDOC=3
2870val SCE_LUA_NUMBER=4
2871val SCE_LUA_WORD=5
2872val SCE_LUA_STRING=6
2873val SCE_LUA_CHARACTER=7
2874val SCE_LUA_LITERALSTRING=8
2875val SCE_LUA_PREPROCESSOR=9
2876val SCE_LUA_OPERATOR=10
2877val SCE_LUA_IDENTIFIER=11
2878val SCE_LUA_STRINGEOL=12
1a2fb4cd
RD
2879val SCE_LUA_WORD2=13
2880val SCE_LUA_WORD3=14
2881val SCE_LUA_WORD4=15
2882val SCE_LUA_WORD5=16
2883val SCE_LUA_WORD6=17
88a8b04e
RD
2884val SCE_LUA_WORD7=18
2885val SCE_LUA_WORD8=19
1dcf666d 2886val SCE_LUA_LABEL=20
65ec6247 2887# Lexical states for SCLEX_ERRORLIST
a834585d 2888lex ErrorList=SCLEX_ERRORLIST SCE_ERR_
d134f170
RD
2889val SCE_ERR_DEFAULT=0
2890val SCE_ERR_PYTHON=1
2891val SCE_ERR_GCC=2
2892val SCE_ERR_MS=3
2893val SCE_ERR_CMD=4
2894val SCE_ERR_BORLAND=5
2895val SCE_ERR_PERL=6
65ec6247
RD
2896val SCE_ERR_NET=7
2897val SCE_ERR_LUA=8
a834585d 2898val SCE_ERR_CTAG=9
65ec6247
RD
2899val SCE_ERR_DIFF_CHANGED=10
2900val SCE_ERR_DIFF_ADDITION=11
2901val SCE_ERR_DIFF_DELETION=12
2902val SCE_ERR_DIFF_MESSAGE=13
9e730a78
RD
2903val SCE_ERR_PHP=14
2904val SCE_ERR_ELF=15
2905val SCE_ERR_IFC=16
8e54aaed
RD
2906val SCE_ERR_IFORT=17
2907val SCE_ERR_ABSF=18
591d01be 2908val SCE_ERR_TIDY=19
a33203cb 2909val SCE_ERR_JAVA_STACK=20
7e0c58e9 2910val SCE_ERR_VALUE=21
65ec6247 2911# Lexical states for SCLEX_BATCH
a834585d 2912lex Batch=SCLEX_BATCH SCE_BAT_
65ec6247
RD
2913val SCE_BAT_DEFAULT=0
2914val SCE_BAT_COMMENT=1
2915val SCE_BAT_WORD=2
2916val SCE_BAT_LABEL=3
2917val SCE_BAT_HIDE=4
2918val SCE_BAT_COMMAND=5
2919val SCE_BAT_IDENTIFIER=6
2920val SCE_BAT_OPERATOR=7
1dcf666d
RD
2921# Lexical states for SCLEX_TCMD
2922lex TCMD=SCLEX_TCMD SCE_TCMD_
2923val SCE_TCMD_DEFAULT=0
2924val SCE_TCMD_COMMENT=1
2925val SCE_TCMD_WORD=2
2926val SCE_TCMD_LABEL=3
2927val SCE_TCMD_HIDE=4
2928val SCE_TCMD_COMMAND=5
2929val SCE_TCMD_IDENTIFIER=6
2930val SCE_TCMD_OPERATOR=7
2931val SCE_TCMD_ENVIRONMENT=8
2932val SCE_TCMD_EXPANSION=9
2933val SCE_TCMD_CLABEL=10
65ec6247 2934# Lexical states for SCLEX_MAKEFILE
a834585d 2935lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_
65ec6247
RD
2936val SCE_MAKE_DEFAULT=0
2937val SCE_MAKE_COMMENT=1
2938val SCE_MAKE_PREPROCESSOR=2
2939val SCE_MAKE_IDENTIFIER=3
2940val SCE_MAKE_OPERATOR=4
2941val SCE_MAKE_TARGET=5
2942val SCE_MAKE_IDEOL=9
a834585d
RD
2943# Lexical states for SCLEX_DIFF
2944lex Diff=SCLEX_DIFF SCE_DIFF_
2945val SCE_DIFF_DEFAULT=0
2946val SCE_DIFF_COMMENT=1
2947val SCE_DIFF_COMMAND=2
2948val SCE_DIFF_HEADER=3
2949val SCE_DIFF_POSITION=4
2950val SCE_DIFF_DELETED=5
2951val SCE_DIFF_ADDED=6
9e96e16f 2952val SCE_DIFF_CHANGED=7
a834585d
RD
2953# Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
2954lex Conf=SCLEX_CONF SCE_CONF_
65ec6247
RD
2955val SCE_CONF_DEFAULT=0
2956val SCE_CONF_COMMENT=1
2957val SCE_CONF_NUMBER=2
2958val SCE_CONF_IDENTIFIER=3
2959val SCE_CONF_EXTENSION=4
2960val SCE_CONF_PARAMETER=5
2961val SCE_CONF_STRING=6
2962val SCE_CONF_OPERATOR=7
2963val SCE_CONF_IP=8
2964val SCE_CONF_DIRECTIVE=9
a834585d
RD
2965# Lexical states for SCLEX_AVE, Avenue
2966lex Avenue=SCLEX_AVE SCE_AVE_
65ec6247
RD
2967val SCE_AVE_DEFAULT=0
2968val SCE_AVE_COMMENT=1
2969val SCE_AVE_NUMBER=2
2970val SCE_AVE_WORD=3
65ec6247
RD
2971val SCE_AVE_STRING=6
2972val SCE_AVE_ENUM=7
2973val SCE_AVE_STRINGEOL=8
2974val SCE_AVE_IDENTIFIER=9
2975val SCE_AVE_OPERATOR=10
9e730a78
RD
2976val SCE_AVE_WORD1=11
2977val SCE_AVE_WORD2=12
2978val SCE_AVE_WORD3=13
2979val SCE_AVE_WORD4=14
2980val SCE_AVE_WORD5=15
2981val SCE_AVE_WORD6=16
65ec6247 2982# Lexical states for SCLEX_ADA
a834585d 2983lex Ada=SCLEX_ADA SCE_ADA_
65ec6247 2984val SCE_ADA_DEFAULT=0
9e730a78
RD
2985val SCE_ADA_WORD=1
2986val SCE_ADA_IDENTIFIER=2
2987val SCE_ADA_NUMBER=3
2988val SCE_ADA_DELIMITER=4
65ec6247 2989val SCE_ADA_CHARACTER=5
9e730a78
RD
2990val SCE_ADA_CHARACTEREOL=6
2991val SCE_ADA_STRING=7
65ec6247 2992val SCE_ADA_STRINGEOL=8
9e730a78
RD
2993val SCE_ADA_LABEL=9
2994val SCE_ADA_COMMENTLINE=10
2995val SCE_ADA_ILLEGAL=11
1a2fb4cd 2996# Lexical states for SCLEX_BAAN
a834585d 2997lex Baan=SCLEX_BAAN SCE_BAAN_
1a2fb4cd
RD
2998val SCE_BAAN_DEFAULT=0
2999val SCE_BAAN_COMMENT=1
3000val SCE_BAAN_COMMENTDOC=2
3001val SCE_BAAN_NUMBER=3
3002val SCE_BAAN_WORD=4
3003val SCE_BAAN_STRING=5
3004val SCE_BAAN_PREPROCESSOR=6
3005val SCE_BAAN_OPERATOR=7
3006val SCE_BAAN_IDENTIFIER=8
3007val SCE_BAAN_STRINGEOL=9
3008val SCE_BAAN_WORD2=10
65ec6247 3009# Lexical states for SCLEX_LISP
a834585d 3010lex Lisp=SCLEX_LISP SCE_LISP_
65ec6247
RD
3011val SCE_LISP_DEFAULT=0
3012val SCE_LISP_COMMENT=1
3013val SCE_LISP_NUMBER=2
3014val SCE_LISP_KEYWORD=3
1e9bafca
RD
3015val SCE_LISP_KEYWORD_KW=4
3016val SCE_LISP_SYMBOL=5
65ec6247
RD
3017val SCE_LISP_STRING=6
3018val SCE_LISP_STRINGEOL=8
3019val SCE_LISP_IDENTIFIER=9
3020val SCE_LISP_OPERATOR=10
1e9bafca
RD
3021val SCE_LISP_SPECIAL=11
3022val SCE_LISP_MULTI_COMMENT=12
65ec6247 3023# Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
a834585d
RD
3024lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_
3025lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_
65ec6247
RD
3026val SCE_EIFFEL_DEFAULT=0
3027val SCE_EIFFEL_COMMENTLINE=1
3028val SCE_EIFFEL_NUMBER=2
3029val SCE_EIFFEL_WORD=3
3030val SCE_EIFFEL_STRING=4
3031val SCE_EIFFEL_CHARACTER=5
3032val SCE_EIFFEL_OPERATOR=6
3033val SCE_EIFFEL_IDENTIFIER=7
3034val SCE_EIFFEL_STRINGEOL=8
a834585d
RD
3035# Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
3036lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_
b8b0e402
RD
3037val SCE_NNCRONTAB_DEFAULT=0
3038val SCE_NNCRONTAB_COMMENT=1
3039val SCE_NNCRONTAB_TASK=2
3040val SCE_NNCRONTAB_SECTION=3
3041val SCE_NNCRONTAB_KEYWORD=4
3042val SCE_NNCRONTAB_MODIFIER=5
3043val SCE_NNCRONTAB_ASTERISK=6
3044val SCE_NNCRONTAB_NUMBER=7
3045val SCE_NNCRONTAB_STRING=8
3046val SCE_NNCRONTAB_ENVIRONMENT=9
3047val SCE_NNCRONTAB_IDENTIFIER=10
8e54aaed
RD
3048# Lexical states for SCLEX_FORTH (Forth Lexer)
3049lex Forth=SCLEX_FORTH SCE_FORTH_
3050val SCE_FORTH_DEFAULT=0
3051val SCE_FORTH_COMMENT=1
3052val SCE_FORTH_COMMENT_ML=2
3053val SCE_FORTH_IDENTIFIER=3
3054val SCE_FORTH_CONTROL=4
3055val SCE_FORTH_KEYWORD=5
3056val SCE_FORTH_DEFWORD=6
3057val SCE_FORTH_PREWORD1=7
3058val SCE_FORTH_PREWORD2=8
3059val SCE_FORTH_NUMBER=9
3060val SCE_FORTH_STRING=10
3061val SCE_FORTH_LOCALE=11
1a2fb4cd 3062# Lexical states for SCLEX_MATLAB
a834585d 3063lex MatLab=SCLEX_MATLAB SCE_MATLAB_
1a2fb4cd
RD
3064val SCE_MATLAB_DEFAULT=0
3065val SCE_MATLAB_COMMENT=1
3066val SCE_MATLAB_COMMAND=2
3067val SCE_MATLAB_NUMBER=3
3068val SCE_MATLAB_KEYWORD=4
8e54aaed 3069# single quoted string
1a2fb4cd
RD
3070val SCE_MATLAB_STRING=5
3071val SCE_MATLAB_OPERATOR=6
3072val SCE_MATLAB_IDENTIFIER=7
8e54aaed 3073val SCE_MATLAB_DOUBLEQUOTESTRING=8
a834585d
RD
3074# Lexical states for SCLEX_SCRIPTOL
3075lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_
3076val SCE_SCRIPTOL_DEFAULT=0
8e54aaed 3077val SCE_SCRIPTOL_WHITE=1
a834585d 3078val SCE_SCRIPTOL_COMMENTLINE=2
8e54aaed
RD
3079val SCE_SCRIPTOL_PERSISTENT=3
3080val SCE_SCRIPTOL_CSTYLE=4
3081val SCE_SCRIPTOL_COMMENTBLOCK=5
3082val SCE_SCRIPTOL_NUMBER=6
3083val SCE_SCRIPTOL_STRING=7
3084val SCE_SCRIPTOL_CHARACTER=8
3085val SCE_SCRIPTOL_STRINGEOL=9
3086val SCE_SCRIPTOL_KEYWORD=10
3087val SCE_SCRIPTOL_OPERATOR=11
3088val SCE_SCRIPTOL_IDENTIFIER=12
3089val SCE_SCRIPTOL_TRIPLE=13
3090val SCE_SCRIPTOL_CLASSNAME=14
3091val SCE_SCRIPTOL_PREPROCESSOR=15
9e730a78
RD
3092# Lexical states for SCLEX_ASM
3093lex Asm=SCLEX_ASM SCE_ASM_
3094val SCE_ASM_DEFAULT=0
3095val SCE_ASM_COMMENT=1
3096val SCE_ASM_NUMBER=2
3097val SCE_ASM_STRING=3
3098val SCE_ASM_OPERATOR=4
3099val SCE_ASM_IDENTIFIER=5
3100val SCE_ASM_CPUINSTRUCTION=6
3101val SCE_ASM_MATHINSTRUCTION=7
3102val SCE_ASM_REGISTER=8
3103val SCE_ASM_DIRECTIVE=9
3104val SCE_ASM_DIRECTIVEOPERAND=10
8e54aaed
RD
3105val SCE_ASM_COMMENTBLOCK=11
3106val SCE_ASM_CHARACTER=12
3107val SCE_ASM_STRINGEOL=13
3108val SCE_ASM_EXTINSTRUCTION=14
1dcf666d 3109val SCE_ASM_COMMENTDIRECTIVE=15
9e730a78
RD
3110# Lexical states for SCLEX_FORTRAN
3111lex Fortran=SCLEX_FORTRAN SCE_F_
3112lex F77=SCLEX_F77 SCE_F_
3113val SCE_F_DEFAULT=0
3114val SCE_F_COMMENT=1
3115val SCE_F_NUMBER=2
3116val SCE_F_STRING1=3
3117val SCE_F_STRING2=4
3118val SCE_F_STRINGEOL=5
3119val SCE_F_OPERATOR=6
3120val SCE_F_IDENTIFIER=7
3121val SCE_F_WORD=8
3122val SCE_F_WORD2=9
3123val SCE_F_WORD3=10
3124val SCE_F_PREPROCESSOR=11
3125val SCE_F_OPERATOR2=12
3126val SCE_F_LABEL=13
3127val SCE_F_CONTINUATION=14
3128# Lexical states for SCLEX_CSS
3129lex CSS=SCLEX_CSS SCE_CSS_
3130val SCE_CSS_DEFAULT=0
3131val SCE_CSS_TAG=1
3132val SCE_CSS_CLASS=2
3133val SCE_CSS_PSEUDOCLASS=3
3134val SCE_CSS_UNKNOWN_PSEUDOCLASS=4
3135val SCE_CSS_OPERATOR=5
3136val SCE_CSS_IDENTIFIER=6
3137val SCE_CSS_UNKNOWN_IDENTIFIER=7
3138val SCE_CSS_VALUE=8
3139val SCE_CSS_COMMENT=9
3140val SCE_CSS_ID=10
3141val SCE_CSS_IMPORTANT=11
3142val SCE_CSS_DIRECTIVE=12
3143val SCE_CSS_DOUBLESTRING=13
3144val SCE_CSS_SINGLESTRING=14
a33203cb 3145val SCE_CSS_IDENTIFIER2=15
1e9bafca 3146val SCE_CSS_ATTRIBUTE=16
9e96e16f
RD
3147val SCE_CSS_IDENTIFIER3=17
3148val SCE_CSS_PSEUDOELEMENT=18
3149val SCE_CSS_EXTENDED_IDENTIFIER=19
3150val SCE_CSS_EXTENDED_PSEUDOCLASS=20
3151val SCE_CSS_EXTENDED_PSEUDOELEMENT=21
1dcf666d
RD
3152val SCE_CSS_MEDIA=22
3153val SCE_CSS_VARIABLE=23
9e730a78
RD
3154# Lexical states for SCLEX_POV
3155lex POV=SCLEX_POV SCE_POV_
3156val SCE_POV_DEFAULT=0
3157val SCE_POV_COMMENT=1
3158val SCE_POV_COMMENTLINE=2
88a8b04e
RD
3159val SCE_POV_NUMBER=3
3160val SCE_POV_OPERATOR=4
3161val SCE_POV_IDENTIFIER=5
9e730a78 3162val SCE_POV_STRING=6
88a8b04e
RD
3163val SCE_POV_STRINGEOL=7
3164val SCE_POV_DIRECTIVE=8
3165val SCE_POV_BADDIRECTIVE=9
9e730a78 3166val SCE_POV_WORD2=10
88a8b04e
RD
3167val SCE_POV_WORD3=11
3168val SCE_POV_WORD4=12
3169val SCE_POV_WORD5=13
3170val SCE_POV_WORD6=14
3171val SCE_POV_WORD7=15
3172val SCE_POV_WORD8=16
e14d10b0
RD
3173# Lexical states for SCLEX_LOUT
3174lex LOUT=SCLEX_LOUT SCE_LOUT_
3175val SCE_LOUT_DEFAULT=0
3176val SCE_LOUT_COMMENT=1
3177val SCE_LOUT_NUMBER=2
3178val SCE_LOUT_WORD=3
3179val SCE_LOUT_WORD2=4
3180val SCE_LOUT_WORD3=5
3181val SCE_LOUT_WORD4=6
3182val SCE_LOUT_STRING=7
3183val SCE_LOUT_OPERATOR=8
3184val SCE_LOUT_IDENTIFIER=9
3185val SCE_LOUT_STRINGEOL=10
3186# Lexical states for SCLEX_ESCRIPT
3187lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_
3188val SCE_ESCRIPT_DEFAULT=0
3189val SCE_ESCRIPT_COMMENT=1
3190val SCE_ESCRIPT_COMMENTLINE=2
3191val SCE_ESCRIPT_COMMENTDOC=3
3192val SCE_ESCRIPT_NUMBER=4
3193val SCE_ESCRIPT_WORD=5
3194val SCE_ESCRIPT_STRING=6
3195val SCE_ESCRIPT_OPERATOR=7
3196val SCE_ESCRIPT_IDENTIFIER=8
3197val SCE_ESCRIPT_BRACE=9
3198val SCE_ESCRIPT_WORD2=10
3199val SCE_ESCRIPT_WORD3=11
88a8b04e
RD
3200# Lexical states for SCLEX_PS
3201lex PS=SCLEX_PS SCE_PS_
3202val SCE_PS_DEFAULT=0
3203val SCE_PS_COMMENT=1
3204val SCE_PS_DSC_COMMENT=2
3205val SCE_PS_DSC_VALUE=3
3206val SCE_PS_NUMBER=4
3207val SCE_PS_NAME=5
3208val SCE_PS_KEYWORD=6
3209val SCE_PS_LITERAL=7
3210val SCE_PS_IMMEVAL=8
3211val SCE_PS_PAREN_ARRAY=9
3212val SCE_PS_PAREN_DICT=10
3213val SCE_PS_PAREN_PROC=11
3214val SCE_PS_TEXT=12
3215val SCE_PS_HEXSTRING=13
3216val SCE_PS_BASE85STRING=14
3217val SCE_PS_BADSTRINGCHAR=15
3218# Lexical states for SCLEX_NSIS
3219lex NSIS=SCLEX_NSIS SCE_NSIS_
3220val SCE_NSIS_DEFAULT=0
3221val SCE_NSIS_COMMENT=1
3222val SCE_NSIS_STRINGDQ=2
3223val SCE_NSIS_STRINGLQ=3
3224val SCE_NSIS_STRINGRQ=4
3225val SCE_NSIS_FUNCTION=5
3226val SCE_NSIS_VARIABLE=6
3227val SCE_NSIS_LABEL=7
3228val SCE_NSIS_USERDEFINED=8
3229val SCE_NSIS_SECTIONDEF=9
3230val SCE_NSIS_SUBSECTIONDEF=10
3231val SCE_NSIS_IFDEFINEDEF=11
3232val SCE_NSIS_MACRODEF=12
3233val SCE_NSIS_STRINGVAR=13
591d01be 3234val SCE_NSIS_NUMBER=14
1e9bafca
RD
3235val SCE_NSIS_SECTIONGROUP=15
3236val SCE_NSIS_PAGEEX=16
3237val SCE_NSIS_FUNCTIONDEF=17
3238val SCE_NSIS_COMMENTBOX=18
88a8b04e
RD
3239# Lexical states for SCLEX_MMIXAL
3240lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_
3241val SCE_MMIXAL_LEADWS=0
3242val SCE_MMIXAL_COMMENT=1
3243val SCE_MMIXAL_LABEL=2
3244val SCE_MMIXAL_OPCODE=3
3245val SCE_MMIXAL_OPCODE_PRE=4
3246val SCE_MMIXAL_OPCODE_VALID=5
3247val SCE_MMIXAL_OPCODE_UNKNOWN=6
3248val SCE_MMIXAL_OPCODE_POST=7
3249val SCE_MMIXAL_OPERANDS=8
3250val SCE_MMIXAL_NUMBER=9
3251val SCE_MMIXAL_REF=10
3252val SCE_MMIXAL_CHAR=11
3253val SCE_MMIXAL_STRING=12
3254val SCE_MMIXAL_REGISTER=13
3255val SCE_MMIXAL_HEX=14
3256val SCE_MMIXAL_OPERATOR=15
3257val SCE_MMIXAL_SYMBOL=16
3258val SCE_MMIXAL_INCLUDE=17
8e54aaed
RD
3259# Lexical states for SCLEX_CLW
3260lex Clarion=SCLEX_CLW SCE_CLW_
3261val SCE_CLW_DEFAULT=0
3262val SCE_CLW_LABEL=1
3263val SCE_CLW_COMMENT=2
3264val SCE_CLW_STRING=3
3265val SCE_CLW_USER_IDENTIFIER=4
3266val SCE_CLW_INTEGER_CONSTANT=5
3267val SCE_CLW_REAL_CONSTANT=6
3268val SCE_CLW_PICTURE_STRING=7
3269val SCE_CLW_KEYWORD=8
3270val SCE_CLW_COMPILER_DIRECTIVE=9
1e9bafca
RD
3271val SCE_CLW_RUNTIME_EXPRESSIONS=10
3272val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11
3273val SCE_CLW_STRUCTURE_DATA_TYPE=12
3274val SCE_CLW_ATTRIBUTE=13
3275val SCE_CLW_STANDARD_EQUATE=14
3276val SCE_CLW_ERROR=15
3277val SCE_CLW_DEPRECATED=16
8e54aaed
RD
3278# Lexical states for SCLEX_LOT
3279lex LOT=SCLEX_LOT SCE_LOT_
3280val SCE_LOT_DEFAULT=0
3281val SCE_LOT_HEADER=1
3282val SCE_LOT_BREAK=2
3283val SCE_LOT_SET=3
3284val SCE_LOT_PASS=4
3285val SCE_LOT_FAIL=5
3286val SCE_LOT_ABORT=6
3287# Lexical states for SCLEX_YAML
3288lex YAML=SCLEX_YAML SCE_YAML_
3289val SCE_YAML_DEFAULT=0
3290val SCE_YAML_COMMENT=1
3291val SCE_YAML_IDENTIFIER=2
3292val SCE_YAML_KEYWORD=3
3293val SCE_YAML_NUMBER=4
3294val SCE_YAML_REFERENCE=5
3295val SCE_YAML_DOCUMENT=6
3296val SCE_YAML_TEXT=7
3297val SCE_YAML_ERROR=8
7e0c58e9 3298val SCE_YAML_OPERATOR=9
8e54aaed
RD
3299# Lexical states for SCLEX_TEX
3300lex TeX=SCLEX_TEX SCE_TEX_
3301val SCE_TEX_DEFAULT=0
3302val SCE_TEX_SPECIAL=1
3303val SCE_TEX_GROUP=2
3304val SCE_TEX_SYMBOL=3
3305val SCE_TEX_COMMAND=4
3306val SCE_TEX_TEXT=5
3307lex Metapost=SCLEX_METAPOST SCE_METAPOST_
3308val SCE_METAPOST_DEFAULT=0
3309val SCE_METAPOST_SPECIAL=1
3310val SCE_METAPOST_GROUP=2
3311val SCE_METAPOST_SYMBOL=3
3312val SCE_METAPOST_COMMAND=4
3313val SCE_METAPOST_TEXT=5
3314val SCE_METAPOST_EXTRA=6
3315# Lexical states for SCLEX_ERLANG
3316lex Erlang=SCLEX_ERLANG SCE_ERLANG_
3317val SCE_ERLANG_DEFAULT=0
3318val SCE_ERLANG_COMMENT=1
3319val SCE_ERLANG_VARIABLE=2
3320val SCE_ERLANG_NUMBER=3
3321val SCE_ERLANG_KEYWORD=4
3322val SCE_ERLANG_STRING=5
3323val SCE_ERLANG_OPERATOR=6
3324val SCE_ERLANG_ATOM=7
3325val SCE_ERLANG_FUNCTION_NAME=8
3326val SCE_ERLANG_CHARACTER=9
3327val SCE_ERLANG_MACRO=10
3328val SCE_ERLANG_RECORD=11
9e96e16f 3329val SCE_ERLANG_PREPROC=12
8e54aaed 3330val SCE_ERLANG_NODE_NAME=13
9e96e16f
RD
3331val SCE_ERLANG_COMMENT_FUNCTION=14
3332val SCE_ERLANG_COMMENT_MODULE=15
3333val SCE_ERLANG_COMMENT_DOC=16
3334val SCE_ERLANG_COMMENT_DOC_MACRO=17
3335val SCE_ERLANG_ATOM_QUOTED=18
3336val SCE_ERLANG_MACRO_QUOTED=19
3337val SCE_ERLANG_RECORD_QUOTED=20
3338val SCE_ERLANG_NODE_NAME_QUOTED=21
3339val SCE_ERLANG_BIFS=22
3340val SCE_ERLANG_MODULES=23
3341val SCE_ERLANG_MODULES_ATT=24
8e54aaed
RD
3342val SCE_ERLANG_UNKNOWN=31
3343# Lexical states for SCLEX_OCTAVE are identical to MatLab
3344lex Octave=SCLEX_OCTAVE SCE_MATLAB_
591d01be
RD
3345# Lexical states for SCLEX_MSSQL
3346lex MSSQL=SCLEX_MSSQL SCE_MSSQL_
3347val SCE_MSSQL_DEFAULT=0
3348val SCE_MSSQL_COMMENT=1
3349val SCE_MSSQL_LINE_COMMENT=2
3350val SCE_MSSQL_NUMBER=3
3351val SCE_MSSQL_STRING=4
3352val SCE_MSSQL_OPERATOR=5
3353val SCE_MSSQL_IDENTIFIER=6
3354val SCE_MSSQL_VARIABLE=7
3355val SCE_MSSQL_COLUMN_NAME=8
3356val SCE_MSSQL_STATEMENT=9
3357val SCE_MSSQL_DATATYPE=10
3358val SCE_MSSQL_SYSTABLE=11
3359val SCE_MSSQL_GLOBAL_VARIABLE=12
3360val SCE_MSSQL_FUNCTION=13
3361val SCE_MSSQL_STORED_PROCEDURE=14
3362val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15
3363val SCE_MSSQL_COLUMN_NAME_2=16
3364# Lexical states for SCLEX_VERILOG
3365lex Verilog=SCLEX_VERILOG SCE_V_
3366val SCE_V_DEFAULT=0
3367val SCE_V_COMMENT=1
3368val SCE_V_COMMENTLINE=2
3369val SCE_V_COMMENTLINEBANG=3
3370val SCE_V_NUMBER=4
3371val SCE_V_WORD=5
3372val SCE_V_STRING=6
3373val SCE_V_WORD2=7
3374val SCE_V_WORD3=8
3375val SCE_V_PREPROCESSOR=9
3376val SCE_V_OPERATOR=10
3377val SCE_V_IDENTIFIER=11
3378val SCE_V_STRINGEOL=12
3379val SCE_V_USER=19
3380# Lexical states for SCLEX_KIX
3381lex Kix=SCLEX_KIX SCE_KIX_
3382val SCE_KIX_DEFAULT=0
3383val SCE_KIX_COMMENT=1
3384val SCE_KIX_STRING1=2
3385val SCE_KIX_STRING2=3
3386val SCE_KIX_NUMBER=4
3387val SCE_KIX_VAR=5
3388val SCE_KIX_MACRO=6
3389val SCE_KIX_KEYWORD=7
3390val SCE_KIX_FUNCTIONS=8
3391val SCE_KIX_OPERATOR=9
3392val SCE_KIX_IDENTIFIER=31
3393# Lexical states for SCLEX_GUI4CLI
3394val SCE_GC_DEFAULT=0
3395val SCE_GC_COMMENTLINE=1
3396val SCE_GC_COMMENTBLOCK=2
3397val SCE_GC_GLOBAL=3
3398val SCE_GC_EVENT=4
3399val SCE_GC_ATTRIBUTE=5
3400val SCE_GC_CONTROL=6
3401val SCE_GC_COMMAND=7
3402val SCE_GC_STRING=8
3403val SCE_GC_OPERATOR=9
3404# Lexical states for SCLEX_SPECMAN
3405lex Specman=SCLEX_SPECMAN SCE_SN_
3406val SCE_SN_DEFAULT=0
3407val SCE_SN_CODE=1
3408val SCE_SN_COMMENTLINE=2
3409val SCE_SN_COMMENTLINEBANG=3
3410val SCE_SN_NUMBER=4
3411val SCE_SN_WORD=5
3412val SCE_SN_STRING=6
3413val SCE_SN_WORD2=7
3414val SCE_SN_WORD3=8
3415val SCE_SN_PREPROCESSOR=9
3416val SCE_SN_OPERATOR=10
3417val SCE_SN_IDENTIFIER=11
3418val SCE_SN_STRINGEOL=12
3419val SCE_SN_REGEXTAG=13
3420val SCE_SN_SIGNAL=14
3421val SCE_SN_USER=19
3422# Lexical states for SCLEX_AU3
3423lex Au3=SCLEX_AU3 SCE_AU3_
3424val SCE_AU3_DEFAULT=0
3425val SCE_AU3_COMMENT=1
3426val SCE_AU3_COMMENTBLOCK=2
3427val SCE_AU3_NUMBER=3
3428val SCE_AU3_FUNCTION=4
3429val SCE_AU3_KEYWORD=5
3430val SCE_AU3_MACRO=6
3431val SCE_AU3_STRING=7
3432val SCE_AU3_OPERATOR=8
3433val SCE_AU3_VARIABLE=9
3434val SCE_AU3_SENT=10
3435val SCE_AU3_PREPROCESSOR=11
a33203cb 3436val SCE_AU3_SPECIAL=12
1e9bafca
RD
3437val SCE_AU3_EXPAND=13
3438val SCE_AU3_COMOBJ=14
b8193d80 3439val SCE_AU3_UDF=15
591d01be
RD
3440# Lexical states for SCLEX_APDL
3441lex APDL=SCLEX_APDL SCE_APDL_
3442val SCE_APDL_DEFAULT=0
3443val SCE_APDL_COMMENT=1
3444val SCE_APDL_COMMENTBLOCK=2
3445val SCE_APDL_NUMBER=3
3446val SCE_APDL_STRING=4
a33203cb
RD
3447val SCE_APDL_OPERATOR=5
3448val SCE_APDL_WORD=6
591d01be 3449val SCE_APDL_PROCESSOR=7
a33203cb
RD
3450val SCE_APDL_COMMAND=8
3451val SCE_APDL_SLASHCOMMAND=9
3452val SCE_APDL_STARCOMMAND=10
3453val SCE_APDL_ARGUMENT=11
3454val SCE_APDL_FUNCTION=12
591d01be
RD
3455# Lexical states for SCLEX_BASH
3456lex Bash=SCLEX_BASH SCE_SH_
3457val SCE_SH_DEFAULT=0
3458val SCE_SH_ERROR=1
3459val SCE_SH_COMMENTLINE=2
3460val SCE_SH_NUMBER=3
3461val SCE_SH_WORD=4
3462val SCE_SH_STRING=5
3463val SCE_SH_CHARACTER=6
3464val SCE_SH_OPERATOR=7
3465val SCE_SH_IDENTIFIER=8
3466val SCE_SH_SCALAR=9
3467val SCE_SH_PARAM=10
3468val SCE_SH_BACKTICKS=11
3469val SCE_SH_HERE_DELIM=12
3470val SCE_SH_HERE_Q=13
a33203cb
RD
3471# Lexical states for SCLEX_ASN1
3472lex Asn1=SCLEX_ASN1 SCE_ASN1_
3473val SCE_ASN1_DEFAULT=0
3474val SCE_ASN1_COMMENT=1
3475val SCE_ASN1_IDENTIFIER=2
3476val SCE_ASN1_STRING=3
3477val SCE_ASN1_OID=4
3478val SCE_ASN1_SCALAR=5
3479val SCE_ASN1_KEYWORD=6
3480val SCE_ASN1_ATTRIBUTE=7
3481val SCE_ASN1_DESCRIPTOR=8
3482val SCE_ASN1_TYPE=9
3483val SCE_ASN1_OPERATOR=10
3484# Lexical states for SCLEX_VHDL
3485lex VHDL=SCLEX_VHDL SCE_VHDL_
3486val SCE_VHDL_DEFAULT=0
3487val SCE_VHDL_COMMENT=1
3488val SCE_VHDL_COMMENTLINEBANG=2
3489val SCE_VHDL_NUMBER=3
3490val SCE_VHDL_STRING=4
3491val SCE_VHDL_OPERATOR=5
3492val SCE_VHDL_IDENTIFIER=6
3493val SCE_VHDL_STRINGEOL=7
3494val SCE_VHDL_KEYWORD=8
3495val SCE_VHDL_STDOPERATOR=9
3496val SCE_VHDL_ATTRIBUTE=10
3497val SCE_VHDL_STDFUNCTION=11
3498val SCE_VHDL_STDPACKAGE=12
3499val SCE_VHDL_STDTYPE=13
3500val SCE_VHDL_USERWORD=14
1e9bafca
RD
3501# Lexical states for SCLEX_CAML
3502lex Caml=SCLEX_CAML SCE_CAML_
3503val SCE_CAML_DEFAULT=0
3504val SCE_CAML_IDENTIFIER=1
3505val SCE_CAML_TAGNAME=2
3506val SCE_CAML_KEYWORD=3
3507val SCE_CAML_KEYWORD2=4
3508val SCE_CAML_KEYWORD3=5
3509val SCE_CAML_LINENUM=6
3510val SCE_CAML_OPERATOR=7
3511val SCE_CAML_NUMBER=8
3512val SCE_CAML_CHAR=9
9e96e16f 3513val SCE_CAML_WHITE=10
1e9bafca
RD
3514val SCE_CAML_STRING=11
3515val SCE_CAML_COMMENT=12
3516val SCE_CAML_COMMENT1=13
3517val SCE_CAML_COMMENT2=14
3518val SCE_CAML_COMMENT3=15
3519# Lexical states for SCLEX_HASKELL
3520lex Haskell=SCLEX_HASKELL SCE_HA_
3521val SCE_HA_DEFAULT=0
3522val SCE_HA_IDENTIFIER=1
3523val SCE_HA_KEYWORD=2
3524val SCE_HA_NUMBER=3
3525val SCE_HA_STRING=4
3526val SCE_HA_CHARACTER=5
3527val SCE_HA_CLASS=6
3528val SCE_HA_MODULE=7
3529val SCE_HA_CAPITAL=8
3530val SCE_HA_DATA=9
3531val SCE_HA_IMPORT=10
3532val SCE_HA_OPERATOR=11
3533val SCE_HA_INSTANCE=12
3534val SCE_HA_COMMENTLINE=13
3535val SCE_HA_COMMENTBLOCK=14
3536val SCE_HA_COMMENTBLOCK2=15
3537val SCE_HA_COMMENTBLOCK3=16
3538# Lexical states of SCLEX_TADS3
3539lex TADS3=SCLEX_TADS3 SCE_T3_
3540val SCE_T3_DEFAULT=0
3541val SCE_T3_X_DEFAULT=1
3542val SCE_T3_PREPROCESSOR=2
3543val SCE_T3_BLOCK_COMMENT=3
3544val SCE_T3_LINE_COMMENT=4
3545val SCE_T3_OPERATOR=5
3546val SCE_T3_KEYWORD=6
3547val SCE_T3_NUMBER=7
3548val SCE_T3_IDENTIFIER=8
3549val SCE_T3_S_STRING=9
3550val SCE_T3_D_STRING=10
3551val SCE_T3_X_STRING=11
3552val SCE_T3_LIB_DIRECTIVE=12
3553val SCE_T3_MSG_PARAM=13
3554val SCE_T3_HTML_TAG=14
3555val SCE_T3_HTML_DEFAULT=15
3556val SCE_T3_HTML_STRING=16
3557val SCE_T3_USER1=17
3558val SCE_T3_USER2=18
3559val SCE_T3_USER3=19
7e0c58e9 3560val SCE_T3_BRACE=20
1e9bafca
RD
3561# Lexical states for SCLEX_REBOL
3562lex Rebol=SCLEX_REBOL SCE_REBOL_
3563val SCE_REBOL_DEFAULT=0
3564val SCE_REBOL_COMMENTLINE=1
3565val SCE_REBOL_COMMENTBLOCK=2
3566val SCE_REBOL_PREFACE=3
3567val SCE_REBOL_OPERATOR=4
3568val SCE_REBOL_CHARACTER=5
3569val SCE_REBOL_QUOTEDSTRING=6
3570val SCE_REBOL_BRACEDSTRING=7
3571val SCE_REBOL_NUMBER=8
3572val SCE_REBOL_PAIR=9
3573val SCE_REBOL_TUPLE=10
3574val SCE_REBOL_BINARY=11
3575val SCE_REBOL_MONEY=12
3576val SCE_REBOL_ISSUE=13
3577val SCE_REBOL_TAG=14
3578val SCE_REBOL_FILE=15
3579val SCE_REBOL_EMAIL=16
3580val SCE_REBOL_URL=17
3581val SCE_REBOL_DATE=18
3582val SCE_REBOL_TIME=19
3583val SCE_REBOL_IDENTIFIER=20
3584val SCE_REBOL_WORD=21
3585val SCE_REBOL_WORD2=22
3586val SCE_REBOL_WORD3=23
3587val SCE_REBOL_WORD4=24
3588val SCE_REBOL_WORD5=25
3589val SCE_REBOL_WORD6=26
3590val SCE_REBOL_WORD7=27
3591val SCE_REBOL_WORD8=28
3592# Lexical states for SCLEX_SQL
3593lex SQL=SCLEX_SQL SCE_SQL_
3594val SCE_SQL_DEFAULT=0
3595val SCE_SQL_COMMENT=1
3596val SCE_SQL_COMMENTLINE=2
3597val SCE_SQL_COMMENTDOC=3
3598val SCE_SQL_NUMBER=4
3599val SCE_SQL_WORD=5
3600val SCE_SQL_STRING=6
3601val SCE_SQL_CHARACTER=7
3602val SCE_SQL_SQLPLUS=8
3603val SCE_SQL_SQLPLUS_PROMPT=9
3604val SCE_SQL_OPERATOR=10
3605val SCE_SQL_IDENTIFIER=11
3606val SCE_SQL_SQLPLUS_COMMENT=13
3607val SCE_SQL_COMMENTLINEDOC=15
3608val SCE_SQL_WORD2=16
3609val SCE_SQL_COMMENTDOCKEYWORD=17
3610val SCE_SQL_COMMENTDOCKEYWORDERROR=18
3611val SCE_SQL_USER1=19
3612val SCE_SQL_USER2=20
3613val SCE_SQL_USER3=21
3614val SCE_SQL_USER4=22
3615val SCE_SQL_QUOTEDIDENTIFIER=23
3616# Lexical states for SCLEX_SMALLTALK
3617lex Smalltalk=SCLEX_SMALLTALK SCE_ST_
3618val SCE_ST_DEFAULT=0
3619val SCE_ST_STRING=1
3620val SCE_ST_NUMBER=2
3621val SCE_ST_COMMENT=3
3622val SCE_ST_SYMBOL=4
3623val SCE_ST_BINARY=5
3624val SCE_ST_BOOL=6
3625val SCE_ST_SELF=7
3626val SCE_ST_SUPER=8
3627val SCE_ST_NIL=9
3628val SCE_ST_GLOBAL=10
3629val SCE_ST_RETURN=11
3630val SCE_ST_SPECIAL=12
3631val SCE_ST_KWSEND=13
3632val SCE_ST_ASSIGN=14
3633val SCE_ST_CHARACTER=15
3634val SCE_ST_SPEC_SEL=16
3635# Lexical states for SCLEX_FLAGSHIP (clipper)
1dcf666d 3636lex FlagShip=SCLEX_FLAGSHIP SCE_FS_
1e9bafca
RD
3637val SCE_FS_DEFAULT=0
3638val SCE_FS_COMMENT=1
3639val SCE_FS_COMMENTLINE=2
3640val SCE_FS_COMMENTDOC=3
3641val SCE_FS_COMMENTLINEDOC=4
3642val SCE_FS_COMMENTDOCKEYWORD=5
3643val SCE_FS_COMMENTDOCKEYWORDERROR=6
3644val SCE_FS_KEYWORD=7
3645val SCE_FS_KEYWORD2=8
3646val SCE_FS_KEYWORD3=9
3647val SCE_FS_KEYWORD4=10
3648val SCE_FS_NUMBER=11
3649val SCE_FS_STRING=12
3650val SCE_FS_PREPROCESSOR=13
3651val SCE_FS_OPERATOR=14
3652val SCE_FS_IDENTIFIER=15
3653val SCE_FS_DATE=16
3654val SCE_FS_STRINGEOL=17
3655val SCE_FS_CONSTANT=18
1dcf666d
RD
3656val SCE_FS_WORDOPERATOR=19
3657val SCE_FS_DISABLEDCODE=20
3658val SCE_FS_DEFAULT_C=21
3659val SCE_FS_COMMENTDOC_C=22
3660val SCE_FS_COMMENTLINEDOC_C=23
3661val SCE_FS_KEYWORD_C=24
3662val SCE_FS_KEYWORD2_C=25
3663val SCE_FS_NUMBER_C=26
3664val SCE_FS_STRING_C=27
3665val SCE_FS_PREPROCESSOR_C=28
3666val SCE_FS_OPERATOR_C=29
3667val SCE_FS_IDENTIFIER_C=30
3668val SCE_FS_STRINGEOL_C=31
1e9bafca
RD
3669# Lexical states for SCLEX_CSOUND
3670lex Csound=SCLEX_CSOUND SCE_CSOUND_
3671val SCE_CSOUND_DEFAULT=0
3672val SCE_CSOUND_COMMENT=1
3673val SCE_CSOUND_NUMBER=2
3674val SCE_CSOUND_OPERATOR=3
3675val SCE_CSOUND_INSTR=4
3676val SCE_CSOUND_IDENTIFIER=5
3677val SCE_CSOUND_OPCODE=6
3678val SCE_CSOUND_HEADERSTMT=7
3679val SCE_CSOUND_USERKEYWORD=8
3680val SCE_CSOUND_COMMENTBLOCK=9
3681val SCE_CSOUND_PARAM=10
3682val SCE_CSOUND_ARATE_VAR=11
3683val SCE_CSOUND_KRATE_VAR=12
3684val SCE_CSOUND_IRATE_VAR=13
3685val SCE_CSOUND_GLOBAL_VAR=14
3686val SCE_CSOUND_STRINGEOL=15
b8193d80
RD
3687# Lexical states for SCLEX_INNOSETUP
3688lex Inno=SCLEX_INNOSETUP SCE_INNO_
3689val SCE_INNO_DEFAULT=0
3690val SCE_INNO_COMMENT=1
3691val SCE_INNO_KEYWORD=2
3692val SCE_INNO_PARAMETER=3
3693val SCE_INNO_SECTION=4
3694val SCE_INNO_PREPROC=5
9e96e16f 3695val SCE_INNO_INLINE_EXPANSION=6
b8193d80
RD
3696val SCE_INNO_COMMENT_PASCAL=7
3697val SCE_INNO_KEYWORD_PASCAL=8
3698val SCE_INNO_KEYWORD_USER=9
3699val SCE_INNO_STRING_DOUBLE=10
3700val SCE_INNO_STRING_SINGLE=11
3701val SCE_INNO_IDENTIFIER=12
3702# Lexical states for SCLEX_OPAL
3703lex Opal=SCLEX_OPAL SCE_OPAL_
3704val SCE_OPAL_SPACE=0
3705val SCE_OPAL_COMMENT_BLOCK=1
3706val SCE_OPAL_COMMENT_LINE=2
3707val SCE_OPAL_INTEGER=3
3708val SCE_OPAL_KEYWORD=4
3709val SCE_OPAL_SORT=5
3710val SCE_OPAL_STRING=6
3711val SCE_OPAL_PAR=7
3712val SCE_OPAL_BOOL_CONST=8
3713val SCE_OPAL_DEFAULT=32
3714# Lexical states for SCLEX_SPICE
3715lex Spice=SCLEX_SPICE SCE_SPICE_
3716val SCE_SPICE_DEFAULT=0
3717val SCE_SPICE_IDENTIFIER=1
3718val SCE_SPICE_KEYWORD=2
3719val SCE_SPICE_KEYWORD2=3
3720val SCE_SPICE_KEYWORD3=4
3721val SCE_SPICE_NUMBER=5
3722val SCE_SPICE_DELIMITER=6
3723val SCE_SPICE_VALUE=7
3724val SCE_SPICE_COMMENTLINE=8
7e0c58e9
RD
3725# Lexical states for SCLEX_CMAKE
3726lex CMAKE=SCLEX_CMAKE SCE_CMAKE_
3727val SCE_CMAKE_DEFAULT=0
3728val SCE_CMAKE_COMMENT=1
3729val SCE_CMAKE_STRINGDQ=2
3730val SCE_CMAKE_STRINGLQ=3
3731val SCE_CMAKE_STRINGRQ=4
3732val SCE_CMAKE_COMMANDS=5
3733val SCE_CMAKE_PARAMETERS=6
3734val SCE_CMAKE_VARIABLE=7
3735val SCE_CMAKE_USERDEFINED=8
3736val SCE_CMAKE_WHILEDEF=9
3737val SCE_CMAKE_FOREACHDEF=10
3738val SCE_CMAKE_IFDEFINEDEF=11
3739val SCE_CMAKE_MACRODEF=12
3740val SCE_CMAKE_STRINGVAR=13
3741val SCE_CMAKE_NUMBER=14
3742# Lexical states for SCLEX_GAP
3743lex Gap=SCLEX_GAP SCE_GAP_
3744val SCE_GAP_DEFAULT=0
3745val SCE_GAP_IDENTIFIER=1
3746val SCE_GAP_KEYWORD=2
3747val SCE_GAP_KEYWORD2=3
3748val SCE_GAP_KEYWORD3=4
3749val SCE_GAP_KEYWORD4=5
3750val SCE_GAP_STRING=6
3751val SCE_GAP_CHAR=7
3752val SCE_GAP_OPERATOR=8
3753val SCE_GAP_COMMENT=9
3754val SCE_GAP_NUMBER=10
3755val SCE_GAP_STRINGEOL=11
3756# Lexical state for SCLEX_PLM
3757lex PLM=SCLEX_PLM SCE_PLM_
3758val SCE_PLM_DEFAULT=0
3759val SCE_PLM_COMMENT=1
3760val SCE_PLM_STRING=2
3761val SCE_PLM_NUMBER=3
3762val SCE_PLM_IDENTIFIER=4
3763val SCE_PLM_OPERATOR=5
3764val SCE_PLM_CONTROL=6
3765val SCE_PLM_KEYWORD=7
3766# Lexical state for SCLEX_PROGRESS
3767lex Progress=SCLEX_PROGRESS SCE_4GL_
3768val SCE_4GL_DEFAULT=0
3769val SCE_4GL_NUMBER=1
3770val SCE_4GL_WORD=2
3771val SCE_4GL_STRING=3
3772val SCE_4GL_CHARACTER=4
3773val SCE_4GL_PREPROCESSOR=5
3774val SCE_4GL_OPERATOR=6
3775val SCE_4GL_IDENTIFIER=7
3776val SCE_4GL_BLOCK=8
3777val SCE_4GL_END=9
3778val SCE_4GL_COMMENT1=10
3779val SCE_4GL_COMMENT2=11
3780val SCE_4GL_COMMENT3=12
3781val SCE_4GL_COMMENT4=13
3782val SCE_4GL_COMMENT5=14
3783val SCE_4GL_COMMENT6=15
3784val SCE_4GL_DEFAULT_=16
3785val SCE_4GL_NUMBER_=17
3786val SCE_4GL_WORD_=18
3787val SCE_4GL_STRING_=19
3788val SCE_4GL_CHARACTER_=20
3789val SCE_4GL_PREPROCESSOR_=21
3790val SCE_4GL_OPERATOR_=22
3791val SCE_4GL_IDENTIFIER_=23
3792val SCE_4GL_BLOCK_=24
3793val SCE_4GL_END_=25
3794val SCE_4GL_COMMENT1_=26
3795val SCE_4GL_COMMENT2_=27
3796val SCE_4GL_COMMENT3_=28
3797val SCE_4GL_COMMENT4_=29
3798val SCE_4GL_COMMENT5_=30
3799val SCE_4GL_COMMENT6_=31
3800# Lexical states for SCLEX_ABAQUS
3801lex ABAQUS=SCLEX_ABAQUS SCE_ABAQUS_
3802val SCE_ABAQUS_DEFAULT=0
3803val SCE_ABAQUS_COMMENT=1
3804val SCE_ABAQUS_COMMENTBLOCK=2
3805val SCE_ABAQUS_NUMBER=3
3806val SCE_ABAQUS_STRING=4
3807val SCE_ABAQUS_OPERATOR=5
3808val SCE_ABAQUS_WORD=6
3809val SCE_ABAQUS_PROCESSOR=7
3810val SCE_ABAQUS_COMMAND=8
3811val SCE_ABAQUS_SLASHCOMMAND=9
3812val SCE_ABAQUS_STARCOMMAND=10
3813val SCE_ABAQUS_ARGUMENT=11
3814val SCE_ABAQUS_FUNCTION=12
3815# Lexical states for SCLEX_ASYMPTOTE
3816lex Asymptote=SCLEX_ASYMPTOTE SCE_ASY_
3817val SCE_ASY_DEFAULT=0
3818val SCE_ASY_COMMENT=1
3819val SCE_ASY_COMMENTLINE=2
3820val SCE_ASY_NUMBER=3
3821val SCE_ASY_WORD=4
3822val SCE_ASY_STRING=5
3823val SCE_ASY_CHARACTER=6
3824val SCE_ASY_OPERATOR=7
3825val SCE_ASY_IDENTIFIER=8
3826val SCE_ASY_STRINGEOL=9
3827val SCE_ASY_COMMENTLINEDOC=10
3828val SCE_ASY_WORD2=11
3829# Lexical states for SCLEX_R
3830lex R=SCLEX_R SCE_R_
3831val SCE_R_DEFAULT=0
3832val SCE_R_COMMENT=1
3833val SCE_R_KWORD=2
3834val SCE_R_BASEKWORD=3
3835val SCE_R_OTHERKWORD=4
3836val SCE_R_NUMBER=5
3837val SCE_R_STRING=6
3838val SCE_R_STRING2=7
3839val SCE_R_OPERATOR=8
3840val SCE_R_IDENTIFIER=9
3841val SCE_R_INFIX=10
3842val SCE_R_INFIXEOL=11
9e96e16f
RD
3843# Lexical state for SCLEX_MAGIKSF
3844lex MagikSF=SCLEX_MAGIKSF SCE_MAGIK_
3845val SCE_MAGIK_DEFAULT=0
3846val SCE_MAGIK_COMMENT=1
3847val SCE_MAGIK_HYPER_COMMENT=16
3848val SCE_MAGIK_STRING=2
3849val SCE_MAGIK_CHARACTER=3
3850val SCE_MAGIK_NUMBER=4
3851val SCE_MAGIK_IDENTIFIER=5
3852val SCE_MAGIK_OPERATOR=6
3853val SCE_MAGIK_FLOW=7
3854val SCE_MAGIK_CONTAINER=8
3855val SCE_MAGIK_BRACKET_BLOCK=9
3856val SCE_MAGIK_BRACE_BLOCK=10
3857val SCE_MAGIK_SQBRACKET_BLOCK=11
3858val SCE_MAGIK_UNKNOWN_KEYWORD=12
3859val SCE_MAGIK_KEYWORD=13
3860val SCE_MAGIK_PRAGMA=14
3861val SCE_MAGIK_SYMBOL=15
3862# Lexical state for SCLEX_POWERSHELL
3863lex PowerShell=SCLEX_POWERSHELL SCE_POWERSHELL_
3864val SCE_POWERSHELL_DEFAULT=0
3865val SCE_POWERSHELL_COMMENT=1
3866val SCE_POWERSHELL_STRING=2
3867val SCE_POWERSHELL_CHARACTER=3
3868val SCE_POWERSHELL_NUMBER=4
3869val SCE_POWERSHELL_VARIABLE=5
3870val SCE_POWERSHELL_OPERATOR=6
3871val SCE_POWERSHELL_IDENTIFIER=7
3872val SCE_POWERSHELL_KEYWORD=8
3873val SCE_POWERSHELL_CMDLET=9
3874val SCE_POWERSHELL_ALIAS=10
1dcf666d
RD
3875val SCE_POWERSHELL_FUNCTION=11
3876val SCE_POWERSHELL_USER1=12
3877val SCE_POWERSHELL_COMMENTSTREAM=13
9e96e16f
RD
3878# Lexical state for SCLEX_MYSQL
3879lex MySQL=SCLEX_MYSQL SCE_MYSQL_
3880val SCE_MYSQL_DEFAULT=0
3881val SCE_MYSQL_COMMENT=1
3882val SCE_MYSQL_COMMENTLINE=2
3883val SCE_MYSQL_VARIABLE=3
3884val SCE_MYSQL_SYSTEMVARIABLE=4
3885val SCE_MYSQL_KNOWNSYSTEMVARIABLE=5
3886val SCE_MYSQL_NUMBER=6
3887val SCE_MYSQL_MAJORKEYWORD=7
3888val SCE_MYSQL_KEYWORD=8
3889val SCE_MYSQL_DATABASEOBJECT=9
3890val SCE_MYSQL_PROCEDUREKEYWORD=10
3891val SCE_MYSQL_STRING=11
3892val SCE_MYSQL_SQSTRING=12
3893val SCE_MYSQL_DQSTRING=13
3894val SCE_MYSQL_OPERATOR=14
3895val SCE_MYSQL_FUNCTION=15
3896val SCE_MYSQL_IDENTIFIER=16
3897val SCE_MYSQL_QUOTEDIDENTIFIER=17
3898val SCE_MYSQL_USER1=18
3899val SCE_MYSQL_USER2=19
3900val SCE_MYSQL_USER3=20
3901val SCE_MYSQL_HIDDENCOMMAND=21
3902# Lexical state for SCLEX_PO
3903lex Po=SCLEX_PO SCE_PO_
3904val SCE_PO_DEFAULT=0
3905val SCE_PO_COMMENT=1
3906val SCE_PO_MSGID=2
3907val SCE_PO_MSGID_TEXT=3
3908val SCE_PO_MSGSTR=4
3909val SCE_PO_MSGSTR_TEXT=5
3910val SCE_PO_MSGCTXT=6
3911val SCE_PO_MSGCTXT_TEXT=7
3912val SCE_PO_FUZZY=8
3913# Lexical states for SCLEX_PASCAL
3914lex Pascal=SCLEX_PASCAL SCE_PAS_
3915val SCE_PAS_DEFAULT=0
3916val SCE_PAS_IDENTIFIER=1
3917val SCE_PAS_COMMENT=2
3918val SCE_PAS_COMMENT2=3
3919val SCE_PAS_COMMENTLINE=4
3920val SCE_PAS_PREPROCESSOR=5
3921val SCE_PAS_PREPROCESSOR2=6
3922val SCE_PAS_NUMBER=7
3923val SCE_PAS_HEXNUMBER=8
3924val SCE_PAS_WORD=9
3925val SCE_PAS_STRING=10
3926val SCE_PAS_STRINGEOL=11
3927val SCE_PAS_CHARACTER=12
3928val SCE_PAS_OPERATOR=13
3929val SCE_PAS_ASM=14
3930# Lexical state for SCLEX_SORCUS
3931lex SORCUS=SCLEX_SORCUS SCE_SORCUS_
3932val SCE_SORCUS_DEFAULT=0
3933val SCE_SORCUS_COMMAND=1
3934val SCE_SORCUS_PARAMETER=2
3935val SCE_SORCUS_COMMENTLINE=3
3936val SCE_SORCUS_STRING=4
3937val SCE_SORCUS_STRINGEOL=5
3938val SCE_SORCUS_IDENTIFIER=6
3939val SCE_SORCUS_OPERATOR=7
3940val SCE_SORCUS_NUMBER=8
3941val SCE_SORCUS_CONSTANT=9
3942# Lexical state for SCLEX_POWERPRO
3943lex PowerPro=SCLEX_POWERPRO SCE_POWERPRO_
3944val SCE_POWERPRO_DEFAULT=0
3945val SCE_POWERPRO_COMMENTBLOCK=1
3946val SCE_POWERPRO_COMMENTLINE=2
3947val SCE_POWERPRO_NUMBER=3
3948val SCE_POWERPRO_WORD=4
3949val SCE_POWERPRO_WORD2=5
3950val SCE_POWERPRO_WORD3=6
3951val SCE_POWERPRO_WORD4=7
3952val SCE_POWERPRO_DOUBLEQUOTEDSTRING=8
3953val SCE_POWERPRO_SINGLEQUOTEDSTRING=9
3954val SCE_POWERPRO_LINECONTINUE=10
3955val SCE_POWERPRO_OPERATOR=11
3956val SCE_POWERPRO_IDENTIFIER=12
3957val SCE_POWERPRO_STRINGEOL=13
3958val SCE_POWERPRO_VERBATIM=14
3959val SCE_POWERPRO_ALTQUOTE=15
3960val SCE_POWERPRO_FUNCTION=16
3961# Lexical states for SCLEX_SML
3962lex SML=SCLEX_SML SCE_SML_
3963val SCE_SML_DEFAULT=0
3964val SCE_SML_IDENTIFIER=1
3965val SCE_SML_TAGNAME=2
3966val SCE_SML_KEYWORD=3
3967val SCE_SML_KEYWORD2=4
3968val SCE_SML_KEYWORD3=5
3969val SCE_SML_LINENUM=6
3970val SCE_SML_OPERATOR=7
3971val SCE_SML_NUMBER=8
3972val SCE_SML_CHAR=9
3973val SCE_SML_STRING=11
3974val SCE_SML_COMMENT=12
3975val SCE_SML_COMMENT1=13
3976val SCE_SML_COMMENT2=14
3977val SCE_SML_COMMENT3=15
3978# Lexical state for SCLEX_MARKDOWN
3979lex Markdown=SCLEX_MARKDOWN SCE_MARKDOWN_
3980val SCE_MARKDOWN_DEFAULT=0
3981val SCE_MARKDOWN_LINE_BEGIN=1
3982val SCE_MARKDOWN_STRONG1=2
3983val SCE_MARKDOWN_STRONG2=3
3984val SCE_MARKDOWN_EM1=4
3985val SCE_MARKDOWN_EM2=5
3986val SCE_MARKDOWN_HEADER1=6
3987val SCE_MARKDOWN_HEADER2=7
3988val SCE_MARKDOWN_HEADER3=8
3989val SCE_MARKDOWN_HEADER4=9
3990val SCE_MARKDOWN_HEADER5=10
3991val SCE_MARKDOWN_HEADER6=11
3992val SCE_MARKDOWN_PRECHAR=12
3993val SCE_MARKDOWN_ULIST_ITEM=13
3994val SCE_MARKDOWN_OLIST_ITEM=14
3995val SCE_MARKDOWN_BLOCKQUOTE=15
3996val SCE_MARKDOWN_STRIKEOUT=16
3997val SCE_MARKDOWN_HRULE=17
3998val SCE_MARKDOWN_LINK=18
3999val SCE_MARKDOWN_CODE=19
4000val SCE_MARKDOWN_CODE2=20
4001val SCE_MARKDOWN_CODEBK=21
1dcf666d
RD
4002# Lexical state for SCLEX_TXT2TAGS
4003lex Txt2tags=SCLEX_TXT2TAGS SCE_TXT2TAGS_
4004val SCE_TXT2TAGS_DEFAULT=0
4005val SCE_TXT2TAGS_LINE_BEGIN=1
4006val SCE_TXT2TAGS_STRONG1=2
4007val SCE_TXT2TAGS_STRONG2=3
4008val SCE_TXT2TAGS_EM1=4
4009val SCE_TXT2TAGS_EM2=5
4010val SCE_TXT2TAGS_HEADER1=6
4011val SCE_TXT2TAGS_HEADER2=7
4012val SCE_TXT2TAGS_HEADER3=8
4013val SCE_TXT2TAGS_HEADER4=9
4014val SCE_TXT2TAGS_HEADER5=10
4015val SCE_TXT2TAGS_HEADER6=11
4016val SCE_TXT2TAGS_PRECHAR=12
4017val SCE_TXT2TAGS_ULIST_ITEM=13
4018val SCE_TXT2TAGS_OLIST_ITEM=14
4019val SCE_TXT2TAGS_BLOCKQUOTE=15
4020val SCE_TXT2TAGS_STRIKEOUT=16
4021val SCE_TXT2TAGS_HRULE=17
4022val SCE_TXT2TAGS_LINK=18
4023val SCE_TXT2TAGS_CODE=19
4024val SCE_TXT2TAGS_CODE2=20
4025val SCE_TXT2TAGS_CODEBK=21
4026val SCE_TXT2TAGS_COMMENT=22
4027val SCE_TXT2TAGS_OPTION=23
4028val SCE_TXT2TAGS_PREPROC=24
4029val SCE_TXT2TAGS_POSTPROC=25
4030# Lexical states for SCLEX_A68K
4031lex A68k=SCLEX_A68K SCE_A68K_
4032val SCE_A68K_DEFAULT=0
4033val SCE_A68K_COMMENT=1
4034val SCE_A68K_NUMBER_DEC=2
4035val SCE_A68K_NUMBER_BIN=3
4036val SCE_A68K_NUMBER_HEX=4
4037val SCE_A68K_STRING1=5
4038val SCE_A68K_OPERATOR=6
4039val SCE_A68K_CPUINSTRUCTION=7
4040val SCE_A68K_EXTINSTRUCTION=8
4041val SCE_A68K_REGISTER=9
4042val SCE_A68K_DIRECTIVE=10
4043val SCE_A68K_MACRO_ARG=11
4044val SCE_A68K_LABEL=12
4045val SCE_A68K_STRING2=13
4046val SCE_A68K_IDENTIFIER=14
4047val SCE_A68K_MACRO_DECLARATION=15
4048val SCE_A68K_COMMENT_WORD=16
4049val SCE_A68K_COMMENT_SPECIAL=17
4050val SCE_A68K_COMMENT_DOXYGEN=18
4051# Lexical states for SCLEX_MODULA
4052lex Modula=SCLEX_MODULA SCE_MODULA_
4053val SCE_MODULA_DEFAULT=0
4054val SCE_MODULA_COMMENT=1
4055val SCE_MODULA_DOXYCOMM=2
4056val SCE_MODULA_DOXYKEY=3
4057val SCE_MODULA_KEYWORD=4
4058val SCE_MODULA_RESERVED=5
4059val SCE_MODULA_NUMBER=6
4060val SCE_MODULA_BASENUM=7
4061val SCE_MODULA_FLOAT=8
4062val SCE_MODULA_STRING=9
4063val SCE_MODULA_STRSPEC=10
4064val SCE_MODULA_CHAR=11
4065val SCE_MODULA_CHARSPEC=12
4066val SCE_MODULA_PROC=13
4067val SCE_MODULA_PRAGMA=14
4068val SCE_MODULA_PRGKEY=15
4069val SCE_MODULA_OPERATOR=16
4070val SCE_MODULA_BADSTR=17
4071# Lexical states for SCLEX_COFFEESCRIPT
4072lex CoffeeScript=SCLEX_COFFEESCRIPT SCE_COFFEESCRIPT_
4073val SCE_COFFEESCRIPT_DEFAULT=0
4074val SCE_COFFEESCRIPT_COMMENT=1
4075val SCE_COFFEESCRIPT_COMMENTLINE=2
4076val SCE_COFFEESCRIPT_COMMENTDOC=3
4077val SCE_COFFEESCRIPT_NUMBER=4
4078val SCE_COFFEESCRIPT_WORD=5
4079val SCE_COFFEESCRIPT_STRING=6
4080val SCE_COFFEESCRIPT_CHARACTER=7
4081val SCE_COFFEESCRIPT_UUID=8
4082val SCE_COFFEESCRIPT_PREPROCESSOR=9
4083val SCE_COFFEESCRIPT_OPERATOR=10
4084val SCE_COFFEESCRIPT_IDENTIFIER=11
4085val SCE_COFFEESCRIPT_STRINGEOL=12
4086val SCE_COFFEESCRIPT_VERBATIM=13
4087val SCE_COFFEESCRIPT_REGEX=14
4088val SCE_COFFEESCRIPT_COMMENTLINEDOC=15
4089val SCE_COFFEESCRIPT_WORD2=16
4090val SCE_COFFEESCRIPT_COMMENTDOCKEYWORD=17
4091val SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR=18
4092val SCE_COFFEESCRIPT_GLOBALCLASS=19
4093val SCE_COFFEESCRIPT_STRINGRAW=20
4094val SCE_COFFEESCRIPT_TRIPLEVERBATIM=21
4095val SCE_COFFEESCRIPT_HASHQUOTEDSTRING=22
4096val SCE_COFFEESCRIPT_COMMENTBLOCK=22
4097val SCE_COFFEESCRIPT_VERBOSE_REGEX=23
4098val SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT=24
4099# Lexical states for SCLEX_AVS
4100lex AVS=SCLEX_AVS SCE_AVS_
4101val SCE_AVS_DEFAULT=0
4102val SCE_AVS_COMMENTBLOCK=1
4103val SCE_AVS_COMMENTBLOCKN=2
4104val SCE_AVS_COMMENTLINE=3
4105val SCE_AVS_NUMBER=4
4106val SCE_AVS_OPERATOR=5
4107val SCE_AVS_IDENTIFIER=6
4108val SCE_AVS_STRING=7
4109val SCE_AVS_TRIPLESTRING=8
4110val SCE_AVS_KEYWORD=9
4111val SCE_AVS_FILTER=10
4112val SCE_AVS_PLUGIN=11
4113val SCE_AVS_FUNCTION=12
4114val SCE_AVS_CLIPPROP=13
4115val SCE_AVS_USERDFN=14
4116# Lexical states for SCLEX_ECL
4117lex ECL=SCLEX_ECL SCE_ECL_
4118val SCE_ECL_DEFAULT=0
4119val SCE_ECL_COMMENT=1
4120val SCE_ECL_COMMENTLINE=2
4121val SCE_ECL_NUMBER=3
4122val SCE_ECL_STRING=4
4123val SCE_ECL_WORD0=5
4124val SCE_ECL_OPERATOR=6
4125val SCE_ECL_CHARACTER=7
4126val SCE_ECL_UUID=8
4127val SCE_ECL_PREPROCESSOR=9
4128val SCE_ECL_UNKNOWN=10
4129val SCE_ECL_IDENTIFIER=11
4130val SCE_ECL_STRINGEOL=12
4131val SCE_ECL_VERBATIM=13
4132val SCE_ECL_REGEX=14
4133val SCE_ECL_COMMENTLINEDOC=15
4134val SCE_ECL_WORD1=16
4135val SCE_ECL_COMMENTDOCKEYWORD=17
4136val SCE_ECL_COMMENTDOCKEYWORDERROR=18
4137val SCE_ECL_WORD2=19
4138val SCE_ECL_WORD3=20
4139val SCE_ECL_WORD4=21
4140val SCE_ECL_WORD5=22
4141val SCE_ECL_COMMENTDOC=23
4142val SCE_ECL_ADDED=24
4143val SCE_ECL_DELETED=25
4144val SCE_ECL_CHANGED=26
4145val SCE_ECL_MOVED=27
4146# Lexical states for SCLEX_OSCRIPT
4147lex OScript=SCLEX_OSCRIPT SCE_OSCRIPT_
4148val SCE_OSCRIPT_DEFAULT=0
4149val SCE_OSCRIPT_LINE_COMMENT=1
4150val SCE_OSCRIPT_BLOCK_COMMENT=2
4151val SCE_OSCRIPT_DOC_COMMENT=3
4152val SCE_OSCRIPT_PREPROCESSOR=4
4153val SCE_OSCRIPT_NUMBER=5
4154val SCE_OSCRIPT_SINGLEQUOTE_STRING=6
4155val SCE_OSCRIPT_DOUBLEQUOTE_STRING=7
4156val SCE_OSCRIPT_CONSTANT=8
4157val SCE_OSCRIPT_IDENTIFIER=9
4158val SCE_OSCRIPT_GLOBAL=10
4159val SCE_OSCRIPT_KEYWORD=11
4160val SCE_OSCRIPT_OPERATOR=12
4161val SCE_OSCRIPT_LABEL=13
4162val SCE_OSCRIPT_TYPE=14
4163val SCE_OSCRIPT_FUNCTION=15
4164val SCE_OSCRIPT_OBJECT=16
4165val SCE_OSCRIPT_PROPERTY=17
4166val SCE_OSCRIPT_METHOD=18
4167# Lexical states for SCLEX_VISUALPROLOG
4168lex VisualProlog=SCLEX_VISUALPROLOG SCE_VISUALPROLOG_
4169val SCE_VISUALPROLOG_DEFAULT=0
4170val SCE_VISUALPROLOG_KEY_MAJOR=1
4171val SCE_VISUALPROLOG_KEY_MINOR=2
4172val SCE_VISUALPROLOG_KEY_DIRECTIVE=3
4173val SCE_VISUALPROLOG_COMMENT_BLOCK=4
4174val SCE_VISUALPROLOG_COMMENT_LINE=5
4175val SCE_VISUALPROLOG_COMMENT_KEY=6
4176val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7
4177val SCE_VISUALPROLOG_IDENTIFIER=8
4178val SCE_VISUALPROLOG_VARIABLE=9
4179val SCE_VISUALPROLOG_ANONYMOUS=10
4180val SCE_VISUALPROLOG_NUMBER=11
4181val SCE_VISUALPROLOG_OPERATOR=12
4182val SCE_VISUALPROLOG_CHARACTER=13
4183val SCE_VISUALPROLOG_CHARACTER_TOO_MANY=14
4184val SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR=15
4185val SCE_VISUALPROLOG_STRING=16
4186val SCE_VISUALPROLOG_STRING_ESCAPE=17
4187val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=18
4188val SCE_VISUALPROLOG_STRING_EOL_OPEN=19
4189val SCE_VISUALPROLOG_STRING_VERBATIM=20
4190val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=21
4191val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=22
a33203cb 4192
d134f170
RD
4193# Events
4194
4195evt void StyleNeeded=2000(int position)
4196evt void CharAdded=2001(int ch)
4197evt void SavePointReached=2002(void)
4198evt void SavePointLeft=2003(void)
4199evt void ModifyAttemptRO=2004(void)
4200# GTK+ Specific to work around focus and accelerator problems:
4201evt void Key=2005(int ch, int modifiers)
1dcf666d
RD
4202evt void DoubleClick=2006(int modifiers, int position, int line)
4203evt void UpdateUI=2007(int updated)
4204evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev, int token, int annotationLinesAdded)
d134f170
RD
4205evt void MacroRecord=2009(int message, int wParam, int lParam)
4206evt void MarginClick=2010(int modifiers, int position, int margin)
4207evt void NeedShown=2011(int position, int length)
65ec6247 4208evt void Painted=2013(void)
1dcf666d 4209evt void UserListSelection=2014(int listType, string text, int position)
65ec6247 4210evt void URIDropped=2015(string text)
1dcf666d
RD
4211evt void DwellStart=2016(int position, int x, int y)
4212evt void DwellEnd=2017(int position, int x, int y)
a834585d 4213evt void Zoom=2018(void)
9e730a78
RD
4214evt void HotSpotClick=2019(int modifiers, int position)
4215evt void HotSpotDoubleClick=2020(int modifiers, int position)
4216evt void CallTipClick=2021(int position)
1dcf666d 4217evt void AutoCSelection=2022(string text, int position)
7e0c58e9
RD
4218evt void IndicatorClick=2023(int modifiers, int position)
4219evt void IndicatorRelease=2024(int modifiers, int position)
9e96e16f
RD
4220evt void AutoCCancelled=2025(void)
4221evt void AutoCCharDeleted=2026(void)
1dcf666d
RD
4222evt void HotSpotReleaseClick=2027(int modifiers, int position)
4223
4224cat Deprecated
4225
4226# Deprecated in 2.21
4227# The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
4228val SC_CP_DBCS=1
4229
4230# Deprecated in 2.30
4231
4232# In palette mode?
4233get bool GetUsePalette=2139(,)
4234
4235# In palette mode, Scintilla uses the environment's palette calls to display
4236# more colours. This may lead to ugly displays.
4237set void SetUsePalette=2039(bool usePalette,)