I want clang-format to not modify comment lines I use to separate functions from each other. I think commentPragmas
is the right option for that, but I can't find info on the clang-format regex format.
I tried commentPragmas: '^/\*-.*'
to capture my separator lines that look like this
/*------------------------------------------------------------------*/
But the above regex did not work... Where can I look up the syntax for regexes for clang-format?