pd_is_multi_line: Check whether a parse table is a multi-line token

View source: R/indent.R

pd_is_multi_lineR Documentation

Check whether a parse table is a multi-line token

Description

A token is a multi-line expression if and only if:

Usage

pd_is_multi_line(pd)

Arguments

pd

A parse table.

Details

  • it contains a line break.

  • it has at least one child that is a multi-line expression itself.


krlmlr/styler documentation built on Dec. 12, 2024, 8:36 a.m.