1
0

add note type selector script for c

This commit is contained in:
valeth 2016-04-22 09:55:44 +02:00
parent 8c37a07517
commit 2e3ed1455f

View File

@ -14,3 +14,13 @@ def returnval(t):
else:
return "return NULL;"
def getNoteCandidates(t):
options = ["TODO", "FIXME", "XXX"]
if t:
options = [ x[len(t):] for x in options if x.startswith(t) ]
if len(options) == 1:
return options[0]
return "[" + ",".join(options) + "]"