alignment_drop_comments: Remove all comment tokens

View source: R/detect-alignment-utils.R

alignment_drop_commentsR Documentation

Remove all comment tokens

Description

Must be after split by line because it invalidates (lag)newlines, which are used for splitting by line.

Usage

alignment_drop_comments(pd_by_line)

Arguments

pd_by_line

A list, each element corresponding to a potentially incomplete parse table that represents all token from one line.


krlmlr/styler documentation built on April 24, 2024, 4:14 p.m.