File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1018,9 +1018,24 @@ defmodule ElixirSense.Core.CompilerTest do
10181018
10191019 { { :-> , meta , args } , state }
10201020
1021+ { :fn , meta , args } = _node , state ->
1022+ meta =
1023+ if Version . match? ( System . version ( ) , ">= 1.19.0-rc.0" ) do
1024+ Keyword . delete ( meta , :capture )
1025+ else
1026+ meta
1027+ end
1028+ { { :fn , meta , args } , state }
1029+
10211030 { :capture , meta , nil } = _node , state ->
10221031 # elixir changes the name to capture and does different counter tracking
10231032 meta = Keyword . delete ( meta , :counter )
1033+ meta =
1034+ if Version . match? ( System . version ( ) , ">= 1.19.0-rc.0" ) do
1035+ Keyword . delete ( meta , :capture )
1036+ else
1037+ meta
1038+ end
10241039 { { :capture , meta , nil } , state }
10251040
10261041 node , state ->
You can’t perform that action at this time.
0 commit comments