From cbdb6d9145df09f406f2bf6525e4c97e3f9ae608 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 5 Jun 2012 09:02:36 +0200 Subject: maint: fix comment typos Using http://github.com/lyda/misspell-check, massage its output into sed commands to perform the suggested changes. Initially, I filtered out the THRU->Through changes, because that failed to retain capitalization in the grammar token. Instead, do this manually, beforehand: sed -i s/THRU/THROUGH/ tests/existing.at git ls-files|misspellings -f -|perl -nl \ -e '/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/ or next;' \ -e '($file,$n,$l,$r)=($1,$2,$3,$4); $q="'\''"; $r=~s/$q/$q\\$q$q/g;'\ -e 'print "sed -i $q${n}s!$l!$r!$q $file"'|bash --- tests/existing.at | 6 +++--- tests/local.at | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/existing.at b/tests/existing.at index a34f9238..582f6b3d 100644 --- a/tests/existing.at +++ b/tests/existing.at @@ -1478,7 +1478,7 @@ AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]], %token RAND %token SRAND %token COPY -%token THRU +%token THROUGH %token TOP %token BOTTOM %token UPPER @@ -1604,12 +1604,12 @@ placeless_element: {} DELIMITED | COPY TEXT - | COPY TEXT THRU + | COPY TEXT THROUGH {} DELIMITED {} until - | COPY THRU + | COPY THROUGH {} DELIMITED {} diff --git a/tests/local.at b/tests/local.at index 65e528f9..54ac833d 100644 --- a/tests/local.at +++ b/tests/local.at @@ -619,7 +619,7 @@ main (void) # In some versions of Autoconf, AT_CHECK invokes AS_ESCAPE before # expanding macros, so it corrupts some special characters in the # macros. To avoid this, expand now and pass it the result with proper -# string quotation. Assume args 7 thru 12 expand to properly quoted +# string quotation. Assume args 7 through 12 expand to properly quoted # strings. m4_if(m4_index(m4_quote($3), [no-xml]), -1, -- cgit v1.2.1