From: ntakahas Date: Fri, 9 Sep 2005 11:16:34 +0000 (+0000) Subject: Insert \ before # for auto-indent. X-Git-Tag: REL-1-3-0~125 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247bbfdcb7dfa7451e69bd59afb63c85840ffa43;p=m17n%2Fm17n-db.git Insert \ before # for auto-indent. --- diff --git a/CASE-MAPPING.awk b/CASE-MAPPING.awk index fdb2dcf..c1bed2f 100644 --- a/CASE-MAPPING.awk +++ b/CASE-MAPPING.awk @@ -39,23 +39,24 @@ function mtext (str) { printf (" "); } -FILE == 1 && /^[^#]/ && NF == 5 { - printf ("0x%s ( ", $1); - mtext ($2); - mtext ($3); - mtext ($4); - printf (")\n"); - X[$1] = 1; - } +FILE == 1 && /^[^\#]/ && NF == 5 { + printf ("0x%s ( ", $1); + mtext ($2); + mtext ($3); + mtext ($4); + printf (")\n"); + X[$1] = 1; + next; +} /^0000;/ { FILE = 2; } -FILE == 2 && /^[^#]/ && ($13 || $14 || $15) && ! X[$1] { - if (! $13) $13 = $1; - if (! $14) $14 = $1; - if (! $15) $15 = $1; - printf ("0x%s ( \"\\u%s\" \"\\u%s\" \"\\u%s\" )\n", - $1, $14, $15, $13); +FILE == 2 && /^[^\#]/ && ($13 || $14 || $15) && ! X[$1] { + if (! $13) $13 = $1; + if (! $14) $14 = $1; + if (! $15) $15 = $1; + printf ("0x%s ( \"\\u%s\" \"\\u%s\" \"\\u%s\" )\n", + $1, $14, $15, $13); }