mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 13:15:50 +00:00
Fix remaining clippy lints (#687)
The eighth (and final) in a series of PRs that aim to get CI passing
This commit is contained in:
@@ -219,12 +219,30 @@ fn is_valid_ident_char(value: char) -> bool {
|
||||
}
|
||||
|
||||
fn is_keyword(value: &str) -> bool {
|
||||
match value {
|
||||
"and" | "break" | "do" | "else" | "elseif" | "end" | "false" | "for" | "function"
|
||||
| "if" | "in" | "local" | "nil" | "not" | "or" | "repeat" | "return" | "then" | "true"
|
||||
| "until" | "while" => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
value,
|
||||
"and"
|
||||
| "break"
|
||||
| "do"
|
||||
| "else"
|
||||
| "elseif"
|
||||
| "end"
|
||||
| "false"
|
||||
| "for"
|
||||
| "function"
|
||||
| "if"
|
||||
| "in"
|
||||
| "local"
|
||||
| "nil"
|
||||
| "not"
|
||||
| "or"
|
||||
| "repeat"
|
||||
| "return"
|
||||
| "then"
|
||||
| "true"
|
||||
| "until"
|
||||
| "while"
|
||||
)
|
||||
}
|
||||
|
||||
/// Tells whether the given string is a valid Lua identifier.
|
||||
|
||||
Reference in New Issue
Block a user