summaryrefslogtreecommitdiffstats
path: root/scintilla/scripts/HFacer.py
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2014-03-22 09:18:14 +0200
committerXhmikosR <xhmikosr@users.sourceforge.net>2014-03-22 09:37:54 +0200
commit1ed84233cf8faf680dd81fa3b2ef37b1d7686a03 (patch)
treed27f908e0a2dda782242b1612d03382d479de6b0 /scintilla/scripts/HFacer.py
parente7a0f350adc29d7a46bab8ff6ad501a7e6e41cec (diff)
downloadnotepad2-mod-1ed84233cf8faf680dd81fa3b2ef37b1d7686a03.zip
notepad2-mod-1ed84233cf8faf680dd81fa3b2ef37b1d7686a03.tar.gz
notepad2-mod-1ed84233cf8faf680dd81fa3b2ef37b1d7686a03.tar.bz2
Update scintilla to 3.4.0.4.2.25.904
Diffstat (limited to 'scintilla/scripts/HFacer.py')
-rw-r--r--scintilla/scripts/HFacer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scintilla/scripts/HFacer.py b/scintilla/scripts/HFacer.py
index 819181f..ed36df4 100644
--- a/scintilla/scripts/HFacer.py
+++ b/scintilla/scripts/HFacer.py
@@ -22,11 +22,13 @@ def printLexHFile(f):
def printHFile(f):
out = []
previousCategory = ""
+ anyProvisional = False
for name in f.order:
v = f.features[name]
if v["Category"] != "Deprecated":
if v["Category"] == "Provisional" and previousCategory != "Provisional":
out.append("#ifndef SCI_DISABLE_PROVISIONAL")
+ anyProvisional = True
previousCategory = v["Category"]
if v["FeatureType"] in ["fun", "get", "set"]:
featureDefineName = "SCI_" + name.upper()
@@ -37,7 +39,8 @@ def printHFile(f):
elif v["FeatureType"] in ["val"]:
if not ("SCE_" in name or "SCLEX_" in name):
out.append("#define " + name + " " + v["Value"])
- out.append("#endif")
+ if anyProvisional:
+ out.append("#endif")
return out
def RegenerateAll(root, showMaxID):