add note type selector script for c
This commit is contained in:
parent
8c37a07517
commit
2e3ed1455f
@ -14,3 +14,13 @@ def returnval(t):
|
|||||||
else:
|
else:
|
||||||
return "return NULL;"
|
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) + "]"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user