apply_ref_indention_one: Applying reference indention of a target token

View source: R/reindent.R

apply_ref_indention_oneR Documentation

Applying reference indention of a target token

Description

Applies the indention level of target_token to all tokens that have target_token as a reference. This includes adding spaces to the first tokens on a line and updating the column col1 and col2 for all tokens on that line so they are kept updated.

Usage

apply_ref_indention_one(flattened_pd, target_token)

Arguments

flattened_pd

A flattened parse table

target_token

The index of the token from which the indention level should be applied to other tokens.


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