Skip to content

Commit 66a683f

Browse files
committed
Upgrade to scintilla 556 or lexilla 544
1 parent 0f6b27e commit 66a683f

10 files changed

+260
-20
lines changed

LexillaPre.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="Common.tasks" />
44

55
<Target Name="Download" Outputs="lexilla.zip">
6-
<DownloadFile Address="https://www.scintilla.org/lexilla530.zip" FileName="lexilla.zip" />
6+
<DownloadFile Address="https://www.scintilla.org/lexilla544.zip" FileName="lexilla.zip" />
77
</Target>
88

99
<Target Name="Extract" Inputs="lexilla.zip" Outputs="lexilla">

ScintillaPre.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="Common.tasks" />
44

55
<Target Name="Download" Outputs="scintilla.zip">
6-
<DownloadFile Address="https://www.scintilla.org/scintilla541.zip" FileName="scintilla.zip" />
6+
<DownloadFile Address="https://www.scintilla.org/scintilla556.zip" FileName="scintilla.zip" />
77
</Target>
88

99
<Target Name="Extract" Inputs="scintilla.zip" Outputs="scintilla">

scintilla/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Mingw-w64 is known to work. Other compilers will probably not work.
6767
Only Scintilla will build with GTK+ on Windows. SciTE will not work.
6868

6969
Make builds both a static library version of Scintilla with lexers (scintilla.a) and
70-
a shared library without lexers (libscintilla.so or or libscintilla.dll).
70+
a shared library without lexers (libscintilla.so or libscintilla.dll).
7171

7272
To build Scintilla, make in the scintilla/gtk directory
7373
cd scintilla\gtk

scintilla/include/Scintilla.h

+55-7
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
166166
#define SC_MARKNUM_FOLDERSUB 29
167167
#define SC_MARKNUM_FOLDER 30
168168
#define SC_MARKNUM_FOLDEROPEN 31
169+
#define SC_MASK_HISTORY 0x01E00000
169170
#define SC_MASK_FOLDERS 0xFE000000
170171
#define SCI_MARKERDEFINE 2040
171172
#define SCI_MARKERSETFORE 2041
@@ -281,6 +282,17 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
281282
#define SCI_STYLESETHOTSPOT 2409
282283
#define SCI_STYLESETCHECKMONOSPACED 2254
283284
#define SCI_STYLEGETCHECKMONOSPACED 2255
285+
#define SC_STRETCH_ULTRA_CONDENSED 1
286+
#define SC_STRETCH_EXTRA_CONDENSED 2
287+
#define SC_STRETCH_CONDENSED 3
288+
#define SC_STRETCH_SEMI_CONDENSED 4
289+
#define SC_STRETCH_NORMAL 5
290+
#define SC_STRETCH_SEMI_EXPANDED 6
291+
#define SC_STRETCH_EXPANDED 7
292+
#define SC_STRETCH_EXTRA_EXPANDED 8
293+
#define SC_STRETCH_ULTRA_EXPANDED 9
294+
#define SCI_STYLESETSTRETCH 2258
295+
#define SCI_STYLEGETSTRETCH 2259
284296
#define SCI_STYLESETINVISIBLEREPRESENTATION 2256
285297
#define SCI_STYLEGETINVISIBLEREPRESENTATION 2257
286298
#define SC_ELEMENT_LIST 0
@@ -295,6 +307,8 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
295307
#define SC_ELEMENT_SELECTION_SECONDARY_BACK 15
296308
#define SC_ELEMENT_SELECTION_INACTIVE_TEXT 16
297309
#define SC_ELEMENT_SELECTION_INACTIVE_BACK 17
310+
#define SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT 18
311+
#define SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK 19
298312
#define SC_ELEMENT_CARET 40
299313
#define SC_ELEMENT_CARET_ADDITIONAL 41
300314
#define SC_ELEMENT_CARET_LINE_BACK 50
@@ -339,6 +353,21 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
339353
#define SCI_GETCHARACTERCATEGORYOPTIMIZATION 2721
340354
#define SCI_BEGINUNDOACTION 2078
341355
#define SCI_ENDUNDOACTION 2079
356+
#define SCI_GETUNDOSEQUENCE 2799
357+
#define SCI_GETUNDOACTIONS 2790
358+
#define SCI_SETUNDOSAVEPOINT 2791
359+
#define SCI_GETUNDOSAVEPOINT 2792
360+
#define SCI_SETUNDODETACH 2793
361+
#define SCI_GETUNDODETACH 2794
362+
#define SCI_SETUNDOTENTATIVE 2795
363+
#define SCI_GETUNDOTENTATIVE 2796
364+
#define SCI_SETUNDOCURRENT 2797
365+
#define SCI_GETUNDOCURRENT 2798
366+
#define SCI_PUSHUNDOACTIONTYPE 2800
367+
#define SCI_CHANGELASTUNDOACTIONTEXT 2801
368+
#define SCI_GETUNDOACTIONTYPE 2802
369+
#define SCI_GETUNDOACTIONPOSITION 2803
370+
#define SCI_GETUNDOACTIONTEXT 2804
342371
#define INDIC_PLAIN 0
343372
#define INDIC_SQUIGGLE 1
344373
#define INDIC_TT 2
@@ -431,6 +460,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
431460
#define SCI_AUTOCGETAUTOHIDE 2119
432461
#define SC_AUTOCOMPLETE_NORMAL 0
433462
#define SC_AUTOCOMPLETE_FIXED_SIZE 1
463+
#define SC_AUTOCOMPLETE_SELECT_FIRST_ITEM 2
434464
#define SCI_AUTOCSETOPTIONS 2638
435465
#define SCI_AUTOCGETOPTIONS 2639
436466
#define SCI_AUTOCSETDROPRESTOFWORD 2270
@@ -443,6 +473,8 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
443473
#define SCI_AUTOCGETMAXWIDTH 2209
444474
#define SCI_AUTOCSETMAXHEIGHT 2210
445475
#define SCI_AUTOCGETMAXHEIGHT 2211
476+
#define SCI_AUTOCSETSTYLE 2109
477+
#define SCI_AUTOCGETSTYLE 2120
446478
#define SCI_SETINDENT 2122
447479
#define SCI_GETINDENT 2123
448480
#define SCI_SETUSETABS 2124
@@ -500,6 +532,12 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
500532
#define SC_CHANGE_HISTORY_INDICATORS 4
501533
#define SCI_SETCHANGEHISTORY 2780
502534
#define SCI_GETCHANGEHISTORY 2781
535+
#define SC_UNDO_SELECTION_HISTORY_DISABLED 0
536+
#define SC_UNDO_SELECTION_HISTORY_ENABLED 1
537+
#define SCI_SETUNDOSELECTIONHISTORY 2782
538+
#define SCI_GETUNDOSELECTIONHISTORY 2783
539+
#define SCI_SETSELECTIONSERIALIZED 2784
540+
#define SCI_GETSELECTIONSERIALIZED 2785
503541
#define SCI_GETFIRSTVISIBLELINE 2152
504542
#define SCI_GETLINE 2153
505543
#define SCI_GETLINECOUNT 2154
@@ -735,7 +773,9 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
735773
#define SCI_CANCEL 2325
736774
#define SCI_DELETEBACK 2326
737775
#define SCI_TAB 2327
776+
#define SCI_LINEINDENT 2813
738777
#define SCI_BACKTAB 2328
778+
#define SCI_LINEDEDENT 2814
739779
#define SCI_NEWLINE 2329
740780
#define SCI_FORMFEED 2330
741781
#define SCI_VCHOME 2331
@@ -959,6 +999,9 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
959999
#define SCI_SETLAYOUTTHREADS 2775
9601000
#define SCI_GETLAYOUTTHREADS 2776
9611001
#define SCI_COPYALLOWLINE 2519
1002+
#define SCI_CUTALLOWLINE 2810
1003+
#define SCI_SETCOPYSEPARATOR 2811
1004+
#define SCI_GETCOPYSEPARATOR 2812
9621005
#define SCI_GETCHARACTERPOINTER 2520
9631006
#define SCI_GETRANGEPOINTER 2643
9641007
#define SCI_GETGAPPOSITION 2644
@@ -1084,6 +1127,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
10841127
#define SC_TECHNOLOGY_DIRECTWRITE 1
10851128
#define SC_TECHNOLOGY_DIRECTWRITERETAIN 2
10861129
#define SC_TECHNOLOGY_DIRECTWRITEDC 3
1130+
#define SC_TECHNOLOGY_DIRECT_WRITE_1 4
10871131
#define SCI_SETTECHNOLOGY 2630
10881132
#define SCI_GETTECHNOLOGY 2631
10891133
#define SCI_CREATELOADER 2632
@@ -1357,7 +1401,7 @@ struct Sci_RangeToFormatFull {
13571401

13581402
#ifndef __cplusplus
13591403
/* For the GTK+ platform, g-ir-scanner needs to have these typedefs. This
1360-
* is not required in C++ code and actually seems to break ScintillaEditPy */
1404+
* is not required in C++ code and has caused problems in the past. */
13611405
typedef struct Sci_NotifyHeader Sci_NotifyHeader;
13621406
typedef struct SCNotification SCNotification;
13631407
#endif
@@ -1375,21 +1419,25 @@ struct SCNotification {
13751419
Sci_NotifyHeader nmhdr;
13761420
Sci_Position position;
13771421
/* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */
1378-
/* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */
1422+
/* SCN_MARGINRIGHTCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, */
1423+
/* SCN_CALLTIPCLICK, */
13791424
/* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */
13801425
/* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
1381-
/* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
1426+
/* SCN_USERLISTSELECTION, SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, */
1427+
/* SCN_AUTOCSELECTIONCHANGE */
13821428

13831429
int ch;
13841430
/* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, */
13851431
/* SCN_USERLISTSELECTION */
13861432
int modifiers;
13871433
/* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */
13881434
/* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
1435+
/* SCN_MARGINCLICK, SCN_MARGINRIGHTCLICK */
13891436

13901437
int modificationType; /* SCN_MODIFIED */
13911438
const char *text;
1392-
/* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
1439+
/* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_URIDROPPED, */
1440+
/* SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, SCN_AUTOCSELECTIONCHANGE */
13931441

13941442
Sci_Position length; /* SCN_MODIFIED */
13951443
Sci_Position linesAdded; /* SCN_MODIFIED */
@@ -1399,15 +1447,15 @@ struct SCNotification {
13991447
Sci_Position line; /* SCN_MODIFIED */
14001448
int foldLevelNow; /* SCN_MODIFIED */
14011449
int foldLevelPrev; /* SCN_MODIFIED */
1402-
int margin; /* SCN_MARGINCLICK */
1403-
int listType; /* SCN_USERLISTSELECTION */
1450+
int margin; /* SCN_MARGINCLICK, SCN_MARGINRIGHTCLICK */
1451+
int listType; /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTIONCHANGE */
14041452
int x; /* SCN_DWELLSTART, SCN_DWELLEND */
14051453
int y; /* SCN_DWELLSTART, SCN_DWELLEND */
14061454
int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */
14071455
Sci_Position annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */
14081456
int updated; /* SCN_UPDATEUI */
14091457
int listCompletionMethod;
1410-
/* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION, */
1458+
/* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION */
14111459
int characterSource; /* SCN_CHARADDED */
14121460
};
14131461

scintilla/include/Scintilla.iface

+109-2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ ali SC_MARKNUM_FOLDERTAIL=FOLDER_TAIL
410410
ali SC_MARKNUM_FOLDERSUB=FOLDER_SUB
411411
ali SC_MARKNUM_FOLDEROPEN=FOLDER_OPEN
412412

413+
val SC_MASK_HISTORY=0x01E00000
414+
413415
# SC_MASK_FOLDERS doesn't go in an enumeration as larger than max 32-bit positive integer
414416
val SC_MASK_FOLDERS=0xFE000000
415417

@@ -698,6 +700,23 @@ set void StyleSetCheckMonospaced=2254(int style, bool checkMonospaced)
698700
# Get whether a style may be monospaced.
699701
get bool StyleGetCheckMonospaced=2255(int style,)
700702

703+
enu FontStretch=SC_STRETCH_
704+
val SC_STRETCH_ULTRA_CONDENSED=1
705+
val SC_STRETCH_EXTRA_CONDENSED=2
706+
val SC_STRETCH_CONDENSED=3
707+
val SC_STRETCH_SEMI_CONDENSED=4
708+
val SC_STRETCH_NORMAL=5
709+
val SC_STRETCH_SEMI_EXPANDED=6
710+
val SC_STRETCH_EXPANDED=7
711+
val SC_STRETCH_EXTRA_EXPANDED=8
712+
val SC_STRETCH_ULTRA_EXPANDED=9
713+
714+
# Set the stretch of characters of a style.
715+
set void StyleSetStretch=2258(int style, FontStretch stretch)
716+
717+
# Get the stretch of characters of a style.
718+
get FontStretch StyleGetStretch=2259(int style,)
719+
701720
# Set the invisible representation for a style.
702721
set void StyleSetInvisibleRepresentation=2256(int style, string representation)
703722

@@ -717,6 +736,8 @@ val SC_ELEMENT_SELECTION_SECONDARY_TEXT=14
717736
val SC_ELEMENT_SELECTION_SECONDARY_BACK=15
718737
val SC_ELEMENT_SELECTION_INACTIVE_TEXT=16
719738
val SC_ELEMENT_SELECTION_INACTIVE_BACK=17
739+
val SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT=18
740+
val SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK=19
720741
val SC_ELEMENT_CARET=40
721742
val SC_ELEMENT_CARET_ADDITIONAL=41
722743
val SC_ELEMENT_CARET_LINE_BACK=50
@@ -833,6 +854,51 @@ fun void BeginUndoAction=2078(,)
833854
# End a sequence of actions that is undone and redone as a unit.
834855
fun void EndUndoAction=2079(,)
835856

857+
# Is an undo sequence active?
858+
get int GetUndoSequence=2799(,)
859+
860+
# How many undo actions are in the history?
861+
get int GetUndoActions=2790(,)
862+
863+
# Set action as the save point
864+
set void SetUndoSavePoint=2791(int action,)
865+
866+
# Which action is the save point?
867+
get int GetUndoSavePoint=2792(,)
868+
869+
# Set action as the detach point
870+
set void SetUndoDetach=2793(int action,)
871+
872+
# Which action is the detach point?
873+
get int GetUndoDetach=2794(,)
874+
875+
# Set action as the tentative point
876+
set void SetUndoTentative=2795(int action,)
877+
878+
# Which action is the tentative point?
879+
get int GetUndoTentative=2796(,)
880+
881+
# Set action as the current point
882+
set void SetUndoCurrent=2797(int action,)
883+
884+
# Which action is the current point?
885+
get int GetUndoCurrent=2798(,)
886+
887+
# Push one action onto undo history with no text
888+
fun void PushUndoActionType=2800(int type, position pos)
889+
890+
# Set the text and length of the most recently pushed action
891+
fun void ChangeLastUndoActionText=2801(position length, string text)
892+
893+
# What is the type of an action?
894+
get int GetUndoActionType=2802(int action,)
895+
896+
# What is the position of an action?
897+
get position GetUndoActionPosition=2803(int action,)
898+
899+
# What is the text of an action?
900+
get int GetUndoActionText=2804(int action, stringresult text)
901+
836902
# Indicator style enumeration and some constants
837903
enu IndicatorStyle=INDIC_
838904
val INDIC_PLAIN=0
@@ -1058,6 +1124,8 @@ enu AutoCompleteOption=SC_AUTOCOMPLETE_
10581124
val SC_AUTOCOMPLETE_NORMAL=0
10591125
# Win32 specific:
10601126
val SC_AUTOCOMPLETE_FIXED_SIZE=1
1127+
# Always select the first item in the autocompletion list:
1128+
val SC_AUTOCOMPLETE_SELECT_FIRST_ITEM=2
10611129

10621130
# Set autocompletion options.
10631131
set void AutoCSetOptions=2638(AutoCompleteOption options,)
@@ -1100,6 +1168,12 @@ set void AutoCSetMaxHeight=2210(int rowCount,)
11001168
# Set the maximum height, in rows, of auto-completion and user lists.
11011169
get int AutoCGetMaxHeight=2211(,)
11021170

1171+
# Set the style number used for auto-completion and user lists fonts.
1172+
set void AutoCSetStyle=2109(int style,)
1173+
1174+
# Get the style number used for auto-completion and user lists fonts.
1175+
get int AutoCGetStyle=2120(,)
1176+
11031177
# Set the number of spaces used for one level of indentation.
11041178
set void SetIndent=2122(int indentSize,)
11051179

@@ -1260,6 +1334,22 @@ set void SetChangeHistory=2780(ChangeHistoryOption changeHistory,)
12601334
# Report change history status.
12611335
get ChangeHistoryOption GetChangeHistory=2781(,)
12621336

1337+
enu UndoSelectionHistoryOption=SC_UNDO_SELECTION_HISTORY_
1338+
val SC_UNDO_SELECTION_HISTORY_DISABLED=0
1339+
val SC_UNDO_SELECTION_HISTORY_ENABLED=1
1340+
1341+
# Enable or disable undo selection history.
1342+
set void SetUndoSelectionHistory=2782(UndoSelectionHistoryOption undoSelectionHistory,)
1343+
1344+
# Report undo selection history status.
1345+
get UndoSelectionHistoryOption GetUndoSelectionHistory=2783(,)
1346+
1347+
# Set selection from serialized form.
1348+
set void SetSelectionSerialized=2784(, string selectionString)
1349+
1350+
# Retrieve serialized form of selection.
1351+
get position GetSelectionSerialized=2785(, stringresult selectionString)
1352+
12631353
# Retrieve the display line at the top of the display.
12641354
get line GetFirstVisibleLine=2152(,)
12651355

@@ -1936,9 +2026,16 @@ fun void DeleteBack=2326(,)
19362026
# If more than one line selected, indent the lines.
19372027
fun void Tab=2327(,)
19382028

1939-
# Dedent the selected lines.
2029+
# Indent the current and selected lines.
2030+
fun void LineIndent=2813(,)
2031+
2032+
# If selection is empty or all on one line dedent the line if caret is at start, else move caret.
2033+
# If more than one line selected, dedent the lines.
19402034
fun void BackTab=2328(,)
19412035

2036+
# Dedent the current and selected lines.
2037+
fun void LineDedent=2814(,)
2038+
19422039
# Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
19432040
fun void NewLine=2329(,)
19442041

@@ -2611,6 +2708,15 @@ get int GetLayoutThreads=2776(,)
26112708
# Copy the selection, if selection empty copy the line with the caret
26122709
fun void CopyAllowLine=2519(,)
26132710

2711+
# Cut the selection, if selection empty cut the line with the caret
2712+
fun void CutAllowLine=2810(,)
2713+
2714+
# Set the string to separate parts when copying a multiple selection.
2715+
set void SetCopySeparator=2811(, string separator)
2716+
2717+
# Get the string to separate parts when copying a multiple selection.
2718+
get int GetCopySeparator=2812(, stringresult separator)
2719+
26142720
# Compact the document buffer and return a read-only pointer to the
26152721
# characters in the document.
26162722
get pointer GetCharacterPointer=2520(,)
@@ -2649,7 +2755,7 @@ set void SetExtraDescent=2527(int extraDescent,)
26492755
get int GetExtraDescent=2528(,)
26502756

26512757
# Which symbol was defined for markerNumber with MarkerDefine
2652-
fun int MarkerSymbolDefined=2529(int markerNumber,)
2758+
fun MarkerSymbol MarkerSymbolDefined=2529(int markerNumber,)
26532759

26542760
# Set the text in the text margin for a line
26552761
set void MarginSetText=2530(line line, string text)
@@ -2986,6 +3092,7 @@ val SC_TECHNOLOGY_DEFAULT=0
29863092
val SC_TECHNOLOGY_DIRECTWRITE=1
29873093
val SC_TECHNOLOGY_DIRECTWRITERETAIN=2
29883094
val SC_TECHNOLOGY_DIRECTWRITEDC=3
3095+
val SC_TECHNOLOGY_DIRECT_WRITE_1=4
29893096

29903097
ali SC_TECHNOLOGY_DIRECTWRITE=DIRECT_WRITE
29913098
ali SC_TECHNOLOGY_DIRECTWRITERETAIN=DIRECT_WRITE_RETAIN

0 commit comments

Comments
 (0)