`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
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ use globset::{Candidate, GlobBuilder, GlobMatcher};
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)]
#[non_exhaustive]
pub enum MappingTarget<'a> {