Skip to content

Commit 010f27f

Browse files
committed
spec: do not highlight and/or/in/not after . as operators
1 parent 9bd5bd1 commit 010f27f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

spec/syntax/default_argument_spec.rb renamed to spec/syntax/operator_spec.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe 'Default argument syntax' do
5+
describe 'Operators' do
66
it 'default argument' do
77
expect(<<~'EOF').to include_elixir_syntax('elixirOperator', '\\')
88
def foo(bar \\ :baz)
@@ -12,4 +12,14 @@ def foo(bar \\ :baz)
1212
def foo(bar // :baz)
1313
EOF
1414
end
15+
16+
it 'in' do
17+
expect(<<~EOF).to include_elixir_syntax('elixirOperator', 'in')
18+
'x' in ['x']
19+
EOF
20+
21+
expect(<<~EOF).not_to include_elixir_syntax('elixirOperator', 'in')
22+
:queue.in x, 5
23+
EOF
24+
end
1525
end

0 commit comments

Comments
 (0)