Skip to content

Commit d59e56f

Browse files
committed
Merge pull request #1042 from Gama11/FixAdditionalKeywords
Scintilla update: use the same keyword IDs for additional keywords
2 parents eb9f143 + ed247f5 commit d59e56f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

External/3rdParty/Scintilla/additional_keywords.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
3434
WordList ppDefinitions;
3535
WordList markerList;
3636
struct SymbolValue {
37-
@@ -589,6 +595,15 @@
38-
case 5:
39-
wordListN = &markerList;
37+
@@ -587,6 +593,15 @@
38+
wordListN = &ppDefinitions;
4039
break;
41-
+ case 6:
40+
case 5:
4241
+ wordListN = &keywords5;
4342
+ break;
44-
+ case 7:
43+
+ case 6:
4544
+ wordListN = &keywords6;
4645
+ break;
47-
+ case 8:
46+
+ case 7:
4847
+ wordListN = &keywords7;
4948
+ break;
49+
+ case 8:
50+
wordListN = &markerList;
51+
break;
5052
}
51-
Sci_Position firstModification = -1;
52-
if (wordListN) {
5353
@@ -809,6 +824,12 @@
5454
sc.ChangeState(SCE_C_WORD2|activitySet);
5555
} else if (keywords4.InList(s)) {

FlashDevelop/Bin/Debug/SciLexer.dll

0 Bytes
Binary file not shown.

FlashDevelop/Bin/Debug/Settings/Languages/Haxe.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
<keyword key="1" class="haxe-additional-keywords" />
4040
<keyword key="2" class="haxe-documentation-keywords" />
4141
<keyword key="3" class="haxe-primary-keywords" />
42-
<keyword key="6" class="haxe-additional-keywords3" />
43-
<keyword key="7" class="haxe-additional-keywords4" />
44-
<keyword key="8" class="haxe-additional-keywords5" />
42+
<keyword key="5" class="haxe-additional-keywords3" />
43+
<keyword key="6" class="haxe-additional-keywords4" />
44+
<keyword key="7" class="haxe-additional-keywords5" />
4545
</use-keywords>
4646
<!-- COLORING_START -->
4747
<editor-style caret-fore="0x000000" caretline-back="0xececec" selection-fore="0xffffff" selection-back="0x3399ff" colorize-marker-back="true" margin-fore="0xffffff" margin-back="0xffffff" marker-back="0xbcbcbc" />

0 commit comments

Comments
 (0)