mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
check xs format
This commit is contained in:
parent
0548bb1a3c
commit
66a7cc3c34
5 changed files with 246 additions and 0 deletions
10
.github/workflows/clangformat/format-xs-2.pl
vendored
Normal file
10
.github/workflows/clangformat/format-xs-2.pl
vendored
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