Jai_Format module

format_unknown_setting_note

procedureextensionsince 0.24.0Source

The warning for an entry of config.unknown_keys found in the file file, with a suggestion when a known key is close.

Example↗
config := parse_config("[format]\nindent_wdth = 2\n");
assert(config.unknown_keys.count == 1);
note := format_unknown_setting_note(config.unknown_keys[0], "jacket.toml");
assert(note.count > 0);
format_unknown_setting_note :: (key: string, file: string) -> string

Parameters

key: string
file: string

Returns

string

See also