From 2ee252be5f073f98f09f4e3eed689d07b2610b94 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 10 Oct 2019 01:46:05 +0300 Subject: [PATCH] fix vid compilation --- compiler/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fn.v b/compiler/fn.v index afa6a61e97..aae73ffa48 100644 --- a/compiler/fn.v +++ b/compiler/fn.v @@ -234,7 +234,7 @@ fn (p mut Parser) fn_decl() { f.is_c = true } else if !p.pref.translated { - if contains_capital(f.name) { + if contains_capital(f.name) && !p.fileis('view.v') { p.error('function names cannot contain uppercase letters, use snake_case instead') } if f.name[0] == `_` {