diff --git a/vlib/compiler/scanner.v b/vlib/compiler/scanner.v index 83d968cf14..2a31860d20 100644 --- a/vlib/compiler/scanner.v +++ b/vlib/compiler/scanner.v @@ -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 } -