Scintilla.iface 144 KB

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