build: strip clang-format on/off directives from combined source
This commit is contained in:
parent
653545fd35
commit
a82802933a
@ -141,7 +141,8 @@ restart: for (let lno = 0; lno < source.length;) {
|
||||
}
|
||||
|
||||
source = source
|
||||
.map((line) => line.replace(/\s+$/, ''))
|
||||
.map(line => line.replace(/\/\* clang-format (on|off) \*\//g, ''))
|
||||
.map(line => line.replace(/\s+$/, ''))
|
||||
.join('\n')
|
||||
.replace(/\n{3,}/g, '\n\n')
|
||||
.replace(/\n*$/, '\n');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user