Run cancellable pdfTeX matching in native frontends
This commit is contained in:
1 parent
091458d329
commit
6e573dc1ce
21 files changed
+665
-9
No files matched your search
@@ -7,6 +7,8 @@ mod context;
|
||||
mod device;
|
||||
mod diagnostics;
|
||||
mod engine;
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
pub use engine::pdf_match::{RegexOutcome, RegexRequest, match_pdf_regex};
|
||||
mod font_catalog;
|
||||
mod fonts;
|
||||
mod format_image;
|
||||
@@ -210,6 +212,15 @@ pub struct GeneratedInput {
|
||||
/// File lookup belongs to the host. Execution never shells out to TeX or
|
||||
/// searches a different engine when a file/primitive is absent.
|
||||
pub trait SourceProvider {
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
fn match_pdf_regex(
|
||||
&mut self,
|
||||
request: &RegexRequest,
|
||||
_cancellation: Option<&Cancellation>,
|
||||
) -> Result<RegexOutcome, String> {
|
||||
match_pdf_regex(request)
|
||||
}
|
||||
|
||||
/// Change the TeX diagnostic selector. Mode zero suppresses the terminal.
|
||||
fn set_interaction_mode(&mut self, _mode: u8) -> Result<(), String> {
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user