Add doc comment for `BUILTIN_MAPPINGS`

This commit is contained in:
cyqsimon 2023-11-05 10:39:44 +08:00
parent 822e81bb24
commit 2c9bf229e1
No known key found for this signature in database
GPG Key ID: 1D8CE2F297390D65
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ impl MappingList {
let len = array_items.len();
format!(
"pub(crate) static BUILTIN_MAPPINGS: [(Lazy<Option<GlobMatcher>>, MappingTarget); {len}] = [\n{items}\n];",
"/// Generated by build script from /src/syntax_mapping/builtins/.\n\
pub(crate) static BUILTIN_MAPPINGS: [(Lazy<Option<GlobMatcher>>, MappingTarget); {len}] = [\n{items}\n];",
items = array_items.join(",\n")
)
}