diff options
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r-- | spec/syntax_error.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go index b427bed..f82186a 100644 --- a/spec/syntax_error.go +++ b/spec/syntax_error.go @@ -18,9 +18,11 @@ var ( // lexical errors synErrAutoGenID = newSyntaxError("you cannot define an identifier beginning with an underscore") synErrUnclosedTerminal = newSyntaxError("unclosed terminal") + synErrUnclosedString = newSyntaxError("unclosed string") 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") + synErrEmptyString = newSyntaxError("a string must include at least one character") synErrZeroPos = newSyntaxError("a position must be greater than or equal to 1") // syntax errors |