diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-22 20:30:23 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-22 20:30:23 +0900 |
commit | 0baa69676ca83dbb4fe7241478a6ecf6c85418a9 (patch) | |
tree | f337b96c1d2c4742647b9e4570d34788014333d3 /spec/syntax_error.go | |
parent | Write a description file (diff) | |
download | cotia-0baa69676ca83dbb4fe7241478a6ecf6c85418a9.tar.gz cotia-0baa69676ca83dbb4fe7241478a6ecf6c85418a9.tar.xz |
Add literal pattern syntax and change tree structure syntax
- Literal patterns don't interpret the special characters of regular expressions.
In other words, 'abc|def' matches only `abc|def`, not `abc` or `def`.
- Change tree structure syntax from '(...) to #(...).
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r-- | spec/syntax_error.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go index 9d67ccc..b427bed 100644 --- a/spec/syntax_error.go +++ b/spec/syntax_error.go @@ -20,6 +20,7 @@ var ( synErrUnclosedTerminal = newSyntaxError("unclosed terminal") synErrInvalidEscSeq = newSyntaxError("invalid escape sequence") synErrIncompletedEscSeq = newSyntaxError("incompleted escape sequence; unexpected EOF following a backslash") + synErrEmptyPattern = newSyntaxError("a pattern must include at least one character") synErrZeroPos = newSyntaxError("a position must be greater than or equal to 1") // syntax errors |