1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00
irssi/findsyntax.pl
Timo Sirainen e23760fb25 Fixed to work with multiline syntaxes (by lite)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@766 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-17 23:45:00 +00:00

15 lines
150 B
Perl
Executable File

#!/usr/bin/perl -w
while(<>) {
if(m!/\*.SYNTAX\:! || $tt) {
s!^\s+! !;
if (m#\*/#) {
$tt=0;
} else {
$tt=1;
chomp;
}
print;
}
}