diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-11 18:47:39 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-11 19:31:41 +0900 |
commit | 46d49df654e9e152680717830aec70b65e8c507c (patch) | |
tree | cb8c1410e34566a233a93bb52039ef47e0914ab8 /compiler/parser/error.go | |
parent | Simplify process that generates UTF-8 byte sequences from a code point range (diff) | |
download | tre-46d49df654e9e152680717830aec70b65e8c507c.tar.gz tre-46d49df654e9e152680717830aec70b65e8c507c.tar.xz |
Make character properties unavailable in bracket expressions
Diffstat (limited to 'compiler/parser/error.go')
-rw-r--r-- | compiler/parser/error.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/parser/error.go b/compiler/parser/error.go index a90e3b3..8be6600 100644 --- a/compiler/parser/error.go +++ b/compiler/parser/error.go @@ -4,7 +4,7 @@ import "fmt" var ( ParseErr = fmt.Errorf("parse error") - + // lexical errors synErrIncompletedEscSeq = fmt.Errorf("incompleted escape sequence; unexpected EOF following \\") synErrInvalidEscSeq = fmt.Errorf("invalid escape sequence") @@ -25,6 +25,8 @@ var ( synErrBExpUnclosed = fmt.Errorf("unclosed bracket expression") synErrBExpInvalidForm = fmt.Errorf("invalid bracket expression") synErrRangeInvalidOrder = fmt.Errorf("a range expression with invalid order") + synErrRangePropIsUnavailable = fmt.Errorf("a property expression is unavailable in a range expression") + synErrRangeInvalidForm = fmt.Errorf("invalid range expression") synErrCPExpInvalidForm = fmt.Errorf("invalid code point expression") synErrCPExpOutOfRange = fmt.Errorf("a code point must be between U+0000 to U+10FFFF") synErrCharPropExpInvalidForm = fmt.Errorf("invalid character property expression") |