aboutsummaryrefslogtreecommitdiff
path: root/spec/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'spec/parser_test.go')
-rw-r--r--spec/parser_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/parser_test.go b/spec/parser_test.go
index 0772dae..2a44acd 100644
--- a/spec/parser_test.go
+++ b/spec/parser_test.go
@@ -184,6 +184,11 @@ c: ;
},
},
{
+ caption: "`fragment` is a reserved word",
+ src: `fragment: 'fragment';`,
+ synErr: synErrNoProductionName,
+ },
+ {
caption: "when a source contains an unknown token, the parser raises a syntax error",
src: `a: !;`,
synErr: synErrInvalidToken,