summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-08-24 22:55:05 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-25 07:55:05 +0200
commit56de4c81b271cf878502d44d8f8f46e6c082a548 (patch)
tree40df089d9c6e4a35bd4a189ed6ca674af7321033 /lib
parent9707b232587b73f319ca3cd527a8bef15c813354 (diff)
downloadNim-56de4c81b271cf878502d44d8f8f46e6c082a548.tar.gz
fixes #8739; allow --hint:foo:on --warning:bar:off (#8757)
Diffstat (limited to 'lib')
-rw-r--r--lib/system/nimscript.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index 5bf69dd94..3aafaa8d1 100644
--- a/lib/system/nimscript.nim
+++ b/lib/system/nimscript.nim
@@ -73,12 +73,12 @@ proc switch*(key: string, val="") =
 proc warning*(name: string; val: bool) =
   ## Disables or enables a specific warning.
   let v = if val: "on" else: "off"
-  warningImpl(name & "]:" & v, "warning[" & name & "]:" & v)
+  warningImpl(name & ":" & v, "warning:" & name & ":" & v)
 
 proc hint*(name: string; val: bool) =
   ## Disables or enables a specific hint.
   let v = if val: "on" else: "off"
-  hintImpl(name & "]:" & v, "hint[" & name & "]:" & v)
+  hintImpl(name & ":" & v, "hint:" & name & ":" & v)
 
 proc patchFile*(package, filename, replacement: string) =
   ## Overrides the location of a given file belonging to the