mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os.path_separator
This commit is contained in:
@@ -518,9 +518,9 @@ fn (p mut Parser) const_decl() {
|
||||
continue
|
||||
}
|
||||
mut name := p.check_name() // `Age = 20`
|
||||
//if ! (name[0] >= `A` && name[0] <= `Z`) {
|
||||
//p.error('const name must be capitalized')
|
||||
//}
|
||||
if p.mod != 'os' && contains_capital(name) {
|
||||
//p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
||||
}
|
||||
name = p.prepend_mod(name)
|
||||
mut typ := ''
|
||||
if p.is_vh {
|
||||
|
||||
Reference in New Issue
Block a user