Is is possible to write SyntaxInformation
of "ArgumentsPattern"
for functions of the form:
f[a,b][x,y,z]
That is, I get syntax coloring such that the first set of square braces takes exactly 2 arguments, and the second set takes 3?
I tried this:
SyntaxInformation[f[_, _]] = {"ArgumentsPattern" -> {_, _, _}}
But it doesn't take it
SyntaxInformation[f] = sompatterns
andsomepatterns
need to follow a very restricted syntax (as documented). I think that's because they're interpreted by the front end, not the kernel. This is of course just an educated guess. +1 though, interesting question. $\endgroup$