浏览代码

grammar-parser : fix typo (#4318)

preceeding -> preceding
Ikko Eltociear Ashimine 2 年之前
父节点
当前提交
4fa44e84ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/grammar-parser.cpp

+ 1 - 1
common/grammar-parser.cpp

@@ -190,7 +190,7 @@ namespace grammar_parser {
                 pos = parse_space(pos + 1, is_nested);
                 pos = parse_space(pos + 1, is_nested);
             } else if (*pos == '*' || *pos == '+' || *pos == '?') { // repetition operator
             } else if (*pos == '*' || *pos == '+' || *pos == '?') { // repetition operator
                 if (last_sym_start == out_elements.size()) {
                 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
                 // apply transformation to previous symbol (last_sym_start to end) according to