#[derive(Debug, Clone)]
pub struct ParserOptions {
pub action_view_helpers: bool,
pub analyze: bool,
pub dot_notation_tags: bool,
pub erb_openers: Option<Vec<String>>,
pub herb_directives: bool,
pub html: bool,
pub iteration_nodes: bool,
pub max_errors: Option<u32>,
pub prism_nodes: bool,
pub prism_nodes_deep: bool,
pub prism_program: bool,
pub render_nodes: bool,
pub strict: bool,
pub strict_locals: bool,
pub timeout: u32,
pub track_locations: bool,
pub track_whitespace: bool,
pub transform_conditionals: bool,
}
impl Default for ParserOptions {
fn default() -> Self {
Self {
action_view_helpers: false,
analyze: true,
dot_notation_tags: false,
erb_openers: None,
herb_directives: false,
html: true,
iteration_nodes: false,
max_errors: Some(25),
prism_nodes: false,
prism_nodes_deep: false,
prism_program: false,
render_nodes: false,
strict: true,
strict_locals: false,
timeout: 1000,
track_locations: true,
track_whitespace: false,
transform_conditionals: false,
}
}
}