mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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
This commit is contained in:
@@ -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
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user