Test matching a semicolon

This commit is contained in:
Josh Holtrop 2022-07-23 22:25:17 -04:00
parent b682c72b17
commit bf075a69f6

View File

@ -116,6 +116,15 @@ EOF
token foo; token foo;
token bar; token bar;
drop \\s+; drop \\s+;
EOF
end
it "matches a semicolon" do
expected = [
["semicolon", ";"],
]
expect(run(<<EOF, ";")).to eq expected
token semicolon \;;
EOF EOF
end end
end end