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