mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
parent
bb6f0f5519
commit
22b677900f
@ -28,7 +28,7 @@ static ERRORED: AtomicBool = AtomicBool::new(false);
|
|||||||
///
|
///
|
||||||
/// This locks stdout, not stderr, even though this prints to stderr. This
|
/// This locks stdout, not stderr, even though this prints to stderr. This
|
||||||
/// avoids the appearance of interleaving output when stdout and stderr both
|
/// avoids the appearance of interleaving output when stdout and stderr both
|
||||||
/// correspond to a tty.)
|
/// correspond to a tty.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! eprintln_locked {
|
macro_rules! eprintln_locked {
|
||||||
($($tt:tt)*) => {{
|
($($tt:tt)*) => {{
|
||||||
|
@ -233,7 +233,7 @@ impl ConfiguredHIR {
|
|||||||
&self.config
|
&self.config
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a reference to the underyling HIR.
|
/// Return a reference to the underlying HIR.
|
||||||
pub(crate) fn hir(&self) -> &Hir {
|
pub(crate) fn hir(&self) -> &Hir {
|
||||||
&self.hir
|
&self.hir
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ use crate::{config::ConfiguredHIR, error::Error};
|
|||||||
/// that are in turn used to build a simpler regex that is more amenable to
|
/// that are in turn used to build a simpler regex that is more amenable to
|
||||||
/// optimization.
|
/// optimization.
|
||||||
///
|
///
|
||||||
/// The main idea underyling the validity of this technique is the fact
|
/// The main idea underlying the validity of this technique is the fact
|
||||||
/// that ripgrep searches individuals lines and not across lines. (Unless
|
/// that ripgrep searches individuals lines and not across lines. (Unless
|
||||||
/// -U/--multiline is enabled.) Namely, we can pluck literals out of the regex,
|
/// -U/--multiline is enabled.) Namely, we can pluck literals out of the regex,
|
||||||
/// search for them, find the bounds of the line in which that literal occurs
|
/// search for them, find the bounds of the line in which that literal occurs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user