Skip to content

Commit 3061e45

Browse files
author
jneen
committed
add a spec that keywords don't get leaked up the chain
1 parent 8350ba1 commit 3061e45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/lexers/c_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@
2424
it 'recognizes one-line comments not followed by a newline (#796)' do
2525
assert_tokens_equal '// comment', ['Comment.Single', '// comment']
2626
end
27+
28+
it "doesn't leak c++ keywords" do
29+
assert_tokens_equal 'using', ['Name', 'using']
30+
end
2731
end
2832
end

0 commit comments

Comments
 (0)