From 034f7f9a0816f133e62d341ce073e4a382a91225 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sat, 29 Jul 2023 08:51:27 +0000 Subject: [PATCH] update comment --- R/infix_spaces_linter.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/infix_spaces_linter.R b/R/infix_spaces_linter.R index c323dc027..831ee7c1c 100644 --- a/R/infix_spaces_linter.R +++ b/R/infix_spaces_linter.R @@ -145,7 +145,7 @@ infix_spaces_linter <- function(exclude_operators = NULL, allow_multiple_spaces # NB: preceding-sibling::* and not preceding-sibling::expr because # of the foo(a=1) case, where the tree is # NB: parent::*[count(expr) + count(OP-LEFT-PAREN) > 1] for the unary case, e.g. x[-1] - # OP-LEFT-PAREN for EQ_SUB case with missing argument like alist(a =) + # SYMBOL_SUB for case with missing argument like alist(a =) # NB: the last not() disables lints inside box::use() declarations xpath <- paste(collapse = "|", glue::glue("//{infix_tokens}[ parent::*[count(expr | SYMBOL_SUB) > 1]