Re: [PATCH 2/2] t4018: add two userdiff tests for R language
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- May 25, 2025, 22:42 UTC
- Message-ID
- <CAPig+cQ07SMbfD8Er1Ukdpih_8AL_exbz7U6WzZ3b2js2ge1cg@mail.gmail.com>
- In-Reply-To
- <20250525210236.116342-2-rodrigorsdc@gmail.com>
On Sun, May 25, 2025 at 5:03 PM Rodrigo Carvalho <rodrigorsdc@gmail.com> wrote:
Show 14 quoted lines
> This patch adds two userdiff tests for R programming language
> files. These files define a simple function, with and without
> indentation.
>
> Signed-off-by: Rodrigo Carvalho <rodrigorsdc@gmail.com>
> ---
> diff --git a/t/t4018/r-indent b/t/t4018/r-indent
> @@ -0,0 +1,6 @@
> +RIGHT <- function(a, b) {
> + c = mean(a, b)
> + d = c + 2
> + ChangeMe()
> + return (d)
> +}Although nontraditional, do we care that some people define functions using `=` rather than `<-`?
foo = function(x) {...}