aboutsummaryrefslogtreecommitdiff
path: root/compiler/parser/error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-12-11 19:42:32 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-12-11 19:42:32 +0900
commit3ec662c34841bb5bcf05166d1b9efd800b1e9ea3 (patch)
treea7acd4fa535819a941da862905a14bfffa8493b5 /compiler/parser/error.go
parentMake character properties unavailable in bracket expressions (diff)
downloadtre-3ec662c34841bb5bcf05166d1b9efd800b1e9ea3.tar.gz
tre-3ec662c34841bb5bcf05166d1b9efd800b1e9ea3.tar.xz
Add tests of compiler/parser package
Diffstat (limited to 'compiler/parser/error.go')
-rw-r--r--compiler/parser/error.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/parser/error.go b/compiler/parser/error.go
index 8be6600..be81da4 100644
--- a/compiler/parser/error.go
+++ b/compiler/parser/error.go
@@ -15,6 +15,7 @@ var (
// syntax errors
synErrUnexpectedToken = fmt.Errorf("unexpected token")
synErrNullPattern = fmt.Errorf("a pattern must be a non-empty byte sequence")
+ synErrUnmatchablePattern = fmt.Errorf("a pattern cannot match any characters")
synErrAltLackOfOperand = fmt.Errorf("an alternation expression must have operands")
synErrRepNoTarget = fmt.Errorf("a repeat expression must have an operand")
synErrGroupNoElem = fmt.Errorf("a grouping expression must include at least one character")