Closed imgod2u closed 3 years ago
I'm attempting to get the prefix of an instance as the regex of an AUTO_TEMPLATE:
/* my_module AUTO_TEMPLATE "\([a-z]+\)_" ( .\([A-Z_]+\) (@"(upcase @)"_\1), ); */
When I expand, it gives me this error:
Symbol’s value as variable is void: prefix shell returned 255
I think the @ substitution is done correctly but "upcase" interpretes this as an invalid symbol?
Found the solution, the @ needs to be quoted propertly:
/* my_module AUTO_TEMPLATE "\([a-z]+\)_" ( .\([A-Z_]+\) (@"(upcase \\"@\\")"_\1), ); */
I'm attempting to get the prefix of an instance as the regex of an AUTO_TEMPLATE:
When I expand, it gives me this error:
I think the @ substitution is done correctly but "upcase" interpretes this as an invalid symbol?