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.


styler documentation built on Aug. 29, 2023, 5:10 p.m.