mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
os.path_separator
This commit is contained in:
parent
9850193348
commit
81f8b26127
3 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue