diff options
author | Jim Meyering <meyering@redhat.com> | 2012-06-05 09:02:36 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-06-05 09:17:43 +0200 |
commit | cbdb6d9145df09f406f2bf6525e4c97e3f9ae608 (patch) | |
tree | 54a7ba770a63b3ea1ddf53291dbc0adfbfb184c6 /tests | |
parent | 6a4f5c6ea0c86b99ed90ded912d52f611c090bd7 (diff) | |
download | bison-cbdb6d9145df09f406f2bf6525e4c97e3f9ae608.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/existing.at | 6 | ||||
-rw-r--r-- | tests/local.at | 2 |
2 files changed, 4 insertions, 4 deletions
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, |