From 37fd050100b09063e2c0026fd981525e27bb2e69 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:47:35 +0800 Subject: [PATCH] Describe filename ordering more accurately --- src/syntax_mapping/builtins/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/syntax_mapping/builtins/README.md b/src/syntax_mapping/builtins/README.md index 5ee770c8..9eee0d99 100644 --- a/src/syntax_mapping/builtins/README.md +++ b/src/syntax_mapping/builtins/README.md @@ -95,11 +95,11 @@ like this: ## Ordering -At compile time, all TOML files are processed in filesystem order. So -`00-foo.toml` takes precedence over `10-bar.toml`, which takes precedence over -`20-baz.toml`, and so on. This may be occasionally useful for creating high/low -priority rules, such as in the aforementioned example of explicitly mapping -`*.conf` files to unknown. +At compile time, all TOML files are processed in lexicographical filename order. +So `00-foo.toml` takes precedence over `10-bar.toml`, which takes precedence +over `20-baz.toml`, and so on. This may be occasionally useful for creating +high/low priority rules, such as in the aforementioned example of explicitly +mapping `*.conf` files to unknown. Generally this should not be much of a concern, since rules should be written as specifically as possible for each application.