include! generated mappings in source

This commit is contained in:
cyqsimon 2023-11-02 16:48:35 +08:00
parent 9f4259721a
commit d24501ab5e
No known key found for this signature in database
GPG Key ID: 1D8CE2F297390D65

View File

@ -7,6 +7,13 @@ use globset::{Candidate, GlobBuilder, GlobMatcher};
pub mod ignored_suffixes; pub mod ignored_suffixes;
// Static syntax mappings generated from /src/syntax_mapping/builtins/ by the
// build script (/build/syntax_mapping.rs).
include!(concat!(
env!("OUT_DIR"),
"/codegen_static_syntax_mappings.rs"
));
#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive] #[non_exhaustive]
pub enum MappingTarget<'a> { pub enum MappingTarget<'a> {