Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lrlex/src/lib/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ impl From<&LexFlags> for Header<Location> {
}

/// LexFlags with flags set to default values.
#[doc(hidden)]
pub const DEFAULT_LEX_FLAGS: LexFlags = LexFlags {
allow_wholeline_comments: Some(false),
dot_matches_new_line: Some(true),
Expand All @@ -186,6 +187,7 @@ pub const DEFAULT_LEX_FLAGS: LexFlags = LexFlags {
nest_limit: None,
};

#[doc(hidden)]
/// LexFlags with all of the values `None`.
pub const UNSPECIFIED_LEX_FLAGS: LexFlags = LexFlags {
allow_wholeline_comments: None,
Expand Down Expand Up @@ -672,7 +674,7 @@ where

/// Returns the final `LexFlags` used for this lex source
/// after all forced and default flags have been resolved.
pub fn lex_flags(&self) -> Option<&LexFlags> {
pub(crate) fn lex_flags(&self) -> Option<&LexFlags> {
Some(&self.lex_flags)
}
}
Expand Down