diff --git a/vlib/compiler/scanner.v b/vlib/compiler/scanner.v index 846d9190d3..460ee3cd29 100644 --- a/vlib/compiler/scanner.v +++ b/vlib/compiler/scanner.v @@ -894,7 +894,7 @@ fn good_type_name(s string) bool { // registration_date good // registrationdate bad fn (s &Scanner) validate_var_name(name string) { - if name.len > 11 && !name.contains('_') { + if name.len > 15 && !name.contains('_') { s.error('bad variable name `$name`\n' + 'looks like you have a multi-word name without separating them with `_`' + '\nfor example, use `registration_date` instead of `registrationdate` ')