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.


styler documentation built on Aug. 29, 2023, 5:10 p.m.