aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-14 14:42:00 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-15 20:42:28 +0900
commita443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd (patch)
tree10ba6c9806ec2bd831fe62d34e1da22daaf5e0e0 /spec/syntax_error.go
parentProhibit using escape sequences in string literals (diff)
downloadcotia-a443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd.tar.gz
cotia-a443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd.tar.xz
Prohibit applying the expansion operator to anything other than identifiers
Diffstat (limited to '')
-rw-r--r--spec/syntax_error.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go
index cf64e75..db4c381 100644
--- a/spec/syntax_error.go
+++ b/spec/syntax_error.go
@@ -37,6 +37,8 @@ var (
synErrNoDirectiveName = newSyntaxError("a directive needs a name")
synErrNoOrderedSymbolName = newSyntaxError("an ordered symbol name is missing")
synErrUnclosedDirGroup = newSyntaxError("a directive group must be closed by )")
+ synErrStrayExpOp = newSyntaxError("an expansion operator ... must be preceded by an identifier")
+ synErrInvalidExpOperand = newSyntaxError("an expansion operator ... can be applied to only an identifier")
synErrSemicolonNoNewline = newSyntaxError("a semicolon must be followed by a newline")
synErrFragmentNoPattern = newSyntaxError("a fragment needs one pattern element")
)