Add START and END constants to std (#6270)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-14 20:37:45 +12:00
committed by GitHub
parent 8f487a441b
commit 7d7b153085
130 changed files with 2741 additions and 2292 deletions

View File

@ -143,13 +143,23 @@ impl From<KclError> for ParseResult {
}
}
const STR_DEPRECATIONS: [(&str, &str); 6] = [
const STR_DEPRECATIONS: [(&str, &str); 16] = [
("XY", "XY"),
("XZ", "XZ"),
("YZ", "YZ"),
("-XY", "-XY"),
("-XZ", "-XZ"),
("-YZ", "-YZ"),
("xy", "XY"),
("xz", "XZ"),
("yz", "YZ"),
("-xy", "-XY"),
("-xz", "-XZ"),
("-yz", "-YZ"),
("START", "START"),
("start", "START"),
("END", "END"),
("end", "END"),
];
const FN_DEPRECATIONS: [(&str, &str); 3] = [("pi", "PI"), ("e", "E"), ("tau", "TAU")];
const CONST_DEPRECATIONS: [(&str, &str); 4] = [