aboutsummaryrefslogtreecommitdiff
path: root/spec/lexer_test.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-03-28 22:31:30 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-03-29 01:45:05 +0900
commited43562cf58e8c0f9390421848879308fdfc60cb (patch)
tree16beff7d233b95ae53d2c8019bc47be378f304b8 /spec/lexer_test.go
parentSimplify the syntax of #ast directive (diff)
downloadcotia-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.gz
cotia-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.xz
Add label notation
Diffstat (limited to 'spec/lexer_test.go')
-rw-r--r--spec/lexer_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lexer_test.go b/spec/lexer_test.go
index 08939ee..5588d0b 100644
--- a/spec/lexer_test.go
+++ b/spec/lexer_test.go
@@ -40,7 +40,7 @@ func TestLexer_Run(t *testing.T) {
}{
{
caption: "the lexer can recognize all kinds of tokens",
- src: `id"terminal"'string':|;$1...#%`,
+ src: `id"terminal"'string':|;@$1...#%`,
tokens: []*token{
idTok("id"),
termPatTok("terminal"),
@@ -48,6 +48,7 @@ func TestLexer_Run(t *testing.T) {
symTok(tokenKindColon),
symTok(tokenKindOr),
symTok(tokenKindSemicolon),
+ symTok(tokenKindLabelMarker),
posTok(1),
symTok(tokenKindExpantion),
symTok(tokenKindDirectiveMarker),