We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e64590 commit dc2075dCopy full SHA for dc2075d
src/c_macro.rs
@@ -5,12 +5,15 @@ include!(concat!(env!("OUT_DIR"), "/gen_c_macros.rs"));
5
6
#[inline(always)]
7
fn is_identifier_part(c: u8) -> bool {
8
- (b'A' <= c && b'Z' >= c) || (b'a' <= c && b'z' >= c) || (b'0' <= c && b'9' >= c) || c == b'_'
+ (b'A'..=b'Z').contains(&c)
9
+ || (b'a'..=b'z').contains(&c)
10
+ || (b'0'..=b'9').contains(&c)
11
+ || c == b'_'
12
}
13
14
15
fn is_identifier_starter(c: u8) -> bool {
- (b'A' <= c && b'Z' >= c) || (b'a' <= c && b'z' >= c) || c == b'_'
16
+ (b'A'..=b'Z').contains(&c) || (b'a'..=b'z').contains(&c) || c == b'_'
17
18
19
0 commit comments