From d24501ab5efd5ddd40a7597615cea521aed1eb0e Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:48:35 +0800 Subject: [PATCH] `include!` generated mappings in source --- src/syntax_mapping.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index c8c361ab..8b0c1c17 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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> {