mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: minor optimization
This commit is contained in:
parent
19f9c18305
commit
424bd1c465
@ -968,7 +968,7 @@ fn (s Scanner) line(n int) string {
|
||||
}
|
||||
|
||||
fn is_name_char(c byte) bool {
|
||||
return c == `_` || c.is_letter()
|
||||
return (c >= `a` && c <= `z`) || (c >= `A` && c <= `Z`) || c == `_`
|
||||
}
|
||||
|
||||
[inline]
|
||||
@ -998,4 +998,3 @@ fn good_type_name(s string) bool {
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user