Closed futurehome closed 2 years ago
There's an example on the FAQ: https://github.com/veripool/verilog-mode/blob/master/FAQ.rst#how-do-i-use-auto-template-to-lower-case-all-signals
But to answer your question you need to quote and escape the \1
.DFT_\(.*\) (@"(downcase \\"\1\\")"[]),
Great thanks. It works.
I try to use the following template to convert part of the port name to lowercase, it gives the error: "Symbol's value as variable is void", the \1 has been replaced by the matched part in the port name, but seems it's been treated as variable, not string. Why?
.DFT_(.*) (@"(downcase \1)"[]),