update_indention: Update indention information of parse data

Description Usage Arguments Functions

Description

Update indention information of parse data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
indent_without_paren_for_while_fun(pd, indent_by)

indent_without_paren_if_else(pd, indent_by)

indent_braces(pd, indent_by)

indent_op(
  pd,
  indent_by,
  token = c(math_token, logical_token, special_token, "PIPE", "LEFT_ASSIGN",
    "EQ_ASSIGN", "'$'")
)

indent_eq_sub(pd, indent_by, token = c("EQ_SUB", "EQ_FORMALS"))

indent_without_paren(pd, indent_by = 2)

Arguments

pd

A nested or flat parse table that is already enhanced with line break and space information via default_style_guide_attributes().

indent_by

How many spaces should be added after the token of interest.

token

The token the indention should be based on.

Functions


styler documentation built on Sept. 23, 2021, 5:07 p.m.