[gdb/contrib] Handle parentheses in spellcheck.sh

Currently, text adjacent to parentheses is not spell-checked:
...
$ cat tmp.txt
(upto)
$ ./gdb/contrib/spellcheck.sh tmp.txt
$
...

Add handling of parentheses, such that we get:
...
$ ./gdb/contrib/spellcheck.sh tmp.txt
upto -> up to
$
...

Rerun spellcheck.sh, resulting in a few "thru->through" replacements.

Tested on x86_64-linux.

Approved-by: Kevin Buettner <kevinb@redhat.com>
This commit is contained in:
Tom de Vries
2024-11-13 21:06:58 +01:00
parent e2fa415cfd
commit 0d1f7e2765
4 changed files with 37 additions and 14 deletions

View File

@@ -1203,7 +1203,7 @@ print_object_command (const char *args, int from_tty)
gdb_printf ("\n");
}
/* The data structure 'methcalls' is used to detect method calls (thru
/* The data structure 'methcalls' is used to detect method calls (through
* ObjC runtime lib functions objc_msgSend, objc_msgSendSuper, etc.),
* and ultimately find the method being called.
*/