diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-14 14:42:00 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-15 20:42:28 +0900 |
commit | a443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd (patch) | |
tree | 10ba6c9806ec2bd831fe62d34e1da22daaf5e0e0 /spec/syntax_error.go | |
parent | Prohibit using escape sequences in string literals (diff) | |
download | urubu-a443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd.tar.gz urubu-a443f0a1a4b79faa0b0271b72ea4a8e5f3d03ffd.tar.xz |
Prohibit applying the expansion operator to anything other than identifiers
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 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") ) |