summaryrefslogtreecommitdiffstats
path: root/scintilla/include/Face.py
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/include/Face.py')
-rw-r--r--scintilla/include/Face.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scintilla/include/Face.py b/scintilla/include/Face.py
index 642b957..2cf4b89 100644
--- a/scintilla/include/Face.py
+++ b/scintilla/include/Face.py
@@ -12,7 +12,7 @@ def decodeFunction(featureVal):
nameIdent, params = rest.split("(")
name, value = nameIdent.split("=")
params, rest = params.split(")")
- param1, param2 = params.split(",")[0:2]
+ param1, param2 = params.split(",")
return retType, name, value, param1, param2
def decodeEvent(featureVal):
@@ -60,7 +60,11 @@ class Face:
currentCommentFinished = 1
featureType, featureVal = line.split(" ", 1)
if featureType in ["fun", "get", "set"]:
- retType, name, value, param1, param2 = decodeFunction(featureVal)
+ try:
+ retType, name, value, param1, param2 = decodeFunction(featureVal)
+ except ValueError:
+ print("Failed to decode %s" % line)
+ raise
p1 = decodeParam(param1)
p2 = decodeParam(param2)
self.features[name] = {