aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/Face.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-06-18 14:09:34 +1000
committerNeil <nyamatongwe@gmail.com>2019-06-18 14:09:34 +1000
commit9d67920dbd7d951b2de4da1b3d68f12b42999153 (patch)
tree56dcff87548c4bcc537f0b783ddc3f2706415077 /scripts/Face.py
parentab38beeb9a31a5df65b6e2a41251ca36574065f3 (diff)
downloadscintilla-mirror-9d67920dbd7d951b2de4da1b3d68f12b42999153.tar.gz
Feature [feature-requests:#1297] 7: Add value aliases for PascalCase constants.
For example, FolderEnd instead of Folderend. Could also be used for a snake_case option if desired.
Diffstat (limited to 'scripts/Face.py')
-rw-r--r--scripts/Face.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Face.py b/scripts/Face.py
index 22c2943e6..c340dcbab 100644
--- a/scripts/Face.py
+++ b/scripts/Face.py
@@ -47,6 +47,7 @@ class Face:
self.features = {}
self.values = {}
self.events = {}
+ self.aliases = {}
def ReadFromFile(self, name):
currentCategory = ""
@@ -120,4 +121,9 @@ class Face:
"Comment": currentComment }
self.order.append(name)
currentComment = []
+ elif featureType == "ali":
+ # Enumeration alias
+ name, value = featureVal.split("=", 1)
+ self.aliases[name] = value
+ currentComment = []