aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-07-22 20:30:23 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-07-22 20:30:23 +0900
commit0baa69676ca83dbb4fe7241478a6ecf6c85418a9 (patch)
treef337b96c1d2c4742647b9e4570d34788014333d3 /spec/syntax_error.go
parentWrite a description file (diff)
downloadcotia-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.go1
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