scanner: minor optimization
parent
19f9c18305
commit
424bd1c465
|
@ -968,7 +968,7 @@ fn (s Scanner) line(n int) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_name_char(c byte) bool {
|
fn is_name_char(c byte) bool {
|
||||||
return c == `_` || c.is_letter()
|
return (c >= `a` && c <= `z`) || (c >= `A` && c <= `Z`) || c == `_`
|
||||||
}
|
}
|
||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
|
@ -998,4 +998,3 @@ fn good_type_name(s string) bool {
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue