diff options
| author | nyamatongwe <unknown> | 2013-01-19 13:27:58 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2013-01-19 13:27:58 +1100 | 
| commit | 24ac7c2923e2de7bc3d60679e7b6755f7a7077f3 (patch) | |
| tree | 874a00bdeebe422786334e049b6bfb3882c29449 /include/HFacer.py | |
| parent | b0b690ee11bb21e262561d89683444db4e697cf5 (diff) | |
| download | scintilla-mirror-24ac7c2923e2de7bc3d60679e7b6755f7a7077f3.tar.gz | |
Implement provisional category and place Unicode line ends and substyles into it.
Diffstat (limited to 'include/HFacer.py')
| -rwxr-xr-x | include/HFacer.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/include/HFacer.py b/include/HFacer.py index 074ce96be..aa6b0f0a2 100755 --- a/include/HFacer.py +++ b/include/HFacer.py @@ -20,9 +20,13 @@ def printLexHFile(f,out):  				out.write("#define " + name + " " + v["Value"] + "\n")  def printHFile(f,out): +	previousCategory = ""  	for name in f.order:  		v = f.features[name]  		if v["Category"] != "Deprecated": +			if v["Category"] == "Provisional" and previousCategory != "Provisional": +				out.write("#ifndef SCI_DISABLE_PROVISIONAL\n") +			previousCategory = v["Category"]  			if v["FeatureType"] in ["fun", "get", "set"]:  				featureDefineName = "SCI_" + name.upper()  				out.write("#define " + featureDefineName + " " + v["Value"] + "\n") @@ -32,6 +36,7 @@ def printHFile(f,out):  			elif v["FeatureType"] in ["val"]:  				if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")):  					out.write("#define " + name + " " + v["Value"] + "\n") +	out.write("#endif\n")  def CopyWithInsertion(input, output, genfn, definition):  	copying = 1 | 
