extend_if_comment: Find the index of the last comment in the sequence of...

View source: R/utils-navigate-nest.R

extend_if_commentR Documentation

Find the index of the last comment in the sequence of comments-only tokens after the token that has position pos in pd.

Description

Find the index of the last comment in the sequence of comments-only tokens after the token that has position pos in pd.

Usage

extend_if_comment(pd, pos)

Arguments

pd

A parse table.

pos

The position of the token to start the search from.


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