add_stylerignore: Adds the stylerignore column

Description Usage Arguments Details

View source: R/stylerignore.R

Description

If a token should be ignored, the column is set to TRUE, otherwise to FALSE.

Usage

1

Arguments

pd_flat

A parse table.

Details

A token is ignored iff one of the two conditions hold:

See examples in stylerignore. Note that you should reuse the stylerignore column to compute switch points or similar and not a plain pd$text == option_read("styler.ignore_start") because that will fail to give correct switch points in the case stylerignore sequences are invalid.


krlmlr/styler documentation built on Oct. 25, 2020, 8:13 a.m.