summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIkko Eltociear Ashimine <eltociear@gmail.com>2023-12-04 16:57:35 +0900
committerGitHub <noreply@github.com>2023-12-04 09:57:35 +0200
commit4fa44e84adb4c78e1885694cc3513982d4af2b08 (patch)
tree03c05d95582d51eda79fd6ddd8bf3dc275610329
parentfbbc42827b2949b95bcde23ce47bb47d006c895d (diff)
grammar-parser : fix typo (#4318)
preceeding -> preceding
-rw-r--r--common/grammar-parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/grammar-parser.cpp b/common/grammar-parser.cpp
index ff51cc80..bf89a96f 100644
--- a/common/grammar-parser.cpp
+++ b/common/grammar-parser.cpp
@@ -190,7 +190,7 @@ namespace grammar_parser {
pos = parse_space(pos + 1, is_nested);
} else if (*pos == '*' || *pos == '+' || *pos == '?') { // repetition operator
if (last_sym_start == out_elements.size()) {
- throw std::runtime_error(std::string("expecting preceeding item to */+/? at ") + pos);
+ throw std::runtime_error(std::string("expecting preceding item to */+/? at ") + pos);
}
// apply transformation to previous symbol (last_sym_start to end) according to