mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185)
This commit is contained in:
parent
234fb8e2b0
commit
008aaad999
284 changed files with 2539 additions and 2572 deletions
|
@ -18,7 +18,7 @@ pub fn set_verbose(on bool) {
|
|||
|
||||
pub fn cprint(omessage string) {
|
||||
mut message := omessage
|
||||
if scripting.term_colors {
|
||||
if term_colors {
|
||||
message = term.cyan(message)
|
||||
}
|
||||
print(message)
|
||||
|
@ -27,7 +27,7 @@ pub fn cprint(omessage string) {
|
|||
|
||||
pub fn cprint_strong(omessage string) {
|
||||
mut message := omessage
|
||||
if scripting.term_colors {
|
||||
if term_colors {
|
||||
message = term.bright_green(message)
|
||||
}
|
||||
print(message)
|
||||
|
@ -57,7 +57,7 @@ pub fn verbose_trace_strong(label string, omessage string) {
|
|||
if os.getenv('VERBOSE').len > 0 {
|
||||
slabel := '${time.now().format_ss_milli()} ${label}'
|
||||
mut message := omessage
|
||||
if scripting.term_colors {
|
||||
if term_colors {
|
||||
message = term.bright_green(message)
|
||||
}
|
||||
cprintln('# ${slabel:-43s} : ${message}')
|
||||
|
@ -71,7 +71,7 @@ pub fn verbose_trace_exec_result(x os.Result) {
|
|||
lines := x.output.split_into_lines()
|
||||
for oline in lines {
|
||||
mut line := oline
|
||||
if scripting.term_colors {
|
||||
if term_colors {
|
||||
line = term.bright_green(line)
|
||||
}
|
||||
cprintln('# ${lnum:3d}: ${line}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue