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.


r-lib/styler documentation built on Oct. 1, 2024, 5:21 p.m.