From dd5fd3372cdb53e7a3a36b5ef61b0b0c35023798 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Mon, 9 May 2022 00:36:06 +0900 Subject: Add ordered symbol notation --- spec/lexer_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/lexer_test.go') diff --git a/spec/lexer_test.go b/spec/lexer_test.go index 621eff5..0e7cc89 100644 --- a/spec/lexer_test.go +++ b/spec/lexer_test.go @@ -36,7 +36,7 @@ func TestLexer_Run(t *testing.T) { }{ { caption: "the lexer can recognize all kinds of tokens", - src: `id"terminal"'string':|;@...#()`, + src: `id"terminal"'string':|;@...#$()`, tokens: []*token{ idTok("id"), termPatTok("terminal"), @@ -47,6 +47,7 @@ func TestLexer_Run(t *testing.T) { symTok(tokenKindLabelMarker), symTok(tokenKindExpantion), symTok(tokenKindDirectiveMarker), + symTok(tokenKindOrderedSymbolMarker), symTok(tokenKindLParen), symTok(tokenKindRParen), newEOFToken(), -- cgit v1.2.3