summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-01-16 18:05:57 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-01-23 10:43:25 +0100
commit4910c025796684bf2a70341dde766cd68f3c6b2b (patch)
treeec7d7ba3e7703e333de6c9ba8ba5a9a281b9c80d
parent83bc8895367bf27f8ae78fea9ade8a8d94786698 (diff)
downloadbison-4910c025796684bf2a70341dde766cd68f3c6b2b.tar.gz
package: codespell
* src/parse-gram.y: Fix spelling.
-rw-r--r--Makefile.am3
-rw-r--r--src/parse-gram.y2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 7db4fe11..f94842c4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -133,9 +133,10 @@ gen-ChangeLog:
$(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -o $@ -E $<
.PHONY: codespell
+CODESPELL = codespell
codespell:
$(AM_V_GEN) cd $(srcdir) \
- && codespell \
+ && $(CODESPELL) \
--regex "[\\w\\-'’\`]+\+*" \
--ignore-words-list "ba,circularly,cloneable,copyable,define'd,dout,froms,iff,ifset,od,ois" \
$$(git ls-files data doc lib src tests)
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 7c146ea3..2b24ac17 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -513,7 +513,7 @@ tag:
// A non empty list of possibly tagged symbols for %nterm.
//
// Can easily be defined like symbol_decls but restricted to ID, but
-// using token_decls allows to reudce the number of rules, and also to
+// using token_decls allows to reduce the number of rules, and also to
// make nicer error messages on "%nterm 'a'" or '%nterm FOO "foo"'.
nterm_decls:
token_decls