Test matching a semicolon
This commit is contained in:
parent
b682c72b17
commit
bf075a69f6
@ -116,6 +116,15 @@ EOF
|
||||
token foo;
|
||||
token bar;
|
||||
drop \\s+;
|
||||
EOF
|
||||
end
|
||||
|
||||
it "matches a semicolon" do
|
||||
expected = [
|
||||
["semicolon", ";"],
|
||||
]
|
||||
expect(run(<<EOF, ";")).to eq expected
|
||||
token semicolon \;;
|
||||
EOF
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user