Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

styler (version 1.6.1)

extend_if_comment: 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.