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

Data Fields

size_t nesting
 This keeps track of the nesting level of the string.
bool interpolation
 Whether or not interpolation is allowed in this string.
bool label_allowed
 Whether or not at the end of the string we should allow a :, which would indicate this was a dynamic symbol instead of a string.
uint8_t incrementor
 When lexing a string, it takes into account balancing the terminator if the terminator is one of (), [], {}, or <>.
uint8_t terminator
 This is the terminator of the string.
uint8_t breakpoints [7]
 This is the character set that should be used to delimit the tokens within the string.

Detailed Description

Definition at line 196 of file parser.h.

Field Documentation

◆ breakpoints

This is the character set that should be used to delimit the tokens within the string.

◆ incrementor

uint8_t pm_lex_mode::[struct].as.string incrementor

When lexing a string, it takes into account balancing the terminator if the terminator is one of (), [], {}, or <>.

◆ interpolation

bool pm_lex_mode::[struct].as.string interpolation

Whether or not interpolation is allowed in this string.

◆ label_allowed

bool pm_lex_mode::[struct].as.string label_allowed

Whether or not at the end of the string we should allow a :, which would indicate this was a dynamic symbol instead of a string.

◆ nesting

This keeps track of the nesting level of the string.

◆ terminator

uint8_t pm_lex_mode::[struct].as.string terminator

This is the terminator of the string.

It is typically either a single or double quote.


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