From 77e491161c8ea7100f42dbc01caa83a86f8a7e2e Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:36:25 +0800 Subject: [PATCH] Ensure lexicographical ordering --- build/syntax_mapping.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build/syntax_mapping.rs b/build/syntax_mapping.rs index b34e6b7d..7fb86a86 100644 --- a/build/syntax_mapping.rs +++ b/build/syntax_mapping.rs @@ -79,6 +79,7 @@ fn read_all_mappings() -> anyhow::Result { let mut all_mappings = vec![]; for entry in WalkDir::new("src/syntax_mapping/builtins") + .sort_by_file_name() .into_iter() .map(|entry| entry.unwrap_or_else(|err| panic!("failed to visit a file: {err}"))) .filter(|entry| {