mirror of
https://github.com/mirror/scintilla.git
synced 2025-10-18 00:33:04 +08:00
Fix to work when there are no provisional features.
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user