mirror of
https://github.com/git/git.git
synced 2026-04-10 00:40:14 +02:00
Merge branch 'ln/userdiff-elixir'
The patterns to detect function boundary for Elixir language has been added. * ln/userdiff-elixir: userdiff: add Elixir to supported userdiff languages
This commit is contained in:
@@ -32,6 +32,7 @@ diffpatterns="
|
||||
csharp
|
||||
css
|
||||
dts
|
||||
elixir
|
||||
fortran
|
||||
fountain
|
||||
golang
|
||||
|
||||
5
t/t4018/elixir-do-not-pick-end
Normal file
5
t/t4018/elixir-do-not-pick-end
Normal file
@@ -0,0 +1,5 @@
|
||||
defmodule RIGHT do
|
||||
end
|
||||
#
|
||||
#
|
||||
# ChangeMe; do not pick up 'end' line
|
||||
6
t/t4018/elixir-ex-unit-test
Normal file
6
t/t4018/elixir-ex-unit-test
Normal file
@@ -0,0 +1,6 @@
|
||||
defmodule Test do
|
||||
test "RIGHT" do
|
||||
assert true == true
|
||||
assert ChangeMe
|
||||
end
|
||||
end
|
||||
5
t/t4018/elixir-function
Normal file
5
t/t4018/elixir-function
Normal file
@@ -0,0 +1,5 @@
|
||||
def function(RIGHT, arg) do
|
||||
# comment
|
||||
# comment
|
||||
ChangeMe
|
||||
end
|
||||
5
t/t4018/elixir-macro
Normal file
5
t/t4018/elixir-macro
Normal file
@@ -0,0 +1,5 @@
|
||||
defmacro foo(RIGHT) do
|
||||
# Code
|
||||
# Code
|
||||
ChangeMe
|
||||
end
|
||||
9
t/t4018/elixir-module
Normal file
9
t/t4018/elixir-module
Normal file
@@ -0,0 +1,9 @@
|
||||
defmodule RIGHT do
|
||||
@moduledoc """
|
||||
Foo bar
|
||||
"""
|
||||
|
||||
def ChangeMe(a) where is_map(a) do
|
||||
a
|
||||
end
|
||||
end
|
||||
8
t/t4018/elixir-module-func
Normal file
8
t/t4018/elixir-module-func
Normal file
@@ -0,0 +1,8 @@
|
||||
defmodule Foo do
|
||||
def fun(RIGHT) do
|
||||
# Code
|
||||
# Code
|
||||
# Code
|
||||
ChangeMe
|
||||
end
|
||||
end
|
||||
9
t/t4018/elixir-nested-module
Normal file
9
t/t4018/elixir-nested-module
Normal file
@@ -0,0 +1,9 @@
|
||||
defmodule MyApp.RIGHT do
|
||||
@moduledoc """
|
||||
Foo bar
|
||||
"""
|
||||
|
||||
def ChangeMe(a) where is_map(a) do
|
||||
a
|
||||
end
|
||||
end
|
||||
5
t/t4018/elixir-private-function
Normal file
5
t/t4018/elixir-private-function
Normal file
@@ -0,0 +1,5 @@
|
||||
defp function(RIGHT, arg) do
|
||||
# comment
|
||||
# comment
|
||||
ChangeMe
|
||||
end
|
||||
6
t/t4018/elixir-protocol
Normal file
6
t/t4018/elixir-protocol
Normal file
@@ -0,0 +1,6 @@
|
||||
defprotocol RIGHT do
|
||||
@doc """
|
||||
Calculates the size (and not the length!) of a data structure
|
||||
"""
|
||||
def size(data, ChangeMe)
|
||||
end
|
||||
5
t/t4018/elixir-protocol-implementation
Normal file
5
t/t4018/elixir-protocol-implementation
Normal file
@@ -0,0 +1,5 @@
|
||||
defimpl RIGHT do
|
||||
# Docs
|
||||
# Docs
|
||||
def foo(ChangeMe), do: :ok
|
||||
end
|
||||
Reference in New Issue
Block a user