mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
move clang-format-xs into utils
This commit is contained in:
parent
8f6e67b9b3
commit
7379833b53
5 changed files with 1 additions and 1 deletions
10
utils/clang-format-xs/format-xs-2.pl
Normal file
10
utils/clang-format-xs/format-xs-2.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $doc = do { local $/; <> };
|
||||
|
||||
$doc =~ s{\}[ \t]*/[*] -xs- [*]/\s*}{}g;
|
||||
$doc =~ s{^[ \t]*?/[*] =xs= (.*?) [*]/(\s*\{$)?}{$1}gms;
|
||||
$doc =~ s{^[ \t]*?/[*] clang-format off [*]//[*] =xs= (.*?) [*]/\s?/[*] clang-format on [*]/(\s*\{$)?}{$1}gms;
|
||||
|
||||
print $doc;
|
||||
Loading…
Add table
Add a link
Reference in a new issue