pub type pm_lex_mode_t = pm_lex_mode;Expand description
When lexing Ruby source, the lexer has a small amount of state to tell which kind of token it is currently lexing. For example, when we find the start of a string, the first token that we return is a TOKEN_STRING_BEGIN token. After that the lexer is now in the PM_LEX_STRING mode, and will return tokens that are found as part of a string.
Aliased Type§
#[repr(C)]pub struct pm_lex_mode_t {
pub mode: u32,
pub as_: pm_lex_mode__bindgen_ty_2,
pub prev: *mut pm_lex_mode,
}Fields§
§mode: u32§as_: pm_lex_mode__bindgen_ty_2§prev: *mut pm_lex_modeThe previous lex state so that it knows how to pop.