Commit addeabdb authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Method names should start with a period

Raise a ParseError exception if not.

Fixes #1885.
parent 4b586e6e
......@@ -691,6 +691,8 @@ def parse_func(tl, rt_type=None, pobj=None):
raise ParseError("Method name '%s' is illegal" % fname[1:])
elif not is_c_name(fname):
raise ParseError("Function name '%s' is illegal" % fname)
elif pobj != None and fname[0] != ".":
raise ParseError("Method name '%s' must start with ." % fname)
t = tl.get_token()
if t.str != "(":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment