File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 14
14
case true do
15
15
EOF
16
16
end
17
+
18
+ it 'raise used as keyword with string' do
19
+ expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'raise' )
20
+ raise "oops"
21
+ EOF
22
+ end
23
+
24
+ it 'raise used as keyword with module' do
25
+ expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'raise' )
26
+ raise ArgumentError, message: "invalid argument foo"
27
+ EOF
28
+ end
17
29
end
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ syn keyword elixirTodo FIXME NOTE TODO OPTIMIZE XXX HACK contained
18
18
19
19
syn match elixirId ' \< [_a-zA-Z]\w *[!?]\?\> ' contains =elixirUnusedVariable
20
20
21
- syn match elixirKeyword ' \(\.\)\@ <!\<\( for\| case\| when\| with\| cond\| if\| unless\| try\| receive\| after\| rescue\| catch\| else\| quote\| unquote\| super\| unquote_splicing\)\> :\@ !'
21
+ syn match elixirKeyword ' \(\.\)\@ <!\<\( for\| case\| when\| with\| cond\| if\| unless\| try\| receive\| after\| raise \| rescue\| catch\| else\| quote\| unquote\| super\| unquote_splicing\)\> :\@ !'
22
22
23
23
syn keyword elixirInclude import require alias use
24
24
You can’t perform that action at this time.
0 commit comments