Ruby 4.0.7p0 (2026-09-15 revision 229531a6cfbf07e3caef30dbac24a2a3f3fed482)
pm_lex_mode::[struct].as.heredoc Struct Reference

Data Fields

pm_heredoc_lex_mode_t base
 All of the data necessary to lex a heredoc.
const uint8_t * next_start
 This is the pointer to the character where lexing should resume once the heredoc has been completely processed.
size_t * common_whitespace
 This is used to track the amount of common whitespace on each line so that we know how much to dedent each line in the case of a tilde heredoc.
bool line_continuation
 True if the previous token ended with a line continuation.

Detailed Description

Definition at line 229 of file parser.h.

Field Documentation

◆ base

pm_heredoc_lex_mode_t pm_lex_mode::[struct].as.heredoc base

All of the data necessary to lex a heredoc.

◆ common_whitespace

size_t* pm_lex_mode::[struct].as.heredoc common_whitespace

This is used to track the amount of common whitespace on each line so that we know how much to dedent each line in the case of a tilde heredoc.

◆ line_continuation

bool pm_lex_mode::[struct].as.heredoc line_continuation

True if the previous token ended with a line continuation.

◆ next_start

const uint8_t* pm_lex_mode::[struct].as.heredoc next_start

This is the pointer to the character where lexing should resume once the heredoc has been completely processed.


The documentation for this struct was generated from the following files: