diff options
| author | Tom Lane | 2023-05-19 21:24:48 +0000 |
|---|---|---|
| committer | Tom Lane | 2023-05-19 21:24:48 +0000 |
| commit | 0245f8db36f375326c2bae0c3420d3c77714e72d (patch) | |
| tree | 7ce91f23658a05ea24be4703fb06cdc6b56248f7 /src/backend/snowball | |
| parent | df6b19fbbc20d830de91d9bea68715a39635b568 (diff) | |
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files.
This set of diffs is a bit larger than typical. We've updated to
pg_bsd_indent 2.1.2, which properly indents variable declarations that
have multi-line initialization expressions (the continuation lines are
now indented one tab stop). We've also updated to perltidy version
20230309 and changed some of its settings, which reduces its desire to
add whitespace to lines to make assignments etc. line up. Going
forward, that should make for fewer random-seeming changes to existing
code.
Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
Diffstat (limited to 'src/backend/snowball')
| -rw-r--r-- | src/backend/snowball/snowball_create.pl | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/src/backend/snowball/snowball_create.pl b/src/backend/snowball/snowball_create.pl index f4b58ada1cb..35d1cd9621b 100644 --- a/src/backend/snowball/snowball_create.pl +++ b/src/backend/snowball/snowball_create.pl @@ -10,34 +10,34 @@ my $input_path = ''; my $depfile; our @languages = qw( - arabic - armenian - basque - catalan - danish - dutch - english - finnish - french - german - greek - hindi - hungarian - indonesian - irish - italian - lithuanian - nepali - norwegian - portuguese - romanian - russian - serbian - spanish - swedish - tamil - turkish - yiddish + arabic + armenian + basque + catalan + danish + dutch + english + finnish + french + german + greek + hindi + hungarian + indonesian + irish + italian + lithuanian + nepali + norwegian + portuguese + romanian + russian + serbian + spanish + swedish + tamil + turkish + yiddish ); # Names of alternative dictionaries for all-ASCII words. If not @@ -48,13 +48,12 @@ our @languages = qw( our %ascii_languages = ( 'hindi' => 'english', - 'russian' => 'english', -); + 'russian' => 'english',); GetOptions( - 'depfile' => \$depfile, - 'outdir:s' => \$outdir_path, - 'input:s' => \$input_path) || usage(); + 'depfile' => \$depfile, + 'outdir:s' => \$outdir_path, + 'input:s' => \$input_path) || usage(); # Make sure input_path ends in a slash if needed. if ($input_path ne '' && substr($input_path, -1) ne '/') @@ -110,8 +109,8 @@ sub GenerateTsearchFiles foreach my $lang (@languages) { my $asclang = $ascii_languages{$lang} || $lang; - my $txt = $tmpl; - my $stop = ''; + my $txt = $tmpl; + my $stop = ''; my $stopword_path = "$input_path/stopwords/$lang.stop"; if (-s "$stopword_path") |
