set_unindention_child: Unindent a child if necessary

View source: R/unindent.R

set_unindention_childR Documentation

Unindent a child if necessary

Description

check whether any of the children of pd has token on the same line as the closing token of pd. If so, unindent that token.

Usage

set_unindention_child(pd, token = "')'", unindent_by)

Arguments

pd

A parse table.

token

The token the unindention should be based on.

unindent_by

By how many spaces one level of indention is reversed.


r-lib/styler documentation built on Dec. 13, 2024, 5:42 p.m.