diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-08-22 15:39:27 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-08-22 15:44:03 +0900 |
commit | 4d879b95d5368d578a39baaefba0de743a764105 (patch) | |
tree | a0e78f5c9916405545f1e7b139f9427b1cd190cc /spec/lexer_test.go | |
parent | Resolve conflicts by default rules (diff) | |
download | cotia-4d879b95d5368d578a39baaefba0de743a764105.tar.gz cotia-4d879b95d5368d578a39baaefba0de743a764105.tar.xz |
Support %left and %right to specify precedences and associativities
Diffstat (limited to 'spec/lexer_test.go')
-rw-r--r-- | spec/lexer_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lexer_test.go b/spec/lexer_test.go index e016def..e5d999e 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"'.*+?|()[\':|;#()$1...#`, + src: `id"terminal"'.*+?|()[\':|;#()$1...#%`, tokens: []*token{ idTok("id"), termPatTok("terminal"), @@ -49,6 +49,7 @@ func TestLexer_Run(t *testing.T) { posTok(1), symTok(tokenKindExpantion), symTok(tokenKindDirectiveMarker), + symTok(tokenKindMetaDataMarker), newEOFToken(), }, }, |