perl-lexer 0.13.1

High-performance Perl lexer with context-aware tokenization
Documentation
1
2
3
4
5
6
7
8
9
use std::sync::Arc;

/// Specification for a pending heredoc.
#[derive(Clone)]
pub(crate) struct HeredocSpec {
    pub(crate) label: Arc<str>,
    pub(crate) body_start: usize,  // byte offset where the body begins
    pub(crate) allow_indent: bool, // true if we saw <<~ (Perl 5.26 indented heredocs)
}