From 247bbfdcb7dfa7451e69bd59afb63c85840ffa43 Mon Sep 17 00:00:00 2001 From: ntakahas Date: Fri, 9 Sep 2005 11:16:34 +0000 Subject: [PATCH] Insert \ before # for auto-indent. --- CASE-MAPPING.awk | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) 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); } -- 1.7.10.4